Installation
Package Manager
npm install three-flatland@alphapnpm add three-flatland@alphayarn add three-flatland@alpha three kootabun add three-flatland@alphaReact Three Fiber (Optional)
React is not required. If you’re using React Three Fiber, add the additional dependencies:
npm install three-flatland@alpha @react-three/fiber@alphapnpm add three-flatland@alpha @react-three/fiber@alphayarn add three-flatland@alpha @react-three/fiber@alpha three koota react react-dombun add three-flatland@alpha @react-three/fiber@alphaRequirements
- Three.js: >= 0.183.1 (required for TSL/WebGPU support)
- koota: >= 0.1.0 (ECS for batch rendering)
- React: >= 19.0.0 (for
three-flatland/react) - @react-three/fiber: >= 10.0.0-alpha.2 (for
three-flatland/react) - Node.js: >= 22 (LTS)
TypeScript
three-flatland is written in TypeScript and ships with full type definitions. No additional @types packages are required.