01 · Context
The question behind the build.
Orbital data is precise but abstract. Tables of Keplerian elements say little to most people until the bodies move, overlap and can be followed on screen.
Objective
Render the solar system in WebGL so it stays explorable rather than astronomically literal, with facts linked to their sources and full control over time.
Approach
Solaris uses Three.js, strict TypeScript and Vite. Planet positions come from JPL's approximate Keplerian elements; small bodies use an offline snapshot of JPL Small-Body Database data propagated with a two-body model.
02 · Architecture
How it fits together.
- 01JPL orbital elements
- 02Shared simulation clock
- 03Three.js scene and bodies
- 04Labels, controls and facts
03 · Decisions
The choices that matter.
- 01
One clock for everything
Planets, moons, dwarf planets, comets and belts advance together, so switching between the inner, full and outer system never desynchronizes the scene.
- 02
Compressed, honest scale
Sizes and distances are compressed for readability on a screen. The project says plainly that it is a visualization, not a precision ephemeris.
- 03
Labels that avoid each other
A dedicated module lays out collision-aware labels, so names stay readable while bodies cross in front of one another.
The hard part
A scene this dense has to stay readable and responsive: many bodies, textured surfaces, belts and labels, with time running up to 1,000× faster.
04 · Implementation
From idea to working code.
The source separates the app shell, the scene, the space environment, planetary and small-body orbital elements, moons, the body encyclopedia and label layout into typed modules. The build is static and deploys continuously.
src/
main.ts app shell, UI, interaction
solar-scene.ts scene, bodies, lighting, animation
orbits.ts Keplerian planetary elements
small-body-orbits.ts dwarf planet and comet elements
scene-labels.ts collision-aware label layout05 · Outcome
The result, and the next question.
Live and continuously deployed, with public source. It shows a strong grasp of real-time 3D on the web: scene structure, time, and interface design around a moving subject.
Details summarized from the public README, which credits the work to Abhra and an AI assistant. Positions are approximate by design. Read the project documentation (opens in a new tab) ↗