Astro vs SvelteKit
Astro: Marketing sites, docs, blogs and directories where speed and SEO matter.; SvelteKit: Full-stack apps where you want less boilerplate and small bundles.
| Field | Astro | SvelteKit |
|---|---|---|
| Pricing | Open source | Open source |
| Open source | Yes | Yes |
| Self-hostable | Yes | Yes |
| Ecosystem | JavaScript / TypeScript | JavaScript / TypeScript |
| License | MIT | MIT |
| Category | Web frameworks | Web frameworks |
Choose Astro over SvelteKit when
Choose it for a content-oriented site when only selected parts of a page need browser JavaScript, including interactive Svelte components.
Astro's islands architecture lets a page use isolated components that hydrate in the browser while surrounding markup remains static. Astro islands A page can contain islands from different UI frameworks, including Svelte. An island's hydration directive controls when it starts running in the browser. Client islands
SourceChecked 28 November 2026
Astro
A web framework for content-driven sites that ships zero JavaScript by default and adds interactive islands where needed.
Choose Astro if
Marketing sites, docs, blogs and directories where speed and SEO matter.
Why it’s here
Pages render to HTML at build time by default, and components ship no client JavaScript unless you add a client: directive (islands). You can mix React, Preact, Svelte, Vue and SolidJS components on one page, and content collections give Markdown and MDX files typed, queryable frontmatter (content collections). DevCurator itself runs on Astro 7.
Pick it when
- The site is mostly content: marketing pages, docs, a blog, a catalogue or a shop front. These are the cases Astro's own docs name (why Astro).
- Most pages can be static but a few need server rendering. Set
export const prerender = falseon those routes, oroutput: 'server'for the whole site, with an official adapter for Node.js, Netlify, Vercel or Cloudflare (on-demand rendering). - A page is static except for one personalised block, such as a cart or an avatar. A server island renders that block on request and shows fallback content until it arrives (server islands).
- You need a docs site: Starlight is Astro's documentation theme, started with
npm create astro@latest -- --template starlight(Starlight).
Skip it when
- The product is an app that lives in the browser: a logged-in dashboard, an inbox or an editor. Astro's own docs say most other modern frameworks were designed for those (why Astro).
- Your runtime is pinned below Node 22. Astro needs Node v22.23.4 or later and does not support odd-numbered Node versions (install guide).
Current state
The latest release is astro 7.4.12, published 2026-11-13. Astro 7 shipped on 2026-06-22 with a .astro compiler rewritten in Rust, a Rust Markdown pipeline by default, and Vite 8; Astro reports builds 15% to 61% faster in its own benchmarks (Astro 7). Astro 6, on 2026-03-10, added a Fonts API, a Content Security Policy API and live content collections (Astro 6). In January 2026 The Astro Technology Company joined Cloudflare; its full-time staff became Cloudflare employees, and the post states that Astro stays MIT licensed, keeps open governance and supports deployment targets other than Cloudflare (announcement).
Setup
npm create astro@latest
npx @astrojs/upgrade # existing projects
Watch out for
Upgrading to Astro 7 can break templates that rendered before: the Rust compiler reports unclosed tags and other invalid HTML as errors instead of correcting them, and whitespace between elements now collapses the way JSX does, which can join inline elements that used to have a space between them (Astro 7). Live content collections fetch data on every request; the docs recommend build-time collections unless content must update in real time (content collections).
SvelteKit
The official application framework for Svelte, with routing, server rendering, form actions and adapters for many hosts.
Choose SvelteKit if
Full-stack apps where you want less boilerplate and small bundles.
Why it’s here
SvelteKit is an application framework for Svelte. It maps files under src/routes to pages and endpoints. Page and layout components render the interface, while route files load data or handle HTTP requests. SvelteKit introduction Routing Deployment adapters turn the built application into output for a chosen host or a static site. Adapters
Pick it when
- You want each page to own the code that loads its data. A server
loadfunction can read from a database or use private credentials, while a universalloadfunction can also run in the browser. Keep code that depends on server-only resources in the server file. Loading data - You want HTML forms to submit with ordinary browser behavior and add client-side enhancement where needed. Define actions in the page's server file and use
use:enhanceto control the experience when JavaScript is available. Form actions - You want to choose a deployment target separately from building routes. SvelteKit's official adapters cover Node servers, static output and several hosting services. Adapters
Skip it when
- Your host can only serve static files and some routes need a server to render them on each request. The static adapter prerenders the site, while pages that mix prerendered and dynamic server output require a different adapter. Static adapter
Current state
The npm registry's latest release of @sveltejs/kit is 3.4.1, published November 25, 2026. npm registry SvelteKit uses the MIT licence. SvelteKit licence
Setup
Run npx sv create my-app to scaffold a project. Enter the directory, install dependencies if the scaffold did not do so, and run npm run dev. Create a project
Watch out for
SvelteKit 3 moves framework configuration from svelte.config.js to the Vite plugin and removes $app/stores. The migration guide documents npx sv migrate sveltekit-3 for many of the changes and lists remaining adjustments, including the move from $lib to #lib. SvelteKit 3 migration guide