Why I Rebuilt My Portfolio on Astro: Speed, Simplicity, and Zero-JS Architecture

The Modern Portfolio Conundrum

Like many full-stack developers, I previously built my personal portfolio using heavy single-page application (SPA) frameworks like Next.js and React. While the developer experience was enjoyable, delivering 250KB of client-side JavaScript just to render a static blog post and project gallery felt fundamentally flawed.

Rebuilding my portfolio on Astro eliminated client-side runtime bloat, simplified content management, and delivered flawless 100/100 Google Lighthouse scores.

1. Why Astro Stands Apart

  • Zero JavaScript by Default: Astro renders pages to pure, static HTML and CSS. No hydration overhead, no client-side framework runtime, and no cumulative layout shift.
  • Islands Architecture: When interactive components (such as contact modals or filter toggles) are required, Astro hydrates only that specific component island while leaving the rest of the page static.
  • Type-Safe Content Collections: Astro's built-in astro:content API validates Markdown and MDX frontmatter schemas with Zod, guaranteeing that missing fields or malformed dates break at build time rather than in production.

2. Real-World Performance Wins

After migrating from a heavy SPA framework to Astro:

  • Total page weight dropped from 420KB to 48KB.
  • First Contentful Paint (FCP) improved from 1.4s to 0.25s.
  • Mobile Google Lighthouse scores reached a perfect 100/100 across Performance, Accessibility, Best Practices, and SEO.

Conclusion

Choosing the right engineering tools for the job is what separates good developers from great ones. Explore my portfolio projects or contact me to discuss modern web development.