Documentation Index
Fetch the complete documentation index at: https://dadd.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Install
Peer Dependencies
| Package | Version | Purpose |
|---|---|---|
mujoco-js | >=0.0.7 | MuJoCo WASM module (physics engine) |
@react-three/fiber | >=8 | React renderer for Three.js |
@react-three/drei | >=9 | R3F helpers (PivotControls, etc.) |
three | >=0.150 | 3D rendering |
react | >=18 | React |
TypeScript
@types/ package needed for the library itself.
Bundler Setup
Vite (Recommended)
mujoco-js includes a WASM binary embedded in its JS bundle. No special WASM configuration is needed — it works out of the box with Vite:Next.js
Since mujoco-js uses WASM, it must run client-side only:Create React App
Works out of the box. No additional configuration needed.Verify Installation
The first load may take a few seconds as the WASM module initializes and model assets are fetched from GitHub. Subsequent loads are faster due to browser caching.