talira

Fumadocs

The React.js docs framework

open sourceMITself-hostablefree

Fumadocs is an open source framework for building documentation websites inside React frameworks: Next.js, React Router, TanStack Start, Waku and Astro (with React). It's built in layers (a headless core with search, the page tree and i18n; content sources such as Fumadocs MDX, Notion, Sanity and Obsidian; and Fumadocs UI, a themeable set of docs layouts and components) so a docs site can live in the same app as a product's own pages. It generates API reference pages with a playground from OpenAPI, GraphQL and AsyncAPI schemas, type tables from TypeScript, and serves docs to AI agents as Markdown, llms.txt and MCP tools. It's MIT-licensed, made by Fuma Nama, and used by projects such as shadcn/ui, Better Auth, Zod and Prisma.

Ways to install

Problems it solves

  • add a docs section to my existing Next.js app without running a separate docs site
  • build documentation for my open source library with a nice default look that I can still fully customise
  • generate interactive API reference pages from our OpenAPI spec inside our own docs
  • render TypeScript types as a props table automatically so the docs never drift from the code
  • a Docusaurus alternative that uses the Next.js App Router and React Server Components
  • write docs in MDX with my own React components and live component previews
  • fast built-in search for my docs without paying for Algolia
  • serve my documentation as Markdown and llms.txt so AI coding agents can read it
  • let AI assistants search and read our docs through an MCP server
  • translate my documentation site into several languages with i18n routing
  • pull docs content from Notion or an Obsidian vault into a docs website
  • a docs framework for an Astro or TanStack Start site, not only Next.js
  • document a GraphQL or AsyncAPI schema alongside the rest of our developer docs
  • copy the docs layout components into my codebase so I own and can edit them
  • generate Open Graph images for every documentation page automatically

View all 19 problems

Features

  • works with Next.js, React Router, TanStack Start, Waku and Astro (with React)
  • Fumadocs Core: headless page tree, search, breadcrumbs, table of contents and i18n
  • Fumadocs UI: docs layouts (Docs, Notebook, Flux, Glass, Spacious, Home) and themes styled with CSS variables
  • Fumadocs MDX content source, plus Notion, Sanity, Obsidian, Content Collections and others
  • OpenAPI pages with an API playground; GraphQL and AsyncAPI pages
  • auto type tables generated from TypeScript
  • Twoslash code blocks with type information
  • built-in search (Orama), and Algolia, Meilisearch, Typesense, Trieve, Mixedbread and Orama Cloud integrations
  • docs served as Markdown, llms.txt and llms-full.txt for AI agents
  • MCP tools (fumadocs-core/mcp) that let agents search and read your docs
View 5 more
  • Ask AI chat integration
  • Open Graph image generation
  • static export
  • CLI (@fumadocs/cli) that copies layouts and components into your codebase; create-fumadocs-app scaffolder
  • component previews (Story)

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what Fumadocs does.

  1. Mintlify The documentation platform for agents
  2. GitBook GitBook keeps docs accurate, for both people and AI
  3. Docusaurus Easy to maintain open source documentation websites.
  4. ReadMe Build docs that developers love and AI can actually read
  5. Starlight Build beautiful, accessible, high-performance documentation websites with Astro
  6. VitePress Vite & Vue powered static site generator

Compare Fumadocs with the top 3