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.[2][3]
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.[2]
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.[4]
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.[3]
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.[1][3][4]
Substitution scope
Astro can substitute for 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.[3][4][5][6]
Capabilities & limitations
Selective interactivity
supported
Client directives hydrate selected UI components while other content stays rendered HTML.[2]
Content websites with interactive sections · Web, Local or hosted build environment · Hosting and external-service availability apply