Getting Started with Astro cover image

Getting Started with Astro


Astro is a modern web framework designed for building fast, content-focused websites. Unlike traditional JavaScript frameworks, Astro ships zero JavaScript to the client by default, resulting in incredibly fast page loads.

Why Choose Astro?

There are several compelling reasons to consider Astro for your next project. Performance is at the core of Astro’s design philosophy. By default, Astro renders everything to static HTML and only hydrates interactive components when necessary.

The framework also offers excellent developer experience with support for multiple UI libraries. You can use React, Vue, Svelte, or even plain HTML templates — all within the same project.

Setting Up Your First Project

Getting started is straightforward. You’ll need Node.js installed on your machine, and from there you can scaffold a new project in just a few commands. The Astro CLI provides several starter templates to choose from, including blog templates, portfolio layouts, and documentation sites.

Key Concepts

Astro introduces a few unique concepts that set it apart. The .astro file format combines familiar HTML syntax with a powerful frontmatter script section. Components are rendered at build time by default, which means your visitors get pure HTML without any JavaScript overhead.

Islands architecture is another standout feature. Interactive components are isolated into “islands” that hydrate independently, so a heavy interactive widget won’t block the rest of your page from loading instantly.

Next Steps

Once you have your project running locally, explore the content collections API for managing blog posts, the built-in image optimization, and the growing ecosystem of integrations available through the Astro registry.