What is the Astro framework?
Astro is an open-source web framework for content-focused websites that renders pages to HTML at build time or on the server and ships no client-side JavaScript by default, adding interactivity only where a component needs it.
How Astro works: HTML first, islands where needed
Marketing sites, docs and blogs are mostly content. Astro serves that content as plain HTML, which makes pages fast on mobile networks and easy for search engines and AI crawlers to read. For a SaaS team, that means strong Core Web Vitals without fighting a framework built for apps.
It also avoids lock-in. Astro is open source (MIT license), works with React, Vue, Svelte and other components, pulls content from Markdown or any headless CMS, and deploys to Netlify, Vercel, Cloudflare or a plain server. The trade-off is that marketers need a CMS set up for them; there is no visual editor out of the box like Framer or Webflow.
What Astro is used for
Astro is used for content sites. We choose it when performance, content scale or developer control matter more than drag-and-drop editing: large docs and resource hubs, multilingual sites, or teams with engineers who want the site in their own repository. We pair it with a headless CMS so marketers can still publish without a developer.
Builds follow our design system as code: tokens in CSS, components with documented rules, a check script before every deploy. The site lives in your own Git repository, so your team and AI coding agents propose changes as pull requests. See Astro development, static site generators and how we work.
Related service: Astro development · How we work
Astro in practice
A developer-tool company has 400 docs pages, a changelog and a marketing site on three systems. On Astro, all three share one component library and one set of tokens. Docs come from Markdown in the product repository; marketing pages come from a headless CMS. Only the pricing calculator and the search box ship JavaScript, as “islands”; the rest is static HTML served from a CDN.
Common mistakes
- Hydrating every component. Using client directives everywhere throws away Astro’s main benefit. Hydrate only what needs to be interactive.
- Forgetting editors. Without a CMS, every typo needs a developer. Plan the editing experience before the first page.
- Choosing Astro for an app-like product. Highly interactive dashboards are better served by an app framework such as Next.js.
An island in one line of code
A component from React, Vue or Svelte renders to plain HTML unless you mark it. The client:visible directive turns it into an island that loads its JavaScript only when it scrolls into view:
<PricingCalculator client:visible />Astro vs Next.js, Webflow and Framer
Astro suits content sites kept in a team’s own repository; the site builders suit teams that want to edit visually. Compare in depth: Astro vs Next.js, Astro vs Webflow, Astro vs Framer.
| Astro | Next.js | Webflow | Framer | |
|---|---|---|---|---|
| What it is | Open-source web framework for content sites | Open-source React framework for apps and sites | Hosted visual website platform | Hosted visual website builder |
| Rendering | HTML first, JavaScript only in islands | React on server and client | Hosted pages from the visual canvas | Hosted pages from the canvas |
| Editing | Code, plus a headless CMS for marketers | Code, plus a headless CMS for marketers | Visual canvas and built-in CMS | Visual canvas and built-in CMS |
| Who maintains it | Developers, in your repository | Developers, in your repository | Marketers and designers | Marketers and designers |
Astro with a headless CMS
Marketers edit an Astro site in a headless CMS such as Sanity, Storyblok, Contentful or Keystatic. Astro’s content layer pulls the entries in, and the site rebuilds or renders the change.
When not to use Astro
- App-like products with a lot of client state, such as dashboards: an app framework such as Next.js fits better.
- Teams without developers who want drag-and-drop editing out of the box: Framer or Webflow fit better.
Questions about Astro
Is Astro good for SEO?
Can marketers edit an Astro site?
Is Astro free?
Can Astro use React components?
What does an Astro site cost with STRAK?
Thomas OldenburgerFounder, design and build leadStill deciding? A 30-minute call answers most of it.
Related terms
Static site generator
A static site generator is a tool that builds a website’s pages into ready-made HTML files ahead of time, from templates and content, so a server or CDN can deliver them instantly without assembling each page on request.
Definition Website and CMSHeadless CMS
A headless CMS is a content management system that stores and serves content through an API, without its own front end, so the same content can be displayed by any website, app or channel.
Definition SEO and AEOCore Web Vitals
Core Web Vitals are Google’s three field metrics for page experience: Largest Contentful Paint (loading, good at 2.5 seconds or less), Interaction to Next Paint (responsiveness, good at 200 milliseconds or less) and Cumulative Layout Shift (visual stability, good at 0.1 or less).
Definition Website and CMSWebflow
Webflow is a visual web development platform in which teams design responsive websites on a canvas that maps directly to HTML and CSS, manage content in a built-in CMS and publish to managed hosting.
Definition