Esta página se muestra en inglés. Una traducción al español está en curso.
ConfigsJul 19, 2026·2 min de lectura

Fumadocs — Beautiful & Flexible React Documentation Framework

A powerful Next.js-based documentation framework with full-text search, MDX support, and beautiful theming for building product docs.

Listo para agents

Instalación lista para agent

Este activo puede instalarse después de elegir el runtime, revisar el plan y ejecutar el comando correspondiente.

Native · 98/100Política: permitir
Superficie agent
Cualquier agent MCP/CLI
Tipo
Skill
Instalación
Single
Confianza
Confianza: Established
Entrada
Fumadocs
Comando de instalación directa
npx -y tokrepo@latest install e522a66f-836e-11f1-9bc6-00163e2b0d79 --target codex

Ejecutar después de confirmar el plan con dry-run.

Introduction

Fumadocs is a documentation framework built on Next.js that provides structured content management, built-in search, and beautiful default styling. It supports MDX content with automatic table of contents generation and API reference pages.

What Fumadocs Does

  • Generates fast static documentation sites using Next.js App Router
  • Provides built-in full-text search without external services
  • Supports MDX with custom components, code highlighting, and math rendering
  • Auto-generates sidebar navigation from file structure
  • Offers OpenAPI integration for automatic API reference documentation

Architecture Overview

Fumadocs uses a source-adapter pattern where content can come from local MDX files, Content Collections, or custom sources. The framework processes content at build time, generates search indexes, and outputs optimized static pages via Next.js. Theming is handled through Tailwind CSS with configurable design tokens.

Setup & Configuration

  • Initialize with create-fumadocs-app or add to existing Next.js project
  • Configure content sources in source.config.ts
  • Customize theme via fumadocs-ui layout components
  • Enable search by choosing built-in or Algolia integration
  • Add OpenAPI spec files for automatic API docs generation

Key Features

  • Internationalization support with per-locale content directories
  • TypeScript-first configuration with full type safety
  • Multiple content source adapters including Content Collections
  • Code blocks with line highlighting, titles, and copy buttons
  • Versioned documentation with branch-based content switching

Comparison with Similar Tools

  • Docusaurus — React-based but uses its own router; Fumadocs leverages Next.js App Router natively
  • Nextra — also Next.js-based but simpler; Fumadocs offers more structured content management
  • VitePress — Vue-focused with faster builds; Fumadocs targets the React/Next.js ecosystem
  • Mintlify — managed hosting with similar aesthetics; Fumadocs is fully self-hosted and open source
  • Starlight — Astro-based; Fumadocs stays within the React ecosystem

FAQ

Q: Can I use Fumadocs with an existing Next.js app? A: Yes. Fumadocs integrates as a package into any Next.js 14+ project using the App Router.

Q: Does Fumadocs support server-side rendering? A: It supports both static generation and server rendering, defaulting to static for documentation pages.

Q: How does built-in search work? A: Fumadocs indexes content at build time and provides a client-side search UI powered by flexsearch, requiring no external services.

Q: Is there a way to generate docs from code comments? A: Fumadocs integrates with TypeDoc and OpenAPI specs for automatic reference generation.

Sources

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados