Astro web framework
Astro is an all-in-one JavaScript web framework for building content-driven websites like blogs or portfolios.
I use Astro to build my personal website. It allows me to convert Markdown into HTML, use templates, and optimize assets. My website is fully static and deployed for free using GitHub Pages. Astro provides an official GitHub Action that makes deployment easy.
Key features
- Well-written and up-to-date documentation
- Fast bug fixes and frequent releases
- Zero JavaScript is sent to the client by default
- Content-first approach:
- Markdown and MDX support
- Frontmatter validation
- Content collections
- Supports multiple rendering strategies:
- SSG (Static Site Generation)
- SSR (Server-Side Rendering)
- Islands architecture for partial hydration
- Supports integrations, allowing the use of any frontend framework
- File-based routing (file names map to page routes)
- Built on top of Vite, which provides hot reloading and fast builds
- Built-in optimization for images and SVGs