Why I Chose Astro for My Portfolio
A deep dive into why Astro 6 is the best framework for content-heavy sites in 2026.
When I decided to rebuild my portfolio, I evaluated several frameworks. Here’s why Astro 6 won.
The Zero-JavaScript Default
Astro ships zero JavaScript by default. Every component renders to static HTML unless you explicitly add interactivity with client directives. For a portfolio that’s 90% content, this is perfect.
Content Layer API
Astro 6’s Content Layer API provides type-safe content management without a CMS. My project case studies are written in MDX with Zod-validated frontmatter. I get full TypeScript autocomplete for every field.
Cloudflare Integration
After Cloudflare acquired the Astro team, the integration became first-class. The dev server runs on Cloudflare’s workerd runtime, eliminating the “works on my machine” problem entirely.
Performance Results
My portfolio consistently scores 100 on Lighthouse across all categories. The total JavaScript shipped is under 5KB — most of that is the dark mode toggle and contact form.