HTML + JS + WASM
One page for the live loop, one page for the story.
Use the standalone page when you want the real simulator. Use the homepage as the source-backed map that explains what the canvas is showing.
Cosmic orbit lab · C11 physics · real WASM
An illustrated cosmic cockpit wrapped around the real C/raylib simulator. The worlds stay bright and friendly; the physics underneath stays SI units, tests, and source files.
Real state lives in meters. This bright map is a friendly index of catalog coverage and renderer responsibilities.
Core principle
The site now behaves like an illustrated science-club cockpit. Color and friendly geometry make the simulator approachable, while every claim still points back to meters, kilograms, seconds, vectors, acceleration, and tests.
WASM lab
The homepage no longer nests a full browser page inside another page. It now hands off to the dedicated WebAssembly cockpit, where the live canvas, controls, and renderer notes have enough room to breathe.
HTML + JS + WASM
Use the standalone page when you want the real simulator. Use the homepage as the source-backed map that explains what the canvas is showing.
Physics engine
src/sima = G * source_mass / distance^3 * displacement
Double-precision positions, velocities, masses, and radii stay in physical units. The math gets tests before it gets a smile.
Illustration layer
Illustrative scale, readable moon spacing, labels, focus, and sampled trails are visual grammar, not physics mutations.
Trace the simulation coreLab rules
Planet field guide
Each implemented body carries identity and parent metadata so docs, renderer, labels, and tests talk about the same simulated object.
Field log
Source references
src/sim/physics.c02Body catalogStable BodyId and parent metadata keep renderer, labels, and docs aligned.src/sim/solar_system.c03Rendering boundaryraylib conversion handles readable scale without mutating physics state.src/render/renderer.c04WASM pipelineEmscripten artifacts are checked before Astro publishes them.tools/check_wasm_artifacts.py05Astro docsThe dedicated docs section explains the code as a maintained public source atlas.docs/src/pages/docs/