Skip to content

Installation

Install three-flatland in your project.

Terminal window
npm install three-flatland three

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

Terminal window
npm install three-flatland @react-three/fiber@10.0.0-alpha.3 react@~19.2.0 react-dom@~19.2.0
  • Three.js: ^0.185.1 (required for TSL/WebGPU support)
  • React: ~19.2.0 (for three-flatland/react; R3F alpha.3 requires React < 19.3)
  • @react-three/fiber: 10.0.0-alpha.3 (for three-flatland/react)
  • Node.js: >= 22 (LTS)

three-flatland is written in TypeScript and ships with full type definitions. No additional @types packages are required.

See the LLMs page for more prompts and machine-readable documentation.