About

A C11 solar system you can inspect: the same physics runs natively with raylib, in the browser through WebAssembly, and in a command-line CSV runner.

The simulator: the Sun and inner planets on their orbit guides, inside the asteroid belt, with Jupiter's Trojan swarm beyond.
The solar-system scene on 2026-06-09: orbit guides, the asteroid belt and Jupiter's leading Trojans. Open the simulator.

Model

Data

Snapshots are pinned in data/ and checked offline on every build; refreshing them is an explicit, reviewed step. The small-body atlas holds 1,564,244 objects. Provenance and precision notes.

Code

Physics in src/sim/ never includes raylib; rendering in src/render/ reads physical state and never writes it.

Where each part lives and what checks it
PartPathChecked by
Small-body atlas and source epochdocs/public/catalog/ + data/planet_epoch.jsonOffline tools/small_body_catalog.py --check and tools/planet_epoch.py --check; conic/experiment C tests and catalog-worker tests.
Giant-planet satellite catalogsdata/jovian_moons.jsonOffline tools/satellite_catalog.py --check, C satellite/frame/period tests, and full-scene convergence.
Project specSPEC.mdReview before an implementation task; check drift after verification.
Simulation coresrc/sim/make test-core covers initial states, orbital references, convergence, conservation, collisions, and source-catalog contracts without raylib.
Application helperssrc/app/C tests exercise reset/step, inspection, camera framing, 100-day accuracy, trail retention, descriptor validation, and comparison timing/identity.
Rendering boundarysrc/render/Renderer helper tests guard scale conversion, visual radius policy, family framing, and grid sizing.
Runtime loopsrc/main.cNative and WebAssembly builds compile both loop targets; artifact checks validate generated files.
Headless and comparison entrypointssrc/headless.c + src/lab_web.cmake test-cli; tools/test_learning_wasm.mjs compares matching native/WASM experiments.
Test binariestests/make test test-build test-cli test-validators; make test-sanitize for address/undefined-behavior checks.
Public sitedocs/npm test --prefix docs, npm run check --prefix docs, npm run build --prefix docs, and make docs-check; docs/browser-tests/ covers browser interaction.
Catalog and delivery toolstools/make test-build test-validators, offline catalog checks, WASM checks, and make docs-check.
Browser runtimedocs/src/pages/index.astroRuntime integration tests, generated route checks, and headless browser verification.
Automation.github/workflows/Inspect Build/CodeQL for the revision and, on eligible main delivery, Deploy Pages plus the public runtime manifest.

Rendering

Everything drawn is presentation: it reads the physical state and never feeds the physics, the inspector or the CSV export.

The view from Earth through a 9-arcminute field: Jupiter's banded disc with Ganymede, Io, Europa and Callisto labelled in a line.
From Earth on 2026-12-01: Jupiter 103 degrees from the Sun, its Galilean moons in a line. Open this view.
Scale
Illustrative enlarges bodies and pushes each moon out past its enlarged planet by the same amount, so moons keep their true order and spacing; real uses physical sizes and distances. Switching morphs between them.
Orbit guides
Each body's two-body ellipse about its parent, from its current position and velocity: where it would go if only its parent pulled on it.
Trails
The path each body actually took. Guide and trail separate slowly where other bodies perturb the orbit.
Surfaces
Planet maps by Solar System Scope; moon maps are USGS mosaics (maps without colour are tinted). The Moon, Mars and Mercury add relief from measured heights, exaggerated four times so it reads at the terminator. Every map turns on its IAU spin axis.
Shadows
Eclipses from the true geometry: they appear exactly when a moon's shadow really falls on its planet, or a planet's on a moon.
Rings
Saturn's from a map; Uranus's, Neptune's and Jupiter's from NASA ring tables, as faint as reality in real scale. Dusty rings glow when backlit.
From Earth
The camera at Earth's centre in real scale, aimed at the selection: true directions, phases and star backgrounds. Captions give the target's apparent disc, how much of it is lit (the Moon's or Venus's phase) and its angle from the Sun, which decides whether it is in a night sky. Dragging looks around the sky and Frame body re-centres; zooming narrows the field like a telescope, down to 72 arcseconds.
Sky
A real all-sky image turned to its true directions, with the 5,044 stars to magnitude 6 drawn as sharp points in their catalogue colours, and optional IAU constellation lines.
Small bodies
48,074 asteroids, Trojans and Kuiper-belt objects sampled from the atlas, moved on their orbits around the Sun.

Controls

The dock has play, speed and scene; Tour visits every planet; Find, View, Keys and Data open small panels. Beside the clock, Today plays the sky forward to the present and Date to any instant up to 2076, both stopping within one 15-second step. The inspector reads the selected body from SI state, including its distance from Earth and how long its light takes to reach us. Keys work while the view has focus.

ToDo
Turn, zoomdrag, scroll or pinch; two fingers twist
Share an instantDate → Copy link: ?body=saturn&at=2027-03-23T12:00 opens on Saturn and plays to that instant (TDB); from the view from Earth it adds &from=earth&fov=0.05
Name a bodypoint at it, or long-press on a phone
Go to a bodyclick it, its name, or the arrow at the edge for one out of view; / searches
Hop between bodies← → neighbours, ↑ parent, ↓ moons
Go backEsc steps out, Backspace or the browser's Back retraces
PlaySpace pause, N step, R restart, P run to the present (the Date button picks any instant), [ ] speed
FrameF system, B body, V scale, Y follow an orbit, W view from Earth
ShowO orbits, T trails, Q asteroids, S constellations, G grid, H labels
Native app onlyK cycles scenes, L lessons

Build and tests

CommandDoes
make / make runbuild and run the native raylib app
make testC tests for physics, scenes, app and renderer helpers, plus offline data checks
make test-sanitizethe same under address and undefined-behaviour sanitizers
make headlessthe solar-lab CSV runner (--scene, --catalog, --compare)
make docs-assetsthe WebAssembly build copied into this site
npm run test:browser --prefix docsbrowser journeys against the built site

CI builds natively on Linux and macOS, builds WebAssembly, checks the site, runs CodeQL, and deploys the exact artifact it tested. SPEC.md records goals, invariants, tasks and bugs.

What's next

Every moon system with a JPL ephemeris now has a scene, most recently the Patroclus–Menoetius trojan binary. Moons of other asteroids have only literature orbits, so they wait for an ephemeris. Open work is tracked in SPEC.md.

Credits

Made by Jonathan Peris. Code under the MIT licence; data are transformed extracts of NASA/JPL products; textures by Solar System Scope (CC BY 4.0); moon maps from USGS Astrogeology mosaics of NASA, ESA and DLR data (public domain); relief from LRO LOLA, MGS MOLA and MESSENGER topography (NASA, USGS; public domain); constellation lines and the bright-star catalogue from d3-celestial, © 2015 Olaf Frohn, BSD 3-Clause (licence text in the source repository's assets/sky/); fonts Cormorant Garamond and JetBrains Mono (OFL). Usage analytics run only on the deployed site, and only when configured. Source on GitHub.