BookStack — Simple Self-Hosted Documentation & Wiki Platform
BookStack is a simple, self-hosted documentation platform organized by Shelves, Books, Chapters, and Pages. WYSIWYG/Markdown editor, LDAP, and powerful search.
What it is
BookStack is a self-hosted documentation platform that organizes content using a familiar metaphor: Shelves hold Books, Books contain Chapters, and Chapters contain Pages. It provides both WYSIWYG and Markdown editors, full-text search, LDAP/SAML authentication, and role-based access control.
BookStack targets small to mid-size teams that need internal documentation without paying for Confluence or Notion. It runs on a standard LAMP stack (PHP + MySQL) and can be deployed in minutes.
How it saves time or tokens
BookStack's hierarchical organization eliminates the flat-page problem common in wikis. You do not need tags or complex search queries to find content because the shelf-book-chapter-page structure provides natural navigation.
For AI-assisted documentation workflows, BookStack's REST API lets agents create, update, and organize pages programmatically. An agent can generate documentation and push it directly into the right book and chapter.
How to use
- Deploy BookStack via Docker:
docker run -d -p 6875:80 linuxserver/bookstack - Configure the
.envfile with your MySQL connection and app URL - Log in with the default admin credentials and create your first Shelf
- Add Books, Chapters, and Pages using the WYSIWYG or Markdown editor
Example
# Docker Compose setup
version: '3'
services:
bookstack:
image: linuxserver/bookstack
environment:
- APP_URL=https://docs.example.com
- DB_HOST=db
- DB_DATABASE=bookstack
- DB_USERNAME=bookstack
- DB_PASSWORD=secret
ports:
- '6875:80'
depends_on:
- db
db:
image: mysql:8
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=bookstack
- MYSQL_USER=bookstack
- MYSQL_PASSWORD=secret
Related on TokRepo
- Documentation tools -- More documentation and knowledge management tools
- Self-hosted tools -- Self-hosted alternatives to SaaS platforms
Common pitfalls
- The default admin password is
password; change it immediately after first login - BookStack stores uploaded images on the local filesystem by default; configure S3 storage for production
- Full-text search uses MySQL FULLTEXT indexes, which do not support CJK characters well without additional configuration
Frequently Asked Questions
BookStack is free, open-source, and self-hosted. Confluence is a paid Atlassian product with more enterprise features like Jira integration and real-time collaboration. BookStack is simpler, faster to set up, and suitable for teams that do not need Atlassian ecosystem integration.
Yes. BookStack supports LDAP and SAML for authentication. You configure the LDAP server, base DN, and attribute mapping in the .env file. Users are automatically created on first login with their LDAP credentials.
Yes. Every page edit creates a revision. You can view the full revision history, compare changes between versions, and restore any previous version with one click.
BookStack supports exporting individual pages or entire books as PDF, HTML, or plain text. The REST API also allows programmatic export for backup or migration purposes.
BookStack requires PHP 8.1+, MySQL 5.7+ or MariaDB 10.2+, and a web server like Apache or Nginx. The Docker image bundles everything. Minimum RAM is 512 MB, but 1 GB is recommended for comfortable performance.
Citations (3)
- BookStack GitHub— BookStack is an open-source wiki platform with shelves, books, chapters, and pag…
- BookStack Docs— BookStack supports LDAP, SAML, and role-based access control
- BookStack API Docs— BookStack REST API for programmatic content management
Related on TokRepo
Discussion
Related Assets
HumHub — Open-Source Enterprise Social Network
A flexible, open-source social networking platform built on Yii2 for creating private communities, intranets, and collaboration spaces within organizations.
Dolibarr — Open-Source ERP & CRM for Business Management
A modular open-source ERP and CRM application written in PHP for managing contacts, invoices, orders, inventory, accounting, and more from a single web interface.
PrestaShop — Open-Source PHP E-Commerce Platform
A widely adopted open-source e-commerce platform written in PHP with a rich module marketplace, multi-language support, and a strong European user base.