Description
svelthree is a component library for building three.js scenes declaratively with Svelte components. Each part of a three.js scene graph becomes a reusable Svelte component, so a 3D scene is written with the same kind of code as the rest of your app. The README marks the library as default Svelte first. It recommends setting props with the component's $set method, which is asynchronous and scheduled, rather than with accessors, because accessors update components synchronously and can cause bugs and slowdowns. Accessor syntax is still available if you import components from svelthree/acc. The README labels the 1.0.0 next releases as a draft. To try the latest version, you clone the repository, build it, run npm pack to make a tarball, and install that tarball in a project such as a SvelteKit app. Three.js is installed alongside it. The repository is public on GitHub.…
Highlights
- Reusable Svelte components for three.js scene graphs
- Default Svelte-first API with $set updates
- Optional accessor syntax through svelthree/acc
- Installs into SvelteKit projects from a tarball
- The 1.0.0 next releases are marked as a draft
Ratings & Reviews
No ratings yet
Be the first to rate svelthree.
People also visit
svelthree FAQ
What is svelthree?
A component library for building three.js content with Svelte components, declaratively and reactively.
How do I set props on a component?
The README recommends the $set method, for example comp_ref.$set with new values. Accessor syntax needs components imported from svelthree/acc.
Is it a stable release?
The README labels the 1.0.0 next releases as a draft, and explains how to try the latest code before a release.
How do I try the latest version?
Clone the repository, run npm install and npm run build, then run npm pack in the package folder to make a tarball. Add the tarball to your project's devDependencies and run npm install.
Is it open source?
The source is public on GitHub at vatro/svelthree.
What are the best svelthree alternatives?
Popular alternatives to svelthree include threlte, SvelteUI and @jis3r/icons. See all svelthree alternatives












