Skip to content

About

An interactive 3D orrery where any body can be the centre The Sun-centred picture of the solar system is a choice of reference frame, not the only correct one. Pick any object (the Sun, the Earth, the Moon, Io, a comet) and hold it still: everything else moves relative to it, and the orbit trails redraw in that frame.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Sol In Motion

An interactive 3D orrery where any body in the solar system can be the centre.

Important

WORK IN PROGRESS. The app and its documentation are still being improved. Every position is checked against JPL Horizons, and the accuracy targets say what counts as right; what is measured meets them from 1800 to 2050 AD, and what is not yet measured, or simplified on purpose, is listed under Limitations.

▶ Live app: https://kauemelo01.github.io/Solar-System-Explorer/

📚 Documentation and object catalogue: docs/


Why this exists: the Sun-centred view is a model

We usually draw the solar system with the Sun fixed in the middle and everything circling around it. That picture is useful, but it is a choice of reference frame, not a fact about where the "true centre" is.

Galileo made the point with his ship thought experiment (Dialogue Concerning the Two Chief World Systems, 1632): shut inside a cabin on a smoothly sailing ship, you can't run any experiment that tells you whether the ship is moving or standing still. There is no absolute frame of rest. Motion only means something relative to something else. Newton built his mechanics on this, and Einstein took it further.

So for describing positions and motions, the question "what orbits what?" has no single right answer:

  • Seen from the Sun, Mars traces a near-ellipse.
  • Seen from the Earth, the same Mars drifts across the sky, stops, goes backward (retrograde motion) and loops. Ptolemy's epicycles were built to describe exactly these loops.
  • Seen from Jupiter, the Sun itself traces a 12-year circle, and the inner planets wind tight spirals around it.

The motion of each body is the same in every case; only the vantage point changes. The heliocentric frame is popular because it makes the motions simplest. It is not the only one that is correct. (A frame centred on a planet does involve accelerations, so its "physics" includes fictitious forces. That is exactly why the Sun-centred frame, nearly inertial, is the convenient default, and why it stays a convenience.)

Sol In Motion makes this something you can see. Pick any object (the Sun, the Earth, the Moon, Io, a comet, a tiny irregular moon of Saturn) and hold it still. Everything else then moves relative to it, and the orbit trails redraw in that frame. Students can watch retrograde loops appear when Earth is held still, see the Moon's "orbit" around the Sun as a gently wavy line, or see what the sky would look like from Titan.

What is an orrery?

An orrery is a working model of the solar system that shows the planets and moons moving around their orbits at their relative speeds. The first ones were clockwork machines: the name comes from Charles Boyle, 4th Earl of Orrery, for whom an early example was built around 1713, after a design by George Graham and Thomas Tompion. Turn a crank and gears carry each planet around the Sun, so a year of motion can play out in seconds. The much older Greek Antikythera mechanism (2nd–1st century BC) used gears for similar astronomical predictions.

Mechanical orreries have two built-in limits. They are almost never to scale, because true distances and sizes would make the planets invisible specks, and their gears fix the Sun at the centre. A digital orrery removes both: positions are computed from real orbital elements for any date, distances and sizes stay true to scale (you zoom in instead of shrinking the solar system), and nothing stops you from moving the centre. Sol In Motion is that kind of orrery.

