SvelteKit is a framework for building web applications with Svelte. It applies modern practices for routing, rendering, builds, and development tooling.
Overview
SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. It is oriented toward the same role as Next for React ecosystems or Nuxt for Vue, and the documentation covers several project types you can build with it.
Svelte handles user interface components that run in the browser, while SvelteKit layers on what you need for a full application. It includes a router that updates the UI when links are clicked, build optimizations so only minimal code loads, offline support, page preloading before navigation, and image optimization.
Rendering is configurable across the app: server-side rendering, client-side rendering in the browser, or prerendering at build time. During development, changes to your code show up in the browser quickly through Vite with a Svelte plugin and hot module replacement.
The project ships as npm packages such as the core kit module and deployment adapters for hosts including Node, static hosting, Cloudflare, Netlify, and Vercel, with additional adapters maintained by the community.
Key features
- File-based router with link navigation
- SSR, client-side rendering, and prerendering
- Build optimizations for minimal code loading
- Offline support
- Page preloading before navigation
- Image optimization
- Vite-based dev server with hot module replacement
- Deployment adapters for multiple hosts
Use cases
- Full-stack web applications with Svelte
- Server-rendered sites and hybrid rendering
- Static or prerendered web projects
- Apps deployed to Node or serverless platforms