Skip to content

Installation

Package Manager

Terminal window
npm install three-flatland@alpha

React Three Fiber (Optional)

React is not required. If you’re using React Three Fiber, add the additional dependencies:

Terminal window
npm install three-flatland@alpha @react-three/fiber@alpha

Requirements

  • 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.