Build beautiful, accessible, high-performance documentation websites with Astro
open sourceMITself-hostablefree
Starlight is a documentation site framework from the Astro project, built as an Astro integration: you write pages as Markdown, MDX or Markdoc files in src/content/docs/, and it builds a static docs site with sidebar navigation, full-text search (Pagefind by default, or Algolia DocSearch through the official plugin), internationalisation, SEO tags, code highlighting and dark mode. Frontmatter is validated and typed, and built-in components (cards, tabs, steps, asides, file trees, badges) can sit beside your own React, Vue, Svelte or Solid components. Plugins can change its configuration, UI and behaviour, and a community catalogue of plugins and themes adds things like llms.txt files, link checking and page actions. It's free and MIT-licensed; the team behind Astro joined Cloudflare in January 2026 and Astro stays open source.
Problems it solves
- set up a fast documentation website from a folder of Markdown files
- our docs site needs built-in search without paying for a hosted search service
- publish product docs in several languages with a language switcher and translated UI
- a static docs site generator that lets me drop React or Vue components into pages
- docs pages keep breaking because nobody validates the frontmatter fields
- move our developer docs off a paid hosted docs platform to something we build and deploy ourselves
- add tabs, step lists, callouts and file trees to technical docs without writing custom CSS
- a documentation theme with dark mode, good typography and accessible navigation out of the box
- extend our docs site with plugins for llms.txt, link checking and image zoom
- build the docs site as static HTML so it can be hosted on any CDN
- write documentation in MDX with code samples that are highlighted nicely
- keep the sidebar of a large docs site organised by folders automatically
Features
- pages from Markdown, MDX and Markdoc files with validated, typed frontmatter
- site navigation and an autogenerated or configured sidebar
- full-text site search with Pagefind by default; Algolia DocSearch through the official plugin
- internationalisation with translated UI and a language picker
- SEO metadata, easy-to-read typography, code highlighting and dark mode
- built-in components: cards, link cards, card grids, asides, badges, code, file tree, icons, link buttons, steps and tabs
- UI components from React, Vue, Svelte, Solid and other frameworks through Astro
- plugin API that can change Starlight's configuration, UI and behaviour
- community plugins and themes
- works with Astro integrations and libraries
Capabilities
| Takes plugins | plan not known |
|---|
Alternatives
The same job
These do what Starlight does.