Fumadocs is a documentation framework built specifically for Next.js that provides a complete set of tools for creating beautiful, high-performance documentation websites within the Next.js App Router ecosystem. It solves the problem of building documentation sites that need tight integration with Next.js features like server components, middleware, and API routes, providing a documentation-specific layer that works harmoniously with the Next.js architecture rather than fighting against it. Fumadocs supports both static generation and server-side rendering for maximum flexibility.
Fumadocs provides a headless UI library of documentation components including search, navigation, and table of contents, automatic page tree generation from file structure, built-in full-text search with multiple provider options including Algolia and Orama, OpenAPI integration for automatic API documentation, MDX support with custom components, and TypeDoc integration for generating documentation from TypeScript source code. It features a flexible content source API that works with local MDX files, content collections, or remote sources, and a default theme built with Tailwind CSS and Radix UI primitives.
Fumadocs is designed for Next.js developers who want their documentation to be a first-class part of their Next.js application rather than a separate system. It integrates natively with the Next.js App Router, supports Vercel deployment optimizations, and works with Tailwind CSS for styling customization. Fumadocs is particularly well-suited for developer tool companies and SaaS platforms that build their marketing site, documentation, and application in a single Next.js project, eliminating the need for separate documentation infrastructure.