Just a simple inverse kinematics demo. :P
I got the idea to make this from looking at @finnagin5's Smooth String project. Its math is somewhat similar but runs forwards (mouse-origin) to point towards the mouse from the current joint positions, and then backwards (origin-mouse) to constrain the joints while still making them point towards the mouse.