Three.js starter · v1.1.0
c00d 3D Model Preview
Pan, rotate, zoom — ready to ship
Full-screen glTF/GLB viewer for portfolios, shops, and docs. OrbitControls with pan and zoom, drag-and-drop upload, reset camera, optional grid and spin, and ?model= URL sharing.
Stack: Vite 6 + Three.js + GLTFLoader + IndexedDB.
Requires Node.js for npm scripts. Licensed under MIT.
Included
- Rotate, pan, and zoom (mouse + touch)
- Upload .glb / .gltf — stored in browser IndexedDB only (not on server)
- Recent uploads list, per-file delete, clear-all cache
- Reopens last upload on return visit; share via ?id=
- Remote URLs still work with ?model=https://…
Get started
- npm install && npm run dev — drop a model to test local cache
- npm run build — deploy dist/ to any static host
- CACHE_MAX_MODELS in src/config.js
- Rebrand toolbar in index.html and style.css
Unzip, then follow README.md inside the package.