A Svelte 5 single-page app starter in JavaScript on Vite 8, for developers who want one compiled page without a router or server. It includes components using runes, a light and dark theme, ESLint and Vitest with Testing Library.
by Light CloudSingle-page apps


The Svelte compiler turns each component into plain JavaScript at build time, so the browser downloads only a small runtime and there is no virtual DOM. The page is composed in App.svelte from small components, which makes it easy to replace the hero and links with your own content. Change the heading through VITE_APP_TITLE first, then edit Hero.svelte. When you need several pages or server code, move to SvelteKit. Deploying runs npm run build and serves dist/ from a CDN.
This template is plain Svelte on Vite: one page, built to static files, with no router and no server. SvelteKit adds file-based routing, server rendering and endpoints.
Yes. Counter.svelte keeps its count in $state and Layout.svelte takes its content through $props and {@render children()}.
For several pages, SvelteKit is the simpler path. To stay on this template, add a client-side router package and render a component per path in App.svelte; hosts other than Light Cloud then need a fallback to index.html.
Yes. It is MIT licensed, and it builds to a static site, which the Light Cloud Free plan hosts with no card needed.
Yes. Run npm run build and serve dist/ from any static host. There is no client-side routing, so no rewrite rules are needed.