Getting Started with Astro

A comprehensive guide to building fast, content-focused websites with Astro - the all-in-one web framework.

SS

Simranjit Singh

Getting Started with Astro

Astro is a modern web framework designed for building fast, content-focused websites. In this post, I’ll walk you through why I chose Astro for my personal site and how you can get started too.

Why Astro?

Zero JavaScript by Default

Astro ships zero JavaScript to the browser by default. This means your pages load incredibly fast because they’re just HTML and CSS.

Content-First

Astro is purpose-built for content-rich websites like blogs, portfolios, and documentation sites. It has first-class support for Markdown and MDX.

Bring Your Own Framework

You can use components from React, Vue, Svelte, or any other framework you prefer. Astro lets you mix and match.

Getting Started

# Create a new Astro project
npm create astro@latest

# Navigate to your project
cd my-astro-project

# Start the development server
npm run dev

Project Structure

A typical Astro project looks like this:

/
├── public/
├── src/
│   ├── components/
│   ├── content/
│   ├── layouts/
│   └── pages/
├── astro.config.mjs
└── package.json

Conclusion

Astro is a fantastic choice for personal websites and blogs. Its focus on performance and developer experience makes it a joy to work with.

Stay tuned for more Astro tips and tricks!