A Next.js implementation of the MuJoCo in-browser simulator that runs MuJoCo physics simulations directly in the browser using WebAssembly.
This project is a Next.js wrapper around the zalo/mujoco_wasm library, which provides MuJoCo physics simulation capabilities in the browser through WebAssembly. It allows you to run and visualize MuJoCo physics simulations with a simple web interface.
- 🎮 Interactive 3D physics simulation viewer
- 🎯 Real-time MuJoCo physics engine running in WebAssembly
- 📁 Load and visualize various MuJoCo model files (.xml)
- 🎨 Three.js powered 3D rendering with orbit controls
- 📱 Responsive design that works on desktop and mobile
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser: Navigate to http://localhost:3000 to see the MuJoCo simulator in action.
This project is built on top of the excellent zalo/mujoco_wasm library, which provides the core MuJoCo WebAssembly implementation. The original MuJoCo physics engine is developed by DeepMind.
- Next.js 15 - React framework
- Three.js - 3D graphics library
- MuJoCo WASM - Physics simulation engine
- TypeScript - Type safety
- Tailwind CSS - Styling
npm run dev- Start development servernpm run build- Build for productionnpm run start- Start production servernpm run lint- Run ESLint