π Getting Started β
π Overview β
Three App
is a set of utility functions that makes working with three.js more declarative and functional. It provides a solid starting point for 3D projects by reducing boilerplate and helping organize your codebase more effectively.
This experimental toolkit simplifies three.js
app development through a collection of composable helpers. The goal is to offer a developer experience similar to React Three Fiber, while staying framework-agnostic, native, and minimal.
π Try It Online β
You can try Three App
directly in the browser with no setup required:
π Scaffolding Your Project β
You can scaffold a project using Parcel or Create Vite with the vanilla template:
npm create vite@latest my-three-app -- --template vanilla-ts
π₯ Installation β
npm i three @slzr/three-app
π§© Three.js Compatibility β
Three App
is compatible and tested with three.js r175 and requires r158 or higher.
If you're upgrading from an older version, check the release notes and the migration guide for potential breaking changes.
π· TypeScript Support β
Three App
is fully type-safe out of the box. Since three.js
doesnβt ship with types, install them manually:
npm i -D @types/three
π¦ Before You Start β
You should have at least a basic understanding of how three.js
works to use Three App
effectively.
π Recommended Learning Material β
- Three.js - Official Documentation
- Three.js - Fundamentals
- Discover Three.js
- Bruno Simon's Three.js Journey
- SB Code - Three.js and TypeScript Tutorials
- Codrops - Three.js Posts