An interactive solar-system simulator that models gravitational physics from Newtonian to Einsteinian mechanics.
Just for fun and self education, I've built this over a weekend to teach myself why orbits exist, not just show planets going around. Something that was never clearly explain to me in school.
It opens with a guided tour that builds the idea up step by step: two bodies and the equal/opposite force, inertia (the Sun is removed and Earth just drifts straight), then "an orbit is falling and continuously missing," cosmic velocities with a little rocket, Voyager 1 & 2's real gravity assists (the clock runs the actual 1977–1989 dates so the planets orbit into their grand-tour alignment and the slingshots line up), and it ends on Einstein — gravity as curved spacetime, the classic rubber-sheet well.
What's real: every body uses its real radius/mass and J2000 orbital elements; positions come from solving Kepler's equation each frame. You can toggle to an N-body mode (symplectic leapfrog) that shows live energy drift (~1e-6%) so you can see the integrator is honest. The only thing faked is scale — at true scale you can't see anything — so there's a toggle between true scale and a log-remapped "visual" scale, with physics always running in real AU.
Tech: TypeScript + Three.js + Vite, fully client-side, no backend, works offline (surface textures are generated procedurally from value-noise; only Earth uses a real image). Source: <a href="https://github.com/qunabu/Gravity" rel="nofollow">https://github.com/qunabu/Gravity</a><p>Happy to answer questions — and feedback on the physics or the explanations is very welcome. This project might be totally inaccurate in terms of real physics, this is how i do understand this on my own - i'm happy to confront this with reality
# GRAVITY · Solar System Model
Source: [https://qunabu.github.io/Gravity/](https://qunabu.github.io/Gravity/)
Earth texture[Solar System Scope](https://www.solarsystemscope.com/textures/)· CC BY 4\.0
OpenGravity is a zero-install, vanilla JS clone of Google Antigravity that enables BYOK agentic coding using Gemini models and WebContainer API. Built to bypass rate limits, it offers a browser-based IDE with autonomous task orchestration and local file sync.
Released physics-intern, a simple harness that significantly boosts the performance of reasoning models like Gemini 3.1 Pro on science problems, from 17.7 to 31.4, outperforming GPT 5.5 Pro.