Self-host your documentation site with full control over styling and deployment.
Contribute bug fixes and UI improvements to how GitBook sites render.
Customize the rendering engine to match your product's branding and design system.
Run the engine locally to preview changes before publishing to your GitBook space.
Requires Bun runtime instead of Node.js, which may need installation if not already present.
This repository contains the open-source frontend rendering engine used to display GitBook documentation sites. GitBook is a platform where teams write and publish technical documentation; this code is specifically the part that takes content stored in GitBook and renders it as a public-facing website that readers see in their browser. The rendering engine is built on Next.js (a framework for building web applications with React) and TypeScript. It fetches content from the GitBook platform and turns it into HTML pages, handling things like navigation, page layout, search, and translations for the interface text. There are two main reasons someone would use this repository. First, contributors who want to improve the appearance or fix bugs in how GitBook sites are displayed can run this locally and point it at any publicly published GitBook space to see their changes in real time. Second, teams who want to self-host the rendering layer, for example to apply custom styling that fully integrates their documentation into their own product, can deploy this separately, though the team cautions that self-hosting means taking responsibility for keeping it updated. The license is GNU GPLv3, which means if you distribute a modified version, you must also make the source code public. A commercial license is available for those who need a private fork. The project uses Bun as its package manager and runtime environment.
Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.