Svelte Cubed
summary
Shows how SvelteKit doubles as a library toolkit and demonstrates a concrete workflow: keep an app and a publishable library in one repo, run npm run package to emit compiled JS plus .d.ts files and an exports map, and import via an alias like lib or a package name. Builds a real component library called svelte-cubed that wraps 3js with Svelte components, uses TypeScript, onFrame hooks, HMR, mesh standard materials, shadows and works well enough to power Olympic-results demo videos.
AI-written summary · about
chapters (8)
- 0:00Introduction to SvelteKit
- 1:27Internal library structure
- 2:14Building libraries in tandem
- 3:33Component library example
- 5:03Distributing the library
- 6:25Introducing Svelte Cubed
- 7:273D visualization demos
- 8:21Building a 3D scene








