{"schemaVersion":"1.0","record":{"label":"Astro","description":"Web framework combining prerendered content, component islands and optional server rendering.","aliases":[],"kind":"software","website":"https://astro.build/","overview":"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.","license":"MIT","lifecycle":"active","example":false,"features":[{"name":"Selective interactivity","status":"supported","detail":"Client directives hydrate selected UI components while other content stays rendered HTML.","useCase":"Content websites with interactive sections","platforms":["Web","Local or hosted build environment"],"region":"Hosting and external-service availability apply","evidence":[{"url":"https://docs.astro.build/en/concepts/islands/","locator":"Client directives, selective hydration and server islands","retrievedAt":"2026-10-07T00:25:08Z","kind":"vendor"}]},{"name":"Live content","status":"limited","detail":"Requires on-demand adapter and a custom or third-party loader; differs from build-time collection APIs.","useCase":"Frequently updated CMS or database content","platforms":["Web","Local or hosted build environment"],"region":"Hosting and external-service availability apply","evidence":[{"url":"https://docs.astro.build/en/guides/content-collections/","locator":"Build-time and live APIs; adapters and absence of built-in live loaders","retrievedAt":"2026-10-07T00:24:20Z","kind":"vendor"},{"url":"https://docs.astro.build/en/guides/on-demand-rendering/","locator":"Static defaults and runtime-specific adapters","retrievedAt":"2026-10-07T00:25:08Z","kind":"vendor"}]}],"alternatives":[],"slug":"astro","draftAlternatives":[{"targetSlug":"hugo","status":"limited","detail":"Can replace static generation while adding component-based features; templates and content conventions need conversion.","useCase":"Content websites with optional interactive or dynamic sections","platforms":["Web","Local or hosted build environment"],"region":"Hosting and external-service availability apply","evidence":[{"url":"https://docs.astro.build/en/concepts/islands/","locator":"Client directives, selective hydration and server islands","retrievedAt":"2026-10-07T00:25:08Z","kind":"vendor"},{"url":"https://docs.astro.build/en/guides/on-demand-rendering/","locator":"Static defaults and runtime-specific adapters","retrievedAt":"2026-10-07T00:25:08Z","kind":"vendor"},{"url":"https://gohugo.io/about/introduction/","locator":"Static generation, development server, modules and deployment","retrievedAt":"2026-10-07T00:24:20Z","kind":"vendor"},{"url":"https://gohugo.io/content-management/shortcodes/","locator":"Template-backed content constructs","retrievedAt":"2026-10-07T00:25:08Z","kind":"vendor"}]}],"evidence":[{"url":"https://docs.astro.build/en/concepts/islands/","locator":"Client directives, selective hydration and server islands","retrievedAt":"2026-10-07T00:25:08Z","kind":"vendor"},{"url":"https://docs.astro.build/en/guides/on-demand-rendering/","locator":"Static defaults and runtime-specific adapters","retrievedAt":"2026-10-07T00:25:08Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://github.com/withastro/astro/blob/main/LICENSE","locator":"Repository license text","retrievedAt":"2026-10-07T00:24:44Z","id":"astro-license","title":"withastro/astro license","kind":"vendor"},{"url":"https://docs.astro.build/en/concepts/islands/","locator":"Client directives, selective hydration and server islands","retrievedAt":"2026-10-07T00:25:08Z","id":"astro-islands","title":"Astro islands architecture","kind":"vendor"},{"url":"https://docs.astro.build/en/guides/on-demand-rendering/","locator":"Static defaults and runtime-specific adapters","retrievedAt":"2026-10-07T00:25:08Z","id":"astro-render","title":"Astro on-demand rendering","kind":"vendor"},{"url":"https://docs.astro.build/en/guides/content-collections/","locator":"Build-time and live APIs; adapters and absence of built-in live loaders","retrievedAt":"2026-10-07T00:24:20Z","id":"astro-content","title":"Astro content collections","kind":"vendor"},{"url":"https://gohugo.io/about/introduction/","locator":"Static generation, development server, modules and deployment","retrievedAt":"2026-10-07T00:24:20Z","id":"hugo-home","title":"Hugo introduction","kind":"vendor"},{"url":"https://gohugo.io/content-management/shortcodes/","locator":"Template-backed content constructs","retrievedAt":"2026-10-07T00:25:08Z","id":"hugo-shortcodes","title":"Hugo shortcodes","kind":"vendor"}],"overviewCitations":["astro-islands","astro-render"],"licenseCitations":["astro-license"],"sections":[{"id":"components","heading":"Components and content","paragraphs":[{"id":"islands","content":[{"text":"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."}],"citations":["astro-islands"]},{"id":"collections","content":[{"text":"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."}],"citations":["astro-content"]}]},{"id":"deployment","heading":"Static and server deployment","paragraphs":[{"id":"runtime","content":[{"text":"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."}],"citations":["astro-render"]},{"id":"ownership","content":[{"text":"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."}],"citations":["astro-license","astro-content","astro-render"]}]},{"id":"substitution","heading":"Substitution scope","paragraphs":[{"id":"fit","content":[{"text":"Astro can substitute for "},{"text":"Hugo","targetSlug":"hugo"},{"text":" 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."}],"citations":["astro-content","astro-render","hugo-home","hugo-shortcodes"]}]}]},"id":"Q767","revision":815,"updatedAt":"2026-10-13T10:36:55Z","sourceUrl":"https://substitutefor.net/entities/Q767?revision=815"}}