Logo
  • Home
  • Soul Journal
  • Pricing
LoginSign Up
Getting Started with Fumadocs
2025/03/28

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-app
pnpm create fumadocs-app
yarn create fumadocs-app
bun create fumadocs-app

The 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.

content/docs/index.mdx
---
title: Hello World
---

## Yo what's up

Run the development server, then open http://localhost:3000/docs.

npm run dev

Explore 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.
RouteDescription
app/(home)The route group for your landing page and other pages.
app/docsThe documentation layout and pages.
app/api/search/route.tsThe 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!

Configure Static Export

Learn how to enable static export on your docs

Customise Search

Learn how to customise document search

Theming

Add themes to Fumadocs UI

Components

See all available components to enhance your docs

All Posts

Author

avatar for MkSaaS
MkSaaS

Categories

  • Company
  • News
Meet FumadocsA Few Terms FirstCreate a Project AutomaticallyFirst PageExplore the Generated ProjectWriting DocsContent SourcesCustomize the UIFAQLearn More

More Posts

Orelune Tarot Series: The Hanged Man - Pause, Perspective & Conscious Surrender
Tarot Explained

Orelune Tarot Series: The Hanged Man - Pause, Perspective & Conscious Surrender

Discover The Hanged Man tarot card on Orelune, including surrender, perspective, love, career, money, symbolism, yes/no guidance, and practical reading support.

avatar for Orelune
Orelune
2026/03/27
Orelune Tarot Series: The World - Completion, Harmony & Lasting Fulfillment
Tarot Explained

Orelune Tarot Series: The World - Completion, Harmony & Lasting Fulfillment

Explore The World tarot card meaning on Orelune, including completion, achievement, love, career, symbolism, and yes or no tarot guidance.

avatar for Orelune
Orelune
2026/04/01
Theming Fumadocs UI
NewsProduct

Theming Fumadocs UI

Configure themes, colors, dark mode, and layout styling in Fumadocs UI.

avatar for Mkdirs
Mkdirs
2025/01/15

Newsletter

Join the community

Subscribe to our newsletter for the latest news and updates

LogoOrelune

Validate demand with real Reddit complaints, product pain points, and opportunity signals.

Product

  • Features
  • Pricing
  • FAQ

Resources

  • Blog
  • Documentation
  • Changelog
  • Roadmap

Company

  • About
  • Contact
  • Waitlist
© 2026 Orelune All Rights Reserved.support@orelune.co
PricingTerms of ServicePrivacy Policy