Installation
Requires Node 20+. V resolves itself — system v, else the @swelte/vvm toolchain. No manual V install. SSR is optional: core runs SPA/static + JSON out of the box; only
install @swelte/ssr-qjs if you want server rendering (see SSR).
- Scaffold
- Install
- Dev
- Build
npm create @swelte myapp && cd myapp
npm install
npx swelte dev # Vite :5174 + V backend :8131
# SSR is optional - core runs SPA/static + JSON without it.
# Only if you want server rendering, add the adapter:
# npm install @swelte/ssr-qjsWhat you get
src/routes/— server RPC (.vroute handler,#routes/…import)src/lib/— isomorphic lib (.vlocal compute,#lib/…WASM call).swelte/— generated types, runtime stubs, server harness (never edit)
Try it live
npx swelte dev # this site: examples/docs-site
# open http://localhost:5174Every page here has a +page.v probe arm — the API dispatcher needs a leaf .v to claim the URL for JSON/RPC. A +page.svelte alone still renders (static
shell/SPA + optional SSR); add the +page.v only when the route needs server
data or callable arms.
Open http://localhost:5174 —
swelte dev runs Vite + V backend in one command.