Getting Started
Installation
To start using Threlte, install the packages you want to use in your project.
Threlte consists of 7 packages which can be installed and used individually.
@threlte/core and Three.js itself are required, while the
other packages are optional.
@threlte/gltf does not need to be
installed separately as it can be used with npx. The Threlte
components it generates, however, require @threlte/extras to be installed.
Choose the packages you want to use
Install the packages with npm, pnpm, yarn or any other package manager you prefer.
npm install three @threlte/core See this comment for tips on how to reduce bundle size when working with bundlers like Vite and Three.js.