# Astro

Web framework combining prerendered content, component islands and optional server rendering\.

ID: Q767 · Revision: 815

Type: software · License: MIT[^astro-license] · Status: active

Website: https://astro.build/



Astro is an open\-source web framework for content\-oriented websites\. It renders pages as HTML by default and can add interactive components or server\-rendered routes where needed\. Its islands architecture separates those interactive parts from the surrounding page, allowing a site to combine mostly static content with selected JavaScript\-driven interfaces\.[^astro-islands][^astro-render]

## Components and content

UI components normally render without a client\-side runtime unless the developer marks them for hydration\. Client directives control when interactive code loads, such as when a component becomes visible\. Supported UI integrations include React, Vue and Svelte; using one does not require turning the entire site into a single client\-rendered application\.[^astro-islands]

Content collections organize and validate structured material from local files or other sources\. Build\-time collections and live collections use different APIs\. Live collections require an adapter for on\-demand rendering and a custom or third\-party live loader; the documentation does not provide built\-in live loaders that automatically connect every CMS or database\.[^astro-content]

## Static and server deployment

A static build can prerender routes, while selected routes can opt into request\-time rendering\. A server adapter targets the chosen runtime, with official options including Node\.js, Cloudflare, Netlify and Vercel\. A project using live routes therefore needs more than a host that only serves static files, even if most pages are prerendered\.[^astro-render]

Astro is MIT\-licensed\. The license applies to the framework rather than bundling hosting, a CMS subscription or rights in third\-party content\. Preserving the project source, dependencies and content source remains distinct from retaining the generated deployment; the latter may not contain the source data and components needed to rebuild the site\.[^astro-license][^astro-content][^astro-render]

## Substitution scope

Astro can substitute for [Hugo](/hugo) for a content website whose team wants component integrations and optional request\-time behavior\. The shared task is building and publishing content pages, not running Hugo templates unchanged\. Hugo shortcodes and metadata need mapping to Astro components and collections, and a decision to add dynamic routes also changes the hosting requirements\.[^astro-content][^astro-render][^hugo-home][^hugo-shortcodes]

## Capabilities and substitutions

### Selective interactivity — supported

Client directives hydrate selected UI components while other content stays rendered HTML\.[^astro-islands]

Use case: Content websites with interactive sections · Platforms: Web, Local or hosted build environment · Region: Hosting and external\-service availability apply

### Live content — limited

Requires on\-demand adapter and a custom or third\-party loader; differs from build\-time collection APIs\.[^astro-render][^astro-content]

Use case: Frequently updated CMS or database content · Platforms: Web, Local or hosted build environment · Region: Hosting and external\-service availability apply

### [Substitute for Hugo](/hugo) — limited

Can replace static generation while adding component\-based features; templates and content conventions need conversion\.[^astro-islands][^astro-render][^hugo-home][^hugo-shortcodes]

Use case: Content websites with optional interactive or dynamic sections · Platforms: Web, Local or hosted build environment · Region: Hosting and external\-service availability apply

## References

[^astro-license]: [withastro/astro license](<https://github.com/withastro/astro/blob/main/LICENSE>) — Repository license text (vendor; retrieved 2026-10-07T00:24:44Z)

[^astro-islands]: [Astro islands architecture](<https://docs.astro.build/en/concepts/islands/>) — Client directives, selective hydration and server islands (vendor; retrieved 2026-10-07T00:25:08Z)

[^astro-render]: [Astro on\-demand rendering](<https://docs.astro.build/en/guides/on-demand-rendering/>) — Static defaults and runtime\-specific adapters (vendor; retrieved 2026-10-07T00:25:08Z)

[^astro-content]: [Astro content collections](<https://docs.astro.build/en/guides/content-collections/>) — Build\-time and live APIs; adapters and absence of built\-in live loaders (vendor; retrieved 2026-10-07T00:24:20Z)

[^hugo-home]: [Hugo introduction](<https://gohugo.io/about/introduction/>) — Static generation, development server, modules and deployment (vendor; retrieved 2026-10-07T00:24:20Z)

[^hugo-shortcodes]: [Hugo shortcodes](<https://gohugo.io/content-management/shortcodes/>) — Template\-backed content constructs (vendor; retrieved 2026-10-07T00:25:08Z)

Source revision: https://substitutefor.net/entities/Q767?revision=815
