In the Astro vs SolidStart decision, choose Astro when the project is mostly content (marketing pages, docs, blogs, portfolios) with a few interactive widgets, and choose SolidStart when the project is an application built in Solid, where most screens are interactive and share state. Astro ships zero JavaScript by default and can render Solid components as islands; SolidStart ships the Solid runtime and router to every page and treats the whole site as one app.
The two are closer than most framework comparisons. Both are built on Vite, both render on the server, and Solid is a first-class UI framework inside Astro. The real question is whether Solid should own the page or only parts of it.
Key Takeaways
- Astro is a content-first framework where Solid is one of several optional island frameworks. SolidStart is Solid’s own full-stack app framework.
- Astro’s default page ships no client JavaScript. A SolidStart page always loads Solid and its router, which are small but not zero.
- SolidStart has server functions, nested routes and streaming built around Solid’s reactivity. Astro has actions, server islands and content collections.
- You can use Solid inside Astro with
npx astro add solid, so picking Astro does not mean giving up Solid.- A common split: Astro for the public site and docs, SolidStart for the logged-in app.
Astro vs SolidStart at a glance
| Astro | SolidStart | |
|---|---|---|
| Primary job | Content-driven websites | Full-stack Solid applications |
| UI layer | .astro components plus React, Vue, Svelte, Solid or Preact islands |
Solid components only |
| Client JS by default | None | Solid runtime and router |
| Routing | src/pages/ file routing |
src/routes/ file routing with nested layouts |
| Data loading | Frontmatter await, content loaders, endpoints |
query, createAsync, server functions ("use server") |
| Content | Content collections with schemas | Bring your own (MDX support via plugins) |
| Rendering | Static by default, on-demand per route with an adapter | Server rendering with streaming, optional prerendering |
| Server runtime | Official adapters (Node.js, Netlify, Vercel, Cloudflare) | Deployment presets for many hosts |
The table hides one thing that matters a lot in practice: in Astro, the page is HTML and interactivity is the exception. In SolidStart, the page is a Solid app and static HTML is an optimisation.
Rendering model: islands vs a reactive app
Astro renders every component to HTML on the server. Only components with a client:* directive send JavaScript, and each one hydrates on its own. A Solid counter in Astro looks like this:
---
// src/pages/index.astro
import Layout from '../layouts/Layout.astro';
import Counter from '../components/Counter.tsx'; // a Solid component
---
<Layout title="Home">
<h1>Hello</h1>
<p>This paragraph ships as plain HTML.</p>
<Counter client:visible />
</Layout>
The only JavaScript on that page is Solid’s runtime plus the counter, and it loads when the counter scrolls into view. The client directive guide covers when to use client:load, client:idle and client:visible.
SolidStart renders the page on the server, streams it, then hydrates the app in the browser so Solid’s fine-grained reactivity takes over. Navigation between routes happens client-side through the router, so the second page load is fast and keeps in-memory state.
// src/routes/index.tsx (SolidStart)
import { createSignal } from 'solid-js';
export default function Home() {
const [count, setCount] = createSignal(0);
return (
<main>
<h1>Hello</h1>
<button onClick={() => setCount(count() + 1)}>Clicked {count()} times</button>
</main>
);
}
Solid is one of the lightest UI runtimes, so the difference in bytes is smaller here than in Astro vs Next.js. The difference in architecture is the same: SolidStart hydrates the whole page tree, while Astro hydrates only what you mark.
Routing and layouts
Both use file-based routing with dynamic segments in square brackets.
- Astro:
src/pages/blog/[slug].astro, withgetStaticPaths()returning the list of slugs for static builds. - SolidStart:
src/routes/blog/[slug].tsx, rendered on request by default, with optional prerendering configured inapp.config.ts.
SolidStart’s nested routes keep a parent layout mounted while child routes swap, which suits apps with persistent sidebars, tabs and editors. Astro layouts are regular components that render again for each page. If you want app-like transitions in Astro, <ClientRouter /> from astro:transitions gives you client-side navigation, and transition:persist keeps chosen elements (an audio player, a search box) alive across pages.
Data loading and server code
This is where SolidStart feels most like an app framework. You write server functions that run only on the server and call them from components, and createAsync wires the result into Solid’s reactivity:
// src/routes/posts.tsx (SolidStart)
import { query, createAsync } from '@solidjs/router';
import { For } from 'solid-js';
const getPosts = query(async () => {
'use server';
const res = await fetch('https://api.example.com/posts');
return (await res.json()) as { id: string; title: string }[];
}, 'posts');
export default function Posts() {
const posts = createAsync(() => getPosts());
return <ul><For each={posts()}>{(p) => <li>{p.title}</li>}</For></ul>;
}
In Astro, page data is fetched in the component frontmatter, which runs at build time for static pages or per request for on-demand pages:
---
// src/pages/posts.astro
const res = await fetch('https://api.example.com/posts');
const posts: { id: string; title: string }[] = await res.json();
---
<ul>
{posts.map((p) => <li>{p.title}</li>)}
</ul>
For mutations, Astro has actions (defineAction from astro:actions) with input validation, and SolidStart has server functions and the router’s action() helper. Both cover forms with progressive enhancement. The Astro SSR guide walks through Astro’s server features, including server islands that defer slow, per-user fragments of an otherwise static page.
Content and Markdown
Astro has content collections built in. You define a collection in src/content.config.ts, point a loader at a folder, and get typed, validated entries:
// src/content.config.ts
import { defineCollection } from 'astro:content';
import { z } from 'astro/zod';
import { glob } from 'astro/loaders';
const blog = defineCollection({
loader: glob({ pattern: '**/*.{md,mdx}', base: './src/content/blog' }),
schema: z.object({
title: z.string(),
pubDate: z.coerce.date(),
draft: z.boolean().default(false),
}),
});
export const collections = { blog };
SolidStart has no content layer. You can add MDX through a Vite plugin and read files yourself, or pull from a CMS, but frontmatter validation, image handling for Markdown and RSS are yours to assemble. For a blog or docs site, that is the biggest practical gap. The content collections guide shows the full Astro setup.
Using Solid inside Astro
If your team likes Solid, Astro does not ask you to stop using it. One command adds the integration:
npx astro add solid
Then write .tsx Solid components and drop them into .astro pages. A few things to know:
- Solid components without a directive render to static HTML and ship no JavaScript.
- With a directive, each island is its own Solid root. Signals do not cross islands unless you share them through a module or a small store like nanostores.
- If you also use React in the same project, set
includepatterns for each integration inastro.config.mjsso the right renderer handles each file, because both use JSX.
// astro.config.mjs
import { defineConfig } from 'astro/config';
import solid from '@astrojs/solid-js';
import react from '@astrojs/react';
export default defineConfig({
integrations: [
solid({ include: ['**/solid/*'] }),
react({ include: ['**/react/*'] }),
],
});
Hosting and deployment
A static Astro build is a dist/ folder of HTML, CSS and assets, so it runs on any static host, including the free tiers of Cloudflare Pages, Netlify, Vercel and GitHub Pages. Add an adapter only when routes need to render on request. See the deployment docs for host-by-host steps.
SolidStart is server-first. Its deployment presets target Node.js, serverless and edge platforms, and you can prerender routes for a static export, but most SolidStart projects run a server because server functions are a core feature. That is fine for an app, and more than a brochure site needs.
Ecosystem and maturity
Astro has a larger set of official integrations for content sites: MDX, sitemap, RSS, image optimisation, Starlight for docs, and adapters for every major host. Its theme ecosystem is also wide, from free starters on astro.build/themes to commercial ones.
SolidStart sits on Solid’s ecosystem, which is smaller than React’s but focused and well-regarded for performance. Its router, meta and server function primitives are maintained by the Solid core team. If you are building a dashboard and want fine-grained reactivity across the whole app, that coherence is valuable.
When to choose Astro and when to choose SolidStart
Choose Astro if:
- Most pages are content that visitors read: landing pages, blog posts, docs, case studies.
- Visitors arrive from search and read one or two pages, so first-load JavaScript matters.
- Writers edit Markdown, MDX or a headless CMS.
- You want static hosting with no server to maintain.
- You might mix Solid with other frameworks or plain HTML components.
Choose SolidStart if:
- Most screens are interactive and share state across navigation.
- Users log in and stay for long sessions.
- You want server functions called directly from components.
- Your whole team writes Solid and the product is an app, not a publication.
Use both if you have a product and a marketing site. Put the public site on Astro at example.com and the app on SolidStart at app.example.com. Solid components for buttons or pricing tables can be shared between the two projects as long as they avoid SolidStart-only imports.
If the Astro side fits and you would rather not build the public site from scratch, the Komal Astro themes are complete Astro 7 projects for SaaS, agency and editorial sites that you can edit and deploy as static output.
FAQ
Is Astro faster than SolidStart?
For content pages, Astro usually sends less JavaScript because it ships none by default, while SolidStart always loads Solid and its router. Solid is small, so the gap is narrower than with React frameworks. For interactive apps, SolidStart’s client-side navigation can feel faster after the first load. Measure your own pages on a throttled mobile profile.
Can I use Solid components in Astro?
Yes. Run npx astro add solid, write Solid components as .tsx files, and import them into .astro pages. Add a client:* directive to the ones that need to be interactive.
Does SolidStart support static site generation?
Yes. SolidStart can prerender routes at build time through its server configuration, and it can crawl links to find pages. Most projects still use it with a server because server functions are a central feature.
Should I use Astro or SolidStart for a blog?
Astro. Content collections, MDX, RSS and sitemaps are built in or one command away, and posts ship without JavaScript. SolidStart can run a blog, but you assemble the content pipeline yourself. The Astro docs on content collections cover the setup.
Is SolidStart production ready?
SolidStart reached its 1.0 release in 2024 and is used in production. Its ecosystem is smaller than older frameworks, so check that the integrations you need (auth, CMS, hosting preset) exist before committing.