There's a long discussion about Physics here...
Long story short, it's up to Tumult to add access to the Matter.js API. That's what Physics in Hype is based on. I don't think they have gravity wells, but they seem to have support for joints.
If an element's velocity could be modified – while the project is running – it could simply be constantly nudged toward the intended target with JavaScript.