
Getting Started with Fumadocs
Learn the main pieces of Fumadocs and launch your first docs site quickly.
Meet Fumadocs
Fumadocs (Foo-ma docs) is a documentation framework built on top of Next.js. Its goal is to stay fast, flexible, and easy to compose into the Next.js App Router.
The project is made up of several parts:
Fumadocs Core
Handles most of the logic, including document search, content source adapters, and Markdown extensions.
Fumadocs UI
The default theme of Fumadocs offers a beautiful look for documentation sites and interactive components.
Content Source
The source of your content, can be a CMS or local data layers like Content Collections and Fumadocs MDX, the official content source.
Fumadocs CLI
A command line tool to install UI components and automate things, useful for customizing layouts.
Want to learn more?
Read our in-depth What is Fumadocs introduction.
A Few Terms First
Markdown/MDX: Markdown is a markup language for writing formatted text. Fumadocs supports both Markdown and MDX (a superset of Markdown) out of the box.
It also helps to know the basics of Next.js App Router if you want to customize the setup later.
Create a Project Automatically
You need Node.js 18 or newer. Be aware that Node.js 23.1 may cause issues when building Next.js for production.
npm create fumadocs-apppnpm create fumadocs-appyarn create fumadocs-appbun create fumadocs-appThe generator asks which framework and content source you want, then scaffolds a new Fumadocs app for you.
From Existing Codebase?
You can follow the Manual Installation guide to get started.
First Page
After setup, create your first MDX file in the docs directory.
---
title: Hello World
---
## Yo what's upRun the development server, then open http://localhost:3000/docs.
npm run devExplore the Generated Project
A new project usually includes:
lib/source.ts: The content source adapter.loader()gives you an interface for reading content and assigning URLs to pages.app/layout.config.tsx: Shared layout options. It is optional, but recommended to keep.
| Route | Description |
|---|---|
app/(home) | The route group for your landing page and other pages. |
app/docs | The documentation layout and pages. |
app/api/search/route.ts | The Route Handler for search. |
Writing Docs
When you start authoring content, these pages are especially useful:
Markdown
Fumadocs has some additional features for authoring content too.
Navigation
Learn how to customise navigation links/sidebar items.
Content Sources
The content source is responsible for your document pipeline, including compiling Markdown and validating frontmatter.
Read the Introduction to learn how it handles your content.
A source.config.ts config file has been included, you can customise different options like frontmatter schema.
Fumadocs is not Markdown-exclusive. For other sources like Sanity, you can build a custom content source.
Customize the UI
See Customisation Guide.
FAQ
Below are a few common questions people run into when starting out.
Learn More
If you are new here, questions are always welcome.
If you find anything confusing, please give your feedback on Github Discussion!
More Posts

Orelune Tarot Series: The Magician - Manifestation, Skill & Focused Action
Discover The Magician tarot card meaning on Orelune, including manifestation, love, career, symbolism, and yes or no insight for practical readings.


Orelune Tarot Series: Temperance - Harmony, Moderation & Healing Balance
Discover the Temperance tarot card on Orelune, including balance, harmony, love, career, money, symbolism, yes/no guidance, and practical reading insight.


Orelune Tarot Series: Strength - Courage, Calm Power & Self-Mastery
Explore the Strength tarot card on Orelune, including courage, inner power, love, career, money, symbolism, yes/no guidance, and practical reading meaning.

Newsletter
Join the community
Subscribe to our newsletter for the latest news and updates