Sandbox for three.js, built with Vite and TypeScript.
Several experiments that used to live on separate Git branches are combined here: pick an example from the tab bar at the top of the page. Only one WebGL view runs at a time so switching tabs disposes the previous demo and mounts the next (better for performance than stacking every canvas on one screen).
Install dependencies:
yarn installStart the Vite dev server (with hot reload):
yarn devOpen the URL shown in the terminal (typically http://localhost:5173).
Static assets served as-is from the project live in public/ (for example favicon.png).
Create an optimized bundle in dist/:
yarn buildPreview the production build locally:
yarn preview| Script | Description |
|---|---|
yarn lint |
ESLint |
yarn typecheck |
TypeScript (tsc --noEmit) |
yarn test |
Vitest (unit tests) |
yarn test:watch |
Vitest watch mode |
There is no coverage step in this project.