Introduction

This section provides an overview of DocuBook.

Why DocuBook Exists

For years, I worked on documentation projects where the biggest effort was not writing content, but getting the theme and styling right. Most of the time was eaten by configuring CMS plugins and tweaking layouts instead of focusing on the actual documentation.

That frustration inspired me to build a docs framework from the ground up in the React ecosystemβ€”one that keeps the writing experience front and center. DocuBook is designed to let you focus on content while giving you a flexible, developer-friendly foundation that’s also open source.

Open Source Philosophy

DocuBook is proudly open-source! πŸŽ‰ We believe in creating an accessible, collaborative platform that thrives on community contributions.

Project Overview

DocuBook is a complete docs ecosystem for modern React projects.

  • MDX-based documentation with reusable components
  • Clean, customizable UI built on modern React tooling
  • SEO-ready pages and static generation support
  • Prebuilt navigation tree via CLI
  • Multi-template support for different deployment targets

Technology & Libraries

Core stack:

  • @docubook/core - MDX compile pipeline and markdown utilities
  • @doubook/mdx-content - Portable MDX components and framework adapters for DocuBook
  • @docubook/docs-tree - CLI for prebuilding docs navigation
  • Tailwind CSS + Radix UI + Shadcn patterns - UI foundation
  • Algolia DocSearch - fast documentation search

MDX Processing Comparison (Before vs After Optimization)

DocuBook separates metadata reads from full MDX compilation and reuses cached results within one request.

Quick Metrics (Per Request)

MetricBeforeAfter
MDX file reads3x1x
Frontmatter parsing2x1x
MDX compilation2x1x
TOC extraction1x (separate read path)1x (from shared raw cache)

Metadata, page content, and TOC now share the same raw MDX processing in one request.

Practical Impact

  • Less CPU work for metadata generation (no unnecessary MDX compile).
  • No repeated file-system reads during a single docs page render.
  • Better performance consistency for docs routes under load.
  • Cleaner separation of concerns between metadata and full content rendering.

DocuBook gives you a practical docs platform that scales with your project.

Last updated May 4, 2026