talira

SvelteKit

Web development, streamlined

open sourceMITself-hostablefree

SvelteKit is the application framework for Svelte, playing the role Next.js plays for React: Svelte compiles UI components, and SvelteKit adds routing, data loading and the build. Each page can render on the server, in the browser or at build time (prerendering), with load functions for data, form actions and remote functions for mutations, hooks, service workers for offline support, link preloading, image optimisation and code splitting. It runs on Vite with hot module replacement in development, and official adapters deploy the same app to Node or Bun servers, Vercel, Netlify, Cloudflare Workers or a static host. It's MIT licensed and maintained by the Svelte project.

Problems it solves

  • build a full web app with Svelte, not just components
  • I want server-side rendering and file-based routing for my Svelte app
  • deploy the same Svelte app to Vercel, Cloudflare Workers or my own Node server
  • prerender most pages to static HTML but keep a few dynamic ones
  • handle form submissions that work even without JavaScript
  • a lighter alternative to Next.js that ships less JavaScript
  • make my web app work offline with a service worker

Features

  • file-based routing
  • server-side rendering, client-side rendering and prerendering per page
  • single-page app mode
  • load functions for data
  • form actions and remote functions
  • hooks
  • service workers for offline support
  • link preloading
  • image optimisation
  • code splitting
View 2 more
  • Vite with hot module replacement
  • official adapters: Node, Bun, Vercel, Netlify, Cloudflare Workers and static

Capabilities

Takes pluginsplan not known

Alternatives

The same job

These do what SvelteKit does.

  1. Astro The web framework for content-driven websites: server-first, with zero JavaScript by default.
  2. Next.js The React framework for the web.
  3. Nuxt The full-stack Vue framework

Compare SvelteKit with the top 3