Fumadocs is a React documentation framework for building docs sites on Next.js, Astro, and Vite-based routers. It splits UI, core search and navigation, and MDX content into composable layers.
Overview
Fumadocs helps developers publish documentation sites using familiar Markdown and MDX. Official support covers Next.js, Astro with React, and Vite setups such as TanStack Start, Waku, and React Router. Packages are ESM only.
The project is organized as separate layers: Fumadocs UI supplies layouts and components, Fumadocs Core handles search, page tree, table of contents, and internationalization, and Fumadocs MDX is where pages come from. Optional CLI features add search, OpenAPI pages, AI chat, llms.txt export, localized routes, and Open Graph images.
Layouts include docs, notebook, home, and multiple theme styles. Content can come from local Markdown, Content Collections, Notion, Sanity, Obsidian, and other sources listed on the site. Integrations cover OpenAPI, GraphQL, AsyncAPI, Twoslash, and more.
Developers can scaffold with package managers or customize by installing UI as code through the Fumadocs CLI. The stack is meant to work with any React framework, CMS, or content source the team already uses.
Key features
- Layered UI, core, and MDX packages
- Multiple docs layout themes
- Built-in or pluggable search
- OpenAPI and API playground pages
- llms.txt and AI-oriented exports
- Internationalized routes and UI
- CLI to add and own UI code
- TypeScript-oriented page APIs
Use cases
- Product and library documentation sites
- API reference from OpenAPI specs
- Multi-locale developer portals
- MDX docs on Next.js or Astro
- AI-readable doc exports