Use wasd keys to move around
Left click on planets with mouse to push them, right click to pull
Press Space to add planets
The only library I used is Three.js for rendering all other stuff including gravity and physics and collisions are made by me.
Fog distance (0 to turn off): 8
Gravity strength: 30