Introduction to Astro
Astro is the all-in-one web framework designed for speed. Pull your content from anywhere and deploy everywhere, all powered by your favorite UI components and libraries.Quick start
Get up and running with Astro in minutes
Core concepts
Learn the fundamental concepts behind Astro
Integrations
Extend Astro with React, Vue, Tailwind, and more
API reference
Explore the complete Astro API documentation
What is Astro?
Astro is a website build tool for the modern web that combines powerful developer experience with lightweight output. Unlike traditional frameworks that ship all your JavaScript to the browser, Astro takes a different approach:Zero JavaScript by default
Zero JavaScript by default
Astro renders your entire site to static HTML during the build process. This means zero JavaScript is sent to the browser by default, resulting in faster page loads and better performance.
UI-agnostic architecture
UI-agnostic architecture
Bring your own UI framework. Astro supports React, Preact, Svelte, Vue, Solid, Lit, Alpine, and more. You can even mix multiple frameworks in the same project.
Islands architecture
Islands architecture
Need interactivity? Astro’s Islands architecture allows you to selectively hydrate only the interactive components on your page, keeping the rest static HTML.
Content-focused
Content-focused
Astro is designed for content-rich websites like blogs, marketing sites, documentation, portfolios, and e-commerce sites. Built-in features like Content Collections make managing content a breeze.
Key features
Astro comes packed with features that help you build faster websites with less effort:Component islands
Astro pioneered the Islands architecture pattern. Instead of shipping your entire application as JavaScript, Astro renders your site to static HTML and only hydrates the interactive components you specify.UI framework agnostic
Use your favorite UI framework or mix and match multiple frameworks in the same project:Content collections
Manage your content with type-safe collections. Perfect for blogs, documentation, and product catalogs:Server-first API design
Astro moves expensive rendering work off your visitors’ devices by rendering on the server. This results in faster initial page loads and better SEO:Built-in optimizations
Astro automatically optimizes your site:- Image optimization: Automatic image optimization and lazy loading with the
<Image>component - Code splitting: Automatic code splitting for optimal bundle sizes
- CSS scoping: Scoped CSS by default, no CSS-in-JS required
- Asset bundling: Intelligent asset bundling powered by Vite
Flexible deployment
Deploy anywhere:Static (SSG)
Build to static HTML and deploy to any static host
Server (SSR)
Render on-demand with server-side rendering
Hybrid
Mix static and server-rendered pages in one project
How Astro works
At its core, Astro is a static site generator with optional dynamic capabilities:Build process
Astro renders everything to static HTML at build time, extracting and optimizing CSS and JavaScript
Selective hydration
Interactive components are hydrated in the browser only when needed, using client directives like
client:load or client:visibleWhen to use Astro
Astro excels at building content-focused websites:Marketing sites and landing pages
Blogs and documentation sites
Portfolios and showcase sites
E-commerce storefronts
Multi-page applications (MPAs)
Next steps
Ready to start building with Astro?Installation
Install Astro and set up your development environment
Quick start tutorial
Build your first Astro project in minutes