A small interactive 3D space simulator built with React + Three.js. It lets you place planets, tweak physical parameters, and watch a simple gravity/physics-driven scene with explosions and camera controls.
- Real-time 3D rendering with
threeand@react-three/fiber. - Simple physics/interaction via
@react-three/cannonand custom gravity utilities. - Fast authoring controls using
levafor spawning and tuning planets.
- Vite + React (TypeScript)
- three, @react-three/fiber, @react-three/drei
- @react-three/cannon for physics
- Tailwind CSS for UI utilities
- Leva for debug/control panels
- Node.js >= 24
- Install dependencies
npm install- Run the dev server
npm run dev- Build for production
npm run build- Preview the production build
npm run preview- A Biome check is available:
npm run check(project includes@biomejs/biome). - A pre-commit hook tool (
lefthook) is present in devDependencies — follow the repository conventions when committing.