🔭

Space & Astronomy

Solar systems, spiral galaxies, gravitational body interaction and orbital mechanics — all in real time, right in the browser.

10+ simulations Three.js · WebGL Uses Leapfrog, Kepler

Category Simulations

Open a simulation — it runs right in your browser, no installation needed

☀️
Popular ★★☆ Moderate
Solar System
8 planets with realistic orbits, moons and Saturn's rings. Asteroid belt, time and camera controls. Orbits computed by Newton's laws.
Three.js OrbitControls Newton
🌌
★★☆ Moderate
Spiral Galaxy
80,000 stars forming a spiral galaxy with arms, nebulae and a central bulge. Adjust the number of arms, bar scale and spread.
Three.js 80k Particles PointsMaterial
☄️
★★★ Advanced
N-Body Gravity
Gravitational interaction of hundreds of bodies via Leapfrog. Forming a galactic disk, circular orbits, two-galaxy collision.
Three.js Leapfrog N²-gravity
🪐
★☆☆ Easy
Kepler Planets
All 8 planets with real orbital radii and periods. Saturn's rings, asteroid belt, labels, focus on a planet with a click.
Three.js Kepler Orbits
🌑
New ★★☆ Moderate
Orbital Mechanics
N-body Velocity Verlet integrator. Three scenarios: Solar System, Lagrange Points (Jupiter Trojans), and Gravity Assist flyby.
Canvas 2D N-body Lagrange Points Kepler
💥
New ★★☆ Moderate
Star Evolution
Animated stellar life cycle from nebula to remnant. Live HR diagram shows the evolutionary track. Choose any mass from 0.5 to 20 M☉.
Canvas 2D HR Diagram Stellar Physics Particles
🌙
New ★★☆ Moderate
Binary Stars
Two stars orbiting their common centre of mass. Watch mass transfer, accretion disc formation and HR evolutionary tracks in real time.
Canvas 2D Gravity Mass Transfer HR Diagram
☄️
New ★☆☆ Beginner
Meteor Shower
Watch a stunning meteor shower with glowing trails, draggable radiant point, and fragmentation effects. See how the radiant point controls the entire stream direction.
Canvas 2D Particles Astronomy
🌍
★☆☆ Beginner
Solar System (Kids)
A colourful, interactive solar system for younger explorers. Click planets to learn fun facts about each world.
Kids Three.js Educational
🌐
★★☆ Moderate
Planetary Atmosphere
Rayleigh scattering and Mie scattering on a procedural planet. Watch how the atmosphere colour changes with angle and altitude.
GLSL Rayleigh Three.js
🔭
New ★★★ Advanced
Gravitational Lensing
Simulate Einstein rings, multiple images, and light deflection by a point mass or galaxy cluster. Based on General Relativity lens equations.
Einstein Ring Dark Matter General Relativity
🌌
New ★☆☆ Beginner
Hubble's Law — Expanding Universe
Every galaxy recedes at v = H₀ × d. Adjust the Hubble constant, observe redshift and find the Hubble sphere where v = c.
Hubble Constant Redshift Cosmology
🪐
★★☆ Moderate New
Exoplanet Transit
Watch a planet cross its star and see the photometric flux dip in the live light curve. Adjust planet radius, orbital distance, inclination, and limb darkening.
Transit Method Light Curve Kepler / TESS
🌌
★★☆ Moderate New
Aurora Borealis
Watch charged solar-wind particles spiral along magnetic field lines, excite oxygen and nitrogen at 80–300 km altitude, and produce the aurora's green, red and purple curtains.
Aurora Magnetosphere Solar Wind

Learning Resources

Articles and tutorials about space & astronomy

About Space & Astronomy Simulations

Gravity, orbits, and the cosmos — explored through real physics

Space and astronomy simulations bring celestial mechanics to life. From Kepler's orbital equations to N-body gravitational dynamics, every object follows the same physics that governs real planets, stars, and galaxies. You can watch how gravity shapes spiral galaxy arms, how planets maintain stable orbits, and what happens when massive bodies collide or a star exhausts its nuclear fuel on the Hertzsprung–Russell diagram.

The simulations use energy-conserving integrators — Leapfrog and Velocity Verlet — that keep long-running trajectories numerically stable. By tweaking central mass, orbital eccentricity, or stellar mass, you develop intuition for the forces that sculpt the universe across every scale: binary star systems, Lagrange point trojans, gravity-assist flybys, and colliding galaxies.

Modern computational astronomy relies on the same numerical techniques used here — leapfrog integration for satellite trajectory planning, N-body codes for galaxy-formation research, and HR diagrams for stellar classification. Running these simulations in a browser makes the underlying mathematics tangible: you can directly see how a slight increase in orbital velocity shifts a circular orbit to an ellipse, or how a third body's perturbation can eject a planet from a stable system entirely.

Key Concepts

Topics and algorithms you'll explore in this category

Kepler's LawsElliptical orbits and conservation of angular momentum
N-body GravityMutual gravitational forces between multiple masses
Leapfrog IntegratorEnergy-conserving method for long-term orbit stability
Barnes-Hut TreeO(n log n) approximation for many-body gravity
Stellar EvolutionMass-luminosity tracks on the HR diagram
Binary StarsMass transfer and tidal forces in close systems

🚀 Test Your Space Knowledge

5 questions — orbits, light-speed, black holes and more

Frequently Asked Questions

Common questions about this simulation category

How are planetary orbits calculated?
Two-body orbits follow Kepler's analytical equations. Multi-body scenarios use a Leapfrog (Störmer-Verlet) integrator, which conserves energy over millions of steps — avoiding the drift that ruins Euler-method trajectories.
Can I simulate real solar system distances?
The simulations use normalised units scaled for visual clarity. However, the gravitational physics (inverse-square law, orbital eccentricity, period-distance relationships) are mathematically faithful to real-world astronomy.
How many bodies can the N-body simulation handle?
The Barnes-Hut tree reduces complexity from O(n²) to O(n log n), enabling hundreds of gravitational bodies in real time. The galaxy simulation handles ~10 000 star particles using Three.js instanced rendering.

Other Categories