This project renders published GitBook documentation using Next.js. Teams can run it locally for development or self-host the public site frontend.
Overview
GitBook’s hosted platform manages technical knowledge for teams; this open source component is the rendering engine that displays published GitBook content on the web. It powers how doc pages, navigation, and themed layouts appear to readers when content is published from GitBook.
The codebase is a Next.js application requiring a current Node.js runtime and Bun for dependency installation during development. Running the dev server lets any published GitBook site be viewed through your local instance, with code changes reflected in the browser.
Contributors can improve translations, fix rendering bugs, or suggest features through the project’s contribution guides. Pull requests are checked with visual and performance tests to reduce regressions. Font and icon usage in self-hosted setups should stick to free Font Awesome icons for licensing reasons.
Self-hosting is supported for organizations that want to customize appearance or embed docs more tightly in their own applications, though maintainers caution that operators must keep the renderer updated and reliable themselves. The core license is GNU GPLv3, with a separate Apache-licensed embed package for proprietary use cases.
Key features
- Next.js GitBook site renderer
- Local dev preview of published sites
- Visual and performance CI checks
- Internationalized UI translation files
- Self-hosted publishing frontend option
- Font Awesome free icon set
- Apache-licensed embed package
- Contribution paths for bugs and i18n
Use cases
- Self-hosted GitBook doc appearance
- Custom themed public documentation
- Embedding GitBook output in apps
- Contributing to doc rendering fixes
- Running published sites offline in dev