Starlight

An Astro integration for building beautiful, accessible, high-performance documentation websites with almost no config.

Framework
npm
v0.41.7
9,092stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
90/100Excellent
Development Activity96
Maintenance100
Community72
Maturity52
Momentum40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
88/100Excellent
Architecture88
Code Quality90
Innovation87
Learning Curve85

Starlight is a full-featured documentation-site framework built on top of Astro. Rather than being a general-purpose UI library, it is an Astro integration that takes over the routing, content-collection schema, layout, and navigation for an entire docs site, so teams get a working, accessible, fast documentation site out of the box and only customize what they need. It ships sensible defaults for sidebar navigation, full-text search, internationalization, dark/light theming, and Markdown/MDX/Markdoc content authoring, while remaining fully overridable via component overrides, a plugin system, and custom Astro components dropped into the page.

What You Get

  • A pre-built, accessible documentation layout (header, sidebar, table of contents, pagination, edit-this-page links) with zero custom component code required to start
  • Built-in full-text search powered by Pagefind, generated automatically at build time with no external service to configure
  • First-class internationalization: per-locale content collections, automatic language selector, and RTL support
  • A content-collection frontmatter schema (Zod-based) for docs pages covering titles, descriptions, hero sections, table-of-contents overrides, and custom head tags
  • A component-override system so any built-in UI piece (sidebar, header, TOC, footer) can be swapped for a custom Astro component without forking the framework
  • A plugin API that lets third-party packages inject routes, translations, and Astro integrations into a Starlight site (used by starlight-markdoc, starlight-tailwind, and community plugins)
  • Syntax highlighting and code annotations via Expressive Code, bundled and pre-configured

Common Use Cases

  • Product and API documentation sites for open-source projects or SaaS products
  • Internal engineering knowledge bases and runbooks that need search and versioned navigation
  • Multi-language documentation portals where content is maintained per-locale
  • Migrating an existing docs site off Docusaurus, VitePress, or GitBook onto the Astro ecosystem for better performance

Under The Hood

Architecture — Starlight is registered as a single Astro integration (index.ts) whose astro:config:setup hook does the real work: it runs any configured plugins (utils/plugins.ts) to merge in extra config, translations, and Astro integrations, validates the final config against a Zod schema (utils/user-config.ts), injects its own routes under routes/static and routes/ssr depending on the build output mode, adds rehype/remark markdown plugins for directives and Expressive Code, and registers a Vite plugin (integrations/vite-virtual-modules.ts) that exposes the resolved config to components as a virtual module. Content flows from an Astro content collection (docs), validated through schema.ts, into .astro page components in user-components/ and components/ that render the shared Page.astro shell (header, sidebar, TOC, pagination). Tech Stack — Written almost entirely in TypeScript and .astro files, it depends on astro (^7.0.2) and @astrojs/markdown-remark as peers, and pulls in @astrojs/mdx, @astrojs/sitemap, astro-expressive-code for syntax highlighting, pagefind/@pagefind/default-ui for search, i18next for translation lookup, and the unified/remark/rehype ecosystem for markdown/HTML transforms; the monorepo is managed with pnpm workspaces and Changesets, with sibling packages for Markdoc, Tailwind, and DocSearch integrations. Code Quality — The packages/starlight/__tests__ and __e2e__ directories contain over 100 test fixture projects covering i18n edge cases, sidebar generation, plugin behavior, and build-format variations, run via Vitest and Playwright; the codebase uses strict TypeScript throughout, Zod schemas for all user-facing config surfaces (giving friendly runtime validation errors via utils/error-map.ts), and consistent naming between the public API (schema.ts, props.ts, types.ts) and internal implementation. API Design — Getting started requires adding one integration call with a title and social/sidebar config to astro.config.mjs; the public export map (./components, ./schema, ./loaders, ./props) is deliberately narrow and documented, and component overrides use a single components config key rather than requiring users to eject the whole layout, keeping the common path low-boilerplate while still exposing deep customization for advanced users.

Used by 11 apps in this directory

TypeScript
91%
MIT

bunqueue

Developer Tools · Devops

535

High-performance job queue for Bun — SQLite persistence, cron scheduling, DLQ, S3 backups, and a native MCP server, all without Redis.

View details
74
Repo Health
83
Technical
76
Dependency
Built with
TypeScript91%
Updated 2 weeks ago
C
89%
MIT

codegraph

Developer Tools · AI Code Assistants

67,011

A pre-indexed code knowledge graph that cuts AI tool calls by 58% and token costs by 16% — auto-syncing, 100% local, works with Claude Code, Cursor, Codex, and more.

View details
81
Repo Health
85
Technical
73
Dependency
Built with
C89%
Updated 1 weeks ago
Rust
91%
Apache 2.0

herdr

AI Agents · Developer Tools

30,468

A terminal-native agent multiplexer that runs Claude, Codex, Gemini, and other coding agents side by side in real, persistent panes you can detach from and reattach to from anywhere.

View details
83
Repo Health
84
Technical
76
Dependency
Built with
Rust91%
Updated today
TypeScript
97%
MIT

likec4

Developer Tools · Devops

5,448

Define your software architecture as code and get always up-to-date, interactive C4 diagrams generated automatically from a DSL.

View details
88
Repo Health
83
Technical
80
Dependency
Built with
TypeScript97%
Updated today
Python
33%
Apache 2.0

magika

Developer Tools · Security

17,958

AI-powered file type detection that identifies 200+ content types with ~99% accuracy in milliseconds using a compact deep learning model.

View details
75
Repo Health
85
Technical
77
Dependency
Built with
Python33%
Rust26%
TypeScript18%
Updated today
TypeScript
76%
MIT

OpenCode

AI Code Assistants

198,979

A fully open-source AI coding agent built for the terminal, with a TUI, desktop app, web client, plugin system, and SDK — one of the most-starred AI coding agents on GitHub.

View details
89
Repo Health
76
Technical
68
Dependency
Built with
TypeScript76%
MDX21%
Updated today
Vue
41%
AGPL 3.0

Operational

Analytics · Automation · Monitoring

476

Open-source event tracker with real-time push notifications and action buttons for tech founders.

View details
57
Repo Health
68
Technical
72
Dependency
Built with
Vue41%
JavaScript38%
MDX13%
Updated 3 weeks ago
TypeScript
94%
AGPL 3.0

Papra

Bookmarks Archiving

5,216

Self-hosted document archiving with email ingestion, OCR full-text search, and pluggable storage — store once, find anything.

View details
84
Repo Health
82
Technical
72
Dependency
Built with
TypeScript94%
Updated 2 days ago
Rust
77%
Apache 2.0

SlateDB

Databases · Developer Tools

3,317

Embedded KV store built on object storage with zero replication cost

View details
88
Repo Health
73
Technical
77
Dependency
Built with
Rust77%
Updated today

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search