Frontend · Framework

Astro

A framework for content-heavy websites such as blogs, docs and marketing pages. It sends plain HTML by default and adds JavaScript only where a page needs it.

Meta-frameworks · Open source · updated

How it works

Astro renders pages to HTML at build time or on the server, and ships no JavaScript unless a component asks for it. Interactive parts become islands: a React, Vue, Svelte or Solid component marked with a directive such as client:visible loads on its own, while the rest of the page stays static. Content collections give Markdown and MDX files typed, validated front matter.

It suits sites where reading matters more than app-like interaction, and sending less JavaScript helps Core Web Vitals. Server islands and on-demand rendering cover personalised parts. The team behind Astro joined Cloudflare in 2026; the framework stays MIT-licensed and deploys to most hosts.

Astro pros and cons

Pros

  • Very little JavaScript by default, so pages load quickly
  • Mix components from React, Vue, Svelte and others in one site
  • Content collections keep Markdown and MDX sites tidy
  • Deploys as static files or with server rendering

Cons

  • Not built for highly interactive, app-like products
  • Sharing state between islands takes extra work

When to use Astro

Pick it when

  • Blogs, documentation, portfolios and marketing sites
  • Sites where speed and SEO matter more than interactivity
  • Moving a content site off a heavier framework

Skip it when

  • Dashboards, editors or apps with lots of shared state

Astro pricing

Open source

Free (MIT).

Approximate, checked September 2026.What the other tools cost

Astro vs the alternatives

More in Frontend

Meta-frameworks

All 26 Frontend terms

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.