A breathtaking 3D journey through our solar system and beyond
Live Demo โข Features โข Quick Start โข Controls
Ever wanted to explore space from your browser? This isn't just another solar system visualization - it's an interactive cosmic playground where you can:
- ๐ช Explore all 8 planets with scientifically accurate orbital mechanics
- ๐ Switch between 8 stunning space themes (from Classic Dark to Aurora Green)
- ๐ Discover deep space objects: black holes, wormholes, nebulae, pulsars, and more
- โฑ๏ธ Control time itself with adjustable orbital speeds (0x to 10x)
- ๐ฎ Fully interactive 3D controls - rotate, zoom, and pan freely
- ๐ Learn as you explore with detailed information panels for every celestial body
โจ ๐ โ๏ธ
๐
๐ช ๐
โญ ๐ โญ
Imagine this, but in stunning 3D with real physics
- 8 Planets with accurate:
- Orbital distances and periods
- Rotation speeds and axial tilts
- Colors and atmospheric effects
- Moons (Earth's moon included!)
- Planetary rings (Saturn & Uranus)
- Asteroid Belt with 200+ animated asteroids
- The Sun with dynamic glow and corona effects
Toggle visibility of cosmic wonders:
- ๐ Milky Way Galaxy - Our home in the cosmos
- โจ Star Clusters - Globular clusters scattered across space
- ๐ณ๏ธ Wormhole - Einstein-Rosen bridge (theoretical!)
- โซ Black Hole - With gravitational lensing effects
- โ๏ธ Comets - Orbiting with beautiful tails
- ๐ซ๏ธ Nebulae - Stellar nurseries in vibrant colors
- ๐ซ Pulsar - Rotating neutron star with beams
- ๐ Shooting Stars - Meteors streaking across the sky
- ๐ญ Distant Galaxies - Billions of light years away
- 8 Space Themes:
- Classic Dark
- Deep Blue
- Cosmic Purple
- Warm Nebula
- Aurora Green
- Blood Moon
- Ice Cold
- Galaxy Pink
- Toggle orbits, labels, and individual space objects
- Adjustable time speed (pause, slow-mo, or time-lapse)
Click any planet or space object to learn:
- Physical characteristics (size, mass, temperature)
- Distance from Earth/Sun
- Fascinating facts and trivia
- Scientific classifications
Built with cutting-edge web technologies:
- React 19 - Latest React with concurrent features
- Three.js - Powerful 3D graphics engine
- React Three Fiber - React renderer for Three.js
- React Three Drei - Useful helpers for R3F
- TypeScript - Type-safe development
- Tailwind CSS 4 - Modern utility-first styling
- Vite - Lightning-fast build tool
- Node.js 18+ installed
- npm or yarn package manager
# Clone the repository
git clone <your-repo-url>
cd solar-system-explorer
# Install dependencies
npm install
# Start the development server
npm run devOpen http://localhost:5173 and start exploring! ๐
# Create optimized production build
npm run build
# Preview production build locally
npm run preview| Action | Control |
|---|---|
| Rotate View | Click + Drag |
| Zoom In/Out | Mouse Wheel / Pinch |
| Pan Camera | Right Click + Drag |
| Select Planet | Click on any planet |
| View Info | Click planet/object for details |
| Change Theme | Click "Space Theme" button |
| Adjust Speed | Use time speed slider |
| Toggle Objects | Use "Space Objects" panel |
- Start Slow: Begin with 1x speed to appreciate the orbital mechanics
- Explore Themes: Try different color palettes - each creates a unique atmosphere
- Hide Clutter: Toggle off space objects for a cleaner view of the solar system
- Learn: Click everything! Each object has fascinating information
- Find Hidden Details: Zoom in close to planets to see surface details and atmospheres
- Time Travel: Crank up the speed to 10x and watch years pass in seconds
src/
โโโ components/
โ โโโ Planet.tsx # Individual planet component
โ โโโ Sun.tsx # Sun with corona effects
โ โโโ SolarSystem.tsx # Main solar system orchestrator
โ โโโ SpaceObjects.tsx # Deep space objects (black holes, nebulae, etc.)
โ โโโ PlanetInfo.tsx # Planet information panel
โ โโโ SpaceObjectInfo.tsx # Space object information panel
โโโ data/
โ โโโ spaceObjects.ts # Educational content and data
โโโ utils/
โ โโโ cn.ts # Utility functions
โโโ App.tsx # Main application component
โโโ main.tsx # Application entry point
โโโ index.css # Global styles
Edit src/components/SolarSystem.tsx:
const PLANETS_DATA = [
// ... existing planets
{
name: 'YourPlanet',
radius: 1.5,
distance: 45,
orbitalPeriod: 1000,
rotationPeriod: 2,
colors: ['#FF0000', '#00FF00'],
tilt: 15,
eccentricity: 0.05,
}
];Edit the SPACE_PALETTES array in src/App.tsx:
{
name: 'Your Theme',
bg: '#000000',
stars: '#ffffff',
nebula: '#1a0033',
accent: '#4a00e0',
nebulaColors: ['#4a00e0', '#1a0033', '#6600ff']
}Contributions are welcome! Here are some ideas:
- ๐ Add more moons to other planets
- ๐ธ Include spacecraft or satellites
- ๐ Add more space phenomena (supernovae, quasars)
- ๐ฑ Improve mobile responsiveness
- ๐ต Add ambient space sounds
- ๐ Internationalization support
This project is open source and available under the MIT License.
- Planetary data based on NASA's solar system exploration
- Three.js community for amazing 3D capabilities
- React Three Fiber team for the excellent React integration
- Performance may vary on older devices (3D rendering is intensive)
- Some space objects may overlap at certain camera angles
- Mobile touch controls could be improved
Have questions or suggestions? Feel free to open an issue! OR you can mail me at yaksh.inbox@gmail.com
Made with โค๏ธ by Yaksh Devani
"The cosmos is within us. We are made of star-stuff." - Carl Sagan
โญ Star this repo if you enjoyed exploring space!