What's inside

  • 544 real objects, each with orbital elements from NASA/JPL or peer-reviewed orbit papers:

    • the Sun, 8 planets and the Moon
    • 469 natural satellites (status as of November 2026): Mars 2 · Jupiter 115 · Saturn 292 · Uranus 29 · Neptune 16 · Pluto 5 · other dwarf planets and candidates 6 (Dysnomia, Hiʻiaka, Namaka, Weywot, Vanth, Xiangliu) · asteroids 4 (Dimorphos, Skamandrios, Queta, Menoetius)
    • 5 dwarf planets (Pluto among them) and 4 dwarf planet candidates, 35 asteroids, centaurs and Kuiper belt objects, 21 comets
  • 7 ring systems at their true radii: Jupiter, Saturn, Uranus, Neptune, Haumea, Quaoar and Chariklo

  • Real-time positions for any date from 1000 to 3000 AD (forward or backward in time): planets from Standish and Williams's Keplerian elements (JPL SSD), the Moon from a lunar theory, and the other moons, dwarf planets, asteroids and comets from orbits fitted to JPL Horizons (or published orbits); outside 1800–2050 AD positions are estimates

  • Always true to scale: real distances and real body sizes, with orbit trails of adjustable length, orbit outlines (every moon, and the planets, dwarf planets, asteroids and comets whose orbits stay the same for decades) and distance rings in AU

  • Statistical belts (main asteroid belt, Hilda asteroids, Jupiter trojans, Neptune trojans, Kuiper belt) to show where those populations live; the Hildas form the triangle that turns with Jupiter

  • What is and is not included, and why: What's included, What's not included, and the Watchlist of objects waiting for published data

  • The real sky behind it all:

    • 9,096 stars from the Yale Bright Star Catalogue
    • NASA's all-sky star map (Milky Way and faint stars), up to 8192 × 4096
    • 29 nebulae, clusters, galaxies and deep fields, such as the Pleiades, the Orion Nebula, Andromeda, the Pillars of Creation and the Hubble and Webb deep fields
    • 30 named bright stars and 5 stars with known planets (including Proxima Centauri and TRAPPIST-1)
    • the 88 IAU constellations (off by default): official boundaries, stick figures and names, with a Zodiac filter showing the 13 constellations the Sun actually passes through, Ophiuchus included

    Everything is at its true position. Change the centre from Earth to Neptune and the sky does not move: the stars are that far away.

  • Real surface maps where spacecraft have mapped a body: the Sun, the planets, the Moon, Saturn's rings, Ceres, Vesta and 18 major moons, from Solar System Scope, NASA, NASA/JPL, USGS and DLR. Large versions load on capable screens. Everything else gets a simple painted texture. The Earth is NASA's Blue Marble with its real clouds, and from 1950 its night side shows NASA's city lights. Each object's card says whether its surface is real photos, a partial map or a painted illustration, and the Images panel can switch all maps off (see Surface maps)

  • An interface built for exploring: a menu to choose the body held still and what is shown (moons by family, small bodies, belts, orbit outlines, sky layers), a time bar from 1000 to 3000 AD, trails of adjustable length, cards with each object's data and sources, a full-screen Catalogue Menu with a picture and a short description of every object (double-click one to fly there), a camera position card and a fullscreen mode for classrooms (the interface)

  • Runs fully in the browser: index.html with three.js, plus the sky data in sky/ and the surface maps in textures/. No build step; any static web host (such as GitHub Pages) can serve it

Controls

Drag to rotate, scroll or pinch to zoom, and click a name to fly to it. Press Enter to hold the selected body still, C to open the Catalogue Menu, or O to toggle orbit outlines. Space pauses, ← → change the speed, R reverses time, and / opens Find. See the interface guide for the full list of controls and shortcuts.

Data provenance

Everything in the app traces back to public, citable sources, mostly from NASA's Jet Propulsion Laboratory:

