Stars
Forks
Watchers
Developer links
LeafWiki
Engineering teams and technical writers maintain operational runbooks, system documentation, and knowledge bases using LeafWiki, an open-source self-hosted wiki that stores page contents directly as human-readable Markdown files on the local filesystem. Authors can compose documentation through a dual-pane editor equipped with live HTML preview, keyboard navigation, autocomplete for internal links, and native rendering for Mermaid diagrams, KaTeX mathematical formulas, and collapsible callout containers. The navigational tree organizes complex documentation into explicit directory hierarchies and custom drag-and-drop page sequences tracked in lightweight configuration files rather than arbitrary alphabetical lists. An integrated SQLite engine indexes page content and custom taxonomy tags for fast full-text searches, automatic incoming backlink tracking, and automated broken link detection. System operators can deploy the single-binary application without external database servers or runtime dependencies, backing up the entire repository by copying the data directory. Administrators can provision granular user roles, configure reverse proxy header authentication for single sign-on gateways, and manage read-only API access keys for automated documentation scripts and continuous integration pipelines. Public viewers can browse technical notes without authentication or switch between dark and light high-contrast themes. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.
Benefits
- Direct Filesystem Markdown Storage
- Preserve total data portability and eliminate vendor lock-in by storing articles as plain text Markdown files on disk, enabling direct git version control, external script processing, and instant directory backups.
- Zero Dependency Single Binary
- Deploy the complete knowledge base with zero external database dependencies, background message brokers, or node runtimes, utilizing a self-contained Go executable with embedded SQLite caching.
- Rich Technical Markdown Authoring
- Draft operational runbooks using a live dual-pane editor supporting Mermaid flowcharts, KaTeX equations, syntax-highlighted code blocks, collapsible callout boxes, task lists, and automatic internal page link autocomplete.
- Automated Relational Link Graph
- Maintain cohesive knowledge networks through automated incoming backlink detection, outgoing reference tracking, broken link diagnostics, and multi-tag filtering across deep hierarchical folder trees.
Features
- Flat-File Markdown Engine
- Store all page content in human-readable Markdown files on the filesystem with frontmatter metadata, allowing backups via simple filesystem copy commands.
- Mermaid and KaTeX Rendering
- Render interactive architecture diagrams, state machines, and mathematical equations natively in pages using embedded Mermaid and KaTeX parsers.
- Explicit Hierarchical Ordering
- Organize pages in customized tree structures with manual drag-and-drop sorting, breadcrumb paths, and table of contents sidebars.
- Automated Backlink Diagnostics
- Identify incoming page references, outgoing links, and broken internal hypertext targets automatically using embedded SQLite graph indexes.
- Reverse Proxy Authentication
- Integrate authentication headers seamlessly behind Authelia, Authentik, or Cloudflare Access proxies alongside built-in role permissions and API tokens.