Fumadocs Core

The headless React library for building documentation websites, with source loading, page trees, MDX processing, search, and i18n.

Library
npm
v16.15.15
13,237 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
90 /100 Excellent
Development Activity 100
Maintenance 100
Community 68
Maturity 52
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
87 /100 Excellent
Architecture 90
Code Quality 82
Innovation 88
Learning Curve 80

Fumadocs Core is the headless engine behind Fumadocs, the React.js documentation framework. It provides the framework-agnostic building blocks a docs site needs — a content source loader that turns files into structured page trees, a full remark/rehype MDX plugin suite, multi-provider full-text search, Shiki-powered syntax highlighting, internationalization, and adapters for Next.js, Astro, React Router, TanStack Start, and Waku.

Because it ships as headless logic rather than prebuilt UI, you compose it directly in your own components and routes, giving you complete control over rendering while still getting the hard parts — content resolution, tree building, TOC generation, and search indexing — handled for you.

What You Get

  • A content source loader (loader()) that converts files and virtual sources into a navigable, typed page tree
  • A complete remark/rehype MDX plugin suite for headings, TOC, code blocks, admonitions, package-manager tabs, structure extraction, and more
  • Multi-provider full-text search — FlexSearch, Orama, Algolia, and Mixedbread — with server and client helpers
  • Shiki-based syntax highlighting utilities for server and client rendering
  • Framework adapters for Next.js, Astro, React Router, TanStack Start, and Waku plus i18n middleware and locale negotiation

Common Use Cases

  • Building a custom-designed documentation site where you own all the UI but want content loading and search handled
  • Adding fast, static or hosted full-text search to an existing docs or content site
  • Processing MDX content with a curated set of remark/rehype plugins for headings, code, and callouts
  • Serving localized documentation with locale negotiation and i18n-aware routing

Under The Hood

Architecture

Fumadocs Core is organized as a headless pipeline. The loader() in src/source/loader.ts composes a ContentStorage builder with a page-tree builder (src/source/page-tree/builder.ts), applying a plugin chain (slugs, icons) to resolve file-based or virtual sources into a typed, serializable page tree; storage is abstracted behind a FileSystem layer so content origins are pluggable. MDX handling lives under src/mdx-plugins as discrete remark/rehype transforms, search under src/search splits into server and client halves per provider, and src/framework supplies per-framework adapters (Next, Astro, React Router, TanStack, Waku) over a shared framework abstraction.

Tech Stack

Written in TypeScript and shipped ESM-only, it builds on the unified/remark/rehype ecosystem (remark, remark-gfm, remark-rehype, mdast/hast utilities), Shiki for highlighting, Orama for in-repo search, and github-slugger, tinyglobby, and yaml for content plumbing. React 19, Next 16, and the various search providers (Algolia, Mixedbread, FlexSearch, Orama Cloud) are peer dependencies, keeping the core lean. Builds run through tsdown and tests through Vitest.

Code Quality

The codebase is strongly typed with generics threaded through the loader and storage types, and uses path aliases and clear module boundaries. A Vitest suite (packages/core/test) covers loader, search, MDX plugins, frontmatter, highlight, and negotiation behavior — solid for the critical paths, though modest in count relative to the package’s large public surface.

API Design

The public API is deliberately composable: a single loader() call yields typed page/meta accessors, search and highlight helpers are small focused functions, and framework adapters are exposed as separate subpath exports so consumers import only what they use. The tradeoff for that breadth is a wide surface with many entry points, which raises the initial orientation cost — mitigated by extensive external documentation at fumadocs.dev and a large examples directory.

Used by 28 apps in this directory

Go
59%
Apache 2.0

agent-orchestrator

AI Agents · AI Code Assistants · Developer Tools

12,440

A local desktop workspace that gives every coding task its own agent, Git branch, and worktree, then tracks tasks, pull requests, CI, and reviews for 27 coding agents on one live Kanban board.

View details
86
Repo Health
83
Technical
68
Dependency
Built with
Go 59%
TypeScript 38%
Updated 4 days ago
TypeScript
89%
MIT

Amical

AI Assistants · Note Taking · Voice AI

1,540

Local-first AI dictation that understands your active app — private, offline, and built for speed.

View details
82
Repo Health
82
Technical
68
Dependency
Built with
TypeScript 89%
Updated 1 weeks ago
Java
72%
Other

ByteChef

AI Agents · Automation

1,003

Unified open-source platform for AI agent orchestration and workflow automation with 180+ connectors, MCP support, and durable execution.

View details
85
Repo Health
82
Technical
67
Dependency
Built with
Java 72%
TypeScript 28%
Updated 5 days ago
TypeScript
93%
AGPL 3.0

CourseLit

Blogging · Ecommerce

1,268

Open-source, self-hosted LMS for selling online courses, digital downloads, and building communities on your own branded website.

View details
77
Repo Health
74
Technical
68
Dependency
Built with
TypeScript 93%
Updated 5 days ago
TypeScript
92%
AGPL 3.0

Documenso

Digital Signiture

15,224

Self-hosted, open-source DocuSign alternative with legally binding PDF signatures, multi-party workflows, and a full REST and tRPC API.

View details
93
Repo Health
79
Technical
68
Dependency
Built with
TypeScript 92%
Updated 4 days ago
TypeScript
90%
Other

FastGPT

AI Agents · AI Development

29,758

Build, debug, and deploy knowledge-based AI agents with a visual workflow editor, RAG retrieval, and support for any OpenAI-compatible LLM.

View details
93
Repo Health
84
Technical
66
Dependency
Built with
TypeScript 90%
Updated 4 days ago
Python
82%
Apache 2.0

headroom

AI Development · Developer Tools

73,966

Compress everything your AI agent reads — tool outputs, logs, RAG chunks, and files — before it reaches the LLM, achieving 60–95% fewer tokens with the same answers.

View details
85
Repo Health
86
Technical
69
Dependency
Built with
Python 82%
Rust 12%
Updated 5 days ago
TypeScript
84%
Apache 2.0

ktx

AI Development · Analytics · Data Engineering

1,603

ktx builds a self-improving context layer over your data warehouse so AI agents like Claude Code and Codex query it with approved metric definitions instead of reinventing SQL logic from scratch.

View details
66
Repo Health
85
Technical
72
Dependency
Built with
TypeScript 84%
Updated 3 weeks ago
TypeScript
96%
AGPL 3.0

Libra AI

AI Development · No Code Platforms

1,684

Open-source AI-powered platform that generates and deploys full-stack web applications from natural language prompts, built natively for Cloudflare Workers.

View details
31
Repo Health
71
Technical
68
Dependency
Built with
TypeScript 96%
Updated 1 years ago

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