Data Source
Planet orbits Standish and Williams, Keplerian elements (JPL SSD): Table 1 over 1800–2050 AD, Tables 2a and 2b outside
Moon orbits Positions: orbits fitted to JPL Horizons over 1800–2050 AD (data/moon-orbits.js; method and accuracy). Orbit shapes listed in the catalogue: JPL SSD, Planetary Satellite Mean Elements
Moon sizes JPL SSD, Planetary Satellite Physical Parameters, then each moon's JPL Horizons record, then NASA Science pages and published surveys (which source for each moon)
Asteroids, dwarf planets, comets Positions: orbits fitted to JPL Horizons over 1800–2050 AD (data/sb-orbits.js; method and accuracy). Orbital elements, sizes and rotation listed in the catalogue: JPL Small-Body Database
Moons of dwarf planets and asteroids Orbits fitted to JPL Horizons satellite solutions, and for Haumea's moons to the ephemeris of Proudfoot et al. (2024); published orbits: Kiss et al. (2019), Marchis et al. (2014), Brown et al. (2021), Brozović et al. (2024) (method and accuracy)
Ring systems NASA NSSDCA ring fact sheets; occultation studies (Ortiz et al. 2017, Morgado et al. and Pereira et al. 2023, Braga-Ribas et al. 2014)
Planet radii, rotation, poles NASA NSSDCA fact sheets; IAU WGCCRE 2015 report (Archinal et al. 2018)
Object identifiers NAIF / JPL SPK IDs, checked against JPL Horizons
Stars Yale Bright Star Catalogue, 5th ed., via NASA HEASARC
Milky Way and faint stars NASA/Goddard SVS, Deep Star Maps (2009)
Deep-sky reference images (linked) NASA Image and Video Library
Deep-sky positions CDS SIMBAD / Sesame
Stars with planets NASA Exoplanet Archive
Constellation boundaries IAU (Delporte 1930), via CDS catalogues VI/42 (Roman 1987) and VI/49 (Davenhall & Leggett 1989)
Constellation figures NASA/Goddard SVS, Deep Star Maps (figures after Sky & Telescope for the IAU)
Surface map: Earth NASA, The Blue Marble (2002, Terra MODIS, with its real clouds) for the day side, and Earth at Night 2012 (Suomi NPP city lights) for the night side from 1950
Surface maps: Sun, the other planets, the Moon, Saturn's rings Solar System Scope (CC BY 4.0), based on NASA mission data, with gaps filled by the publisher
Surface maps: Ceres, Vesta Dawn mosaics by DLR (NASA/JPL-Caltech/UCLA/MPS/DLR/IDA)
Surface map: Triton NASA/JPL PIA18668 (Paul Schenk, LPI), from Voyager 2
Surface maps: Saturn's icy moons NASA/JPL PIA18434–PIA18439 (Paul Schenk, LPI), global maps from Cassini, shown in black-and-white
Surface map: Callisto USGS Astrogeology Voyager/Galileo global mosaic
Surface maps: 10 other major moons NASA 3D Resources, old Voyager and Viking mosaics. Several are partial or gap-filled; each object's card says so, and the per-map list has the details

Every object has its own reference entry. The catalogue lists each body with the values the app uses and links to its JPL Horizons or SBDB record, plus its NASA Science page where one exists:

The full methodology, accuracy notes and bibliography are in Sources, methodology and accuracy.

Running locally

git clone https://github.com/kauemelo01/Solar-System-Explorer.git
cd Solar-System-Explorer
python3 -m http.server 8000   # then open http://localhost:8000

Opening index.html directly from disk works, but browsers block the sky map and surface maps over file:// (bodies then use their simpler painted textures), so use a local server to see them.

Project files

Path What it is Group
icon.svg, favicon-32.png, apple-touch-icon.png App icon (browser tab and home-screen versions): an orbit, the Sun, and a planet with its own moon App and visual assets
index.html The whole app: page, styles and code App and visual assets
mobile.css The mobile interface layout and styles for portrait and landscape App and visual assets
sky/ Sky data: star catalogue, NASA star maps, deep-sky objects, constellation boundaries and figures App and visual assets
textures/ Surface maps for the Sun, planets, Saturn's rings, Ceres, Vesta and the major moons (sources) App and visual assets
tools/ Guide to the scripts for rebuilding app data and textures and checking the orbit model Maintenance tools
tools/catalogue-menu/ Rebuilds data/catalogue.js from the catalogue pages in docs/catalogue/ (how to run) Maintenance tools
tools/fps-bench/ Measures how much work busy scenes take to draw, and checks that a change leaves the picture unchanged (needs Node.js and Playwright) (how to run) Maintenance tools
tools/moon-orbit-fits/ Rebuilds data/moon-orbits.js from JPL Horizons and checks it (how to run) Maintenance tools
tools/orbit-outlines/ Chooses the bodies that get an orbit outline, by how long their orbit stays the same (how to run) Maintenance tools
tools/planet-checks/ Measures the planets against JPL Horizons (how to run) Maintenance tools
tools/small-body-orbit-fits/ Rebuilds data/sb-orbits.js from JPL Horizons and checks it (how to run) Maintenance tools
tools/textures/ Rebuilds textures/ from the original sources (downloads them; needs Pillow) (how to run) Maintenance tools
data/catalogue.js The pages, sections and objects of the in-app Catalogue Menu, in the order of docs/catalogue/ (how to run) Orbit data and documentation
data/moon-orbits.js The planets' moon orbits fitted to JPL Horizons over 1800–2050 AD (method) Orbit data and documentation
data/sb-orbits.js The orbits of 56 dwarf planets, asteroids and comets fitted to JPL Horizons over 1800–2050 AD (method) Orbit data and documentation
docs/ Documentation and the per-object catalogue Orbit data and documentation
_config.yml, sitemap.xml Search-engine setup for GitHub Pages: page titles and descriptions, and the list of pages for Google Search Console Site publishing and license
google93f522f8da0be4f0.html Site ownership check for Google Search Console Site publishing and license
LICENSE GNU General Public License v3 Site publishing and license
social-card.png Preview image shown when the link is shared (Open Graph / Twitter card) Site publishing and license

Accuracy and limits

This is an educational model built on Keplerian orbits, not a full n-body integration: the planets use Standish and Williams's Keplerian elements (JPL SSD), and the moons, dwarf planets, asteroids and comets use orbits fitted to JPL Horizons over 1800–2050 AD, which meet the accuracy targets. Planet positions are within 12.3′ of JPL Horizons over 1800–2050 AD and within 0.5° from 1000 to 3000 AD. The time bar covers 1000 to 3000 AD (the time bar); outside 1800–2050 AD positions are estimates. Known issues: none at the moment (Known issues).

Distances and body sizes are always to true scale. A few visual aids are not; they are among the limitations of the model, and each is described under What is not to scale:

  • the fixed-size dots and labels that mark each body;
  • the Sun's glow;
  • comet tails;
  • placeholder sizes for moons and small bodies with no published radius;
  • exaggerated ring opacity (ring radii are true);
  • computer-generated shapes for irregular bodies;
  • the statistical belts;
  • the sky backdrop, whose directions are true but whose distances are not drawn.

Contributing

New celestial objects are announced every year; the rules for adding are in What's included. To add or update an object, open an issue or pull request that cites its JPL Horizons/SBDB record or its Minor Planet Electronic Circular, and update the matching page in docs/catalogue/.

Releases

  • Release 4.1 (current, branch wip-release-4.1):
    • Busy scenes are lighter to draw (FPS benchmark): trails send the graphics card only the points that changed, and the small moons use a 100-triangle shape instead of 1,512 while they are under 8 pixels in radius on screen. With every moon and trail shown around Saturn, that is 175,000 triangles a frame instead of 578,000, and 0.014 MB sent to the graphics card instead of 9.7 MB while time is paused (2.8 MB instead of 10.4 MB while it runs). Add ?perf to the address for an on-screen readout of the frame rate and the work per frame (Performance readout).
    • The camera aims at each pair's barycentre: selecting the Earth, Pluto, Orcus, Eris or Patroclus now points the camera at the pair's centre of mass, so the body is seen circling it with its moon on the opposite side (Pluto about 2,130 km away, the Earth up to 4,900 km). In Release 4 the camera followed the body itself, so Pluto looked still and only Charon seemed to move, as a user reported (the menu).
  • Release 4 (tag v4, branch release-4):
    • One inclusion rule for every object: a defined group, and an orbit published by JPL, the IAU or a mission team (What's included, What's not included and a Watchlist of objects waiting for data). Under it, 26 more small bodies (spacecraft targets such as Gaspra, Toutatis and the Lucy trojans, parents of the major meteor showers, and the great comet Hyakutake), the asteroid moons Skamandrios, Queta and Menoetius, and the Hilda and Neptune trojan belts; Selam moves to the Watchlist, since only its distance and period are published (544 objects).
    • Written accuracy targets (within 1° or 1 day of JPL Horizons; close planetary encounters within 3 hours), and orbits that meet them:
      • 56 dwarf planets, asteroids and comets fitted to JPL Horizons over 1800–2050 AD, so every close planetary encounter of the period happens (Apophis passes the Earth on 13 April 2029 at 38,026 km, against JPL's 38,011);
      • the moons of dwarf planets and asteroids fitted to JPL Horizons or to Proudfoot et al. (2024): Dimorphos before and after NASA's DART impact, and Haumea's moons, pole and ring in the right plane;
      • the Moon from a lunar theory (Meeus), within 0.02° instead of up to 5°;
      • the planets and Pluto from Standish and Williams's Table 2 outside 1800–2050 AD (Table 1 inside, unchanged), within 0.5° of JPL Horizons from 1000 to 3000 AD instead of up to 5.5° (Saturn).
    • Binary orbits: Pluto–Charon, Orcus–Vanth, Eris–Dysnomia and Patroclus–Menoetius now move around their shared centres of mass, as Earth and the Moon do (method and sources).
    • Better data: each small body's size and rotation from its most recent published measurement (Arrokoth measured by New Horizons, Torifune by Hayabusa2), published sizes for 354 more moons (10 still have none), the Jupiter trojans back at L4 and L5, and 9P/Tempel 1 turned to its real prime meridian.
    • The Earth from NASA's Blue Marble with its real clouds, and from 1950 NASA's city lights on its night side (Earth's night side).
    • Comet tails: within 5 AU of the Sun, each comet has a coma and two tails, a narrow blue ion tail pointing straight away from the Sun and a broader, yellowish dust tail curving back along its orbit (What is not to scale).
    • A Catalogue Menu: a full-screen page, opened with the book icon, listing all 703 entries of the catalogue (every body, ring system, sky object and constellation) in its pages and sections, each with a picture drawn in the browser and a short description; double-click one to fly to it.
    • Constellations fixed: selecting one from Find, going back to it, or (new) double-clicking it in the Catalogue Menu now turns the view towards it, and its boundary is highlighted; in Release 3 its card opened but the view did not turn.
    • Interface: a start-up screen that turns into an error message if the app cannot start, a camera position card, orbit outlines for the planets, dwarf planets and the asteroids and comets whose orbits stay the same for decades, switched on per group; smooth, precise trails and orbit outlines up close, even next to a small moon (and trails around perihelion), and source links on the object card for any value not from NASA or JPL (the interface).
  • Release 3 (tag v3, branch release-3):
    • The planets' moons placed by orbits fitted to JPL Horizons over 1800–2050 AD: typically within 1.5°, against about 90° before.
    • A time bar from 1000 to 3000 AD, with an Estimated positions alert outside 1800–2050 AD; a trail length slider for each group of bodies.
    • Published spin axes and rotation periods, and the Sun, the planets, the Moon and 58 other bodies turned so the side facing you is the real one.
    • Every published moon radius, from JPL or a cited publication; Cassini maps of Saturn's six icy moons and a new Callisto map.
    • Documentation checked against the app, with What's included, What's not included, and how each orbit model's error grows over time.
  • Release 2 (tag v2, branch release-2): real spacecraft surface maps, Earth's clouds, the moons menu grouped by parent body, 22 more bodies and 7 ring systems, the Images panel, data corrected against NASA/JPL/IAU, and the documentation's Known issues and Limitations lists. To view it: git switch release-2.
  • Release 1 (tag v1, branch release-1): the first published version, kept unchanged. To view it: git switch release-1.

License

The code is released under the GNU General Public License v3. Data and images keep the terms of their sources (NASA, JPL, CDS, the IAU and the papers cited), listed in Sources, methodology and accuracy.

About

An interactive 3D orrery where any body can be the centre The Sun-centred picture of the solar system is a choice of reference frame, not the only correct one. Pick any object (the Sun, the Earth, the Moon, Io, a comet) and hold it still: everything else moves relative to it, and the orbit trails redraw in that frame.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages