Back to Blog Welcome to My New Blog

Welcome to My New Blog

February 1, 2024 · Peter Kaskonas
astro web-development performance

Welcome to My New Blog

I’ve recently migrated my personal site from Next.js to Astro, and I’m excited to share why this change makes a huge difference for content-focused sites like this one.

Why Astro?

Astro is a modern web framework designed specifically for content-driven websites. Here’s what makes it special:

Zero JavaScript by Default

Unlike traditional frameworks that ship JavaScript to the browser even for static content, Astro sends zero JavaScript by default. This means:

Islands Architecture

When you do need interactivity, Astro uses an “islands” architecture. Interactive components are hydrated independently, so a contact form doesn’t slow down the rest of the page.

Content Collections

My blog posts are now stored as Markdown files with type-safe frontmatter validation using Zod. This means:

Performance Results

The migration resulted in significant improvements:

MetricBefore (Next.js)After (Astro)
JS Bundle~100KB~5KB
TTFB200-500ms10-50ms
Lighthouse Score85-9098-100

What’s Next?

I’ll be writing more about AWS, DevOps, and modern web development. Stay tuned!


Thanks for reading! Feel free to reach out via the contact form below.