astro

Featured

Use when building a content-driven or marketing site with Astro 6: static-first pages, islands and partial hydration, content collections, server islands, per-route on-demand rendering, deploy adapters, and Astro 5→6 migration. NOT app-router React with server actions and heavy client interactivity (that is `nextjs`).

Web & Frontend 116 stars 9 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
69
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Astro 6 — static-first sites, islands, content collections ## The prime directive **Ship zero client JavaScript by default. Hydrate the smallest possible surface, as late as you can get away with.** An `.astro` component renders to HTML at build time and ships *no* runtime; every island is a bundle the visitor downloads, parses, and executes. Content and marketing sites win on TTFB/LCP and Lighthouse, not on React-everywhere. If you find yourself adding `client:load` to make a page "work," stop — the page already works; you are adding interactivity, and interactivity is the expensive exception, not the default. ## First: detect the project version Astro 6.0 is stable ([released 2026-03-10](https://astro.build/blog/astro-6/)); the Astro 5 line is still production-ready. Do not mix advice across majors — read `package.json` → the `astro` version before advising. What v6 changes, per the [upgrade-to-v6 guide](https://docs.astro.build/en/guides/upgrade-to/v6/): - **Node `22.12.0` or higher is required** (18 and 20 are dropped) — check the actual runtime. - Content config lives at `src/content.config.ts`. The legacy `src/content/config.ts` path is **removed**, not merely discouraged, and the old auto-detection (`legacy.collections`) is gone. The `legacy.collectionsBackwardsCompat` escape hatch is a migration crutch, not a supported layout. - **Vite 7** and **Zod 4** for content schemas — `z` is imported from `astro/zod`, **not** `astro:content` (see Content collection...

Details

Author
ericrisco
Repository
ericrisco/rsc-harness
Created
3 months ago
Last Updated
2 days ago
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category