Why Astro is the Right Tool for Content Sites

Astro's island architecture and zero-JS-by-default approach makes it uniquely suited for blogs, portfolios, and documentation sites.

Updated 3 min read

I’ve built websites with React, Next.js, Vue, SvelteKit, and plain HTML. Each has its place. But for content-focused websites like blogs, portfolios, and documentation, Astro stands out.

Here’s why.

Zero JavaScript by Default

Most modern frameworks ship a JavaScript runtime to the browser — even when the page is fully static. Next.js, SvelteKit, Nuxt — they all hydrate the page on load.

Astro flips this default. Pages ship zero JavaScript unless you explicitly opt in with client:load, client:idle, or client:visible.

<!-- This ships NO JavaScript -->
<MyComponent />

<!-- This hydrates on load -->
<MyComponent client:load />

<!-- This hydrates when visible (lazy) -->
<MyComponent client:visible />

For a blog post that doesn’t need interactivity? Zero JavaScript. For a search widget that does? Hydrate just that component.

The Island Architecture

Astro’s mental model is islands of interactivity in a sea of static HTML.

Think of each interactive widget as an island. The rest of the page — headers, footers, article content — is pure static HTML. Islands get hydrated independently, on-demand.

This is brilliant for performance:

  • Static HTML renders instantly
  • JavaScript only loads when needed
  • Multiple frameworks can coexist (React + Svelte + Vue in the same page if you want)

Content Collections

Astro’s Content Collections give you type-safe markdown. Define a schema once, and TypeScript knows the shape of every frontmatter field.

// content.config.ts
const blog = defineCollection({
  type: 'content',
  schema: z.object({
    title: z.string(),
    date: z.coerce.date(),
    tags: z.array(z.string()).default([]),
    draft: z.boolean().default(false),
  }),
});

Now when you query your posts, TypeScript knows exactly what fields exist. No more guessing if frontmatter.date is a string or a Date.

Performance Results

After building this site with Astro, Lighthouse scores are consistently:

MetricScore
Performance98
Accessibility100
Best Practices100
SEO100

These numbers are achievable with relatively little effort because Astro ships so little JavaScript by default.

When Not to Use Astro

Astro is not the right tool for everything. Skip it if you’re building:

  • A complex web app with lots of client-side state
  • A dashboard with real-time data
  • An app that requires client-side routing as a core feature

For those use cases, Next.js, SvelteKit, or Remix are better choices.

Conclusion

For blogs, portfolios, documentation sites, and marketing pages — Astro is the best tool I’ve used. The combination of zero-JS defaults, island architecture, and Content Collections makes it uniquely suited for content-focused sites.

If you’re building a personal website and haven’t tried Astro yet, give it a shot. You might not go back.