LeafWiki

A self-hosted wiki that uses a single Go binary and stores Markdown files on disk with SQLite.

LeafWiki screenshot 1

LeafWiki is an open-source, self-hosted wiki application designed for structured, long-lived documentation. It operates as a single Go binary that stores page content as Markdown files on disk and uses SQLite for metadata, removing the need for external database dependencies, Redis, or complex runtimes. This architecture ensures that page content remains readable outside the application and simplifies backups to a basic directory copy.

The software is deployed as a server and is accessible via a web browser. It supports multiple installation methods, including Docker, a Linux installer, or running the standalone binary on Linux, macOS, Windows, and Raspberry Pi. Users can configure the application for three distinct operating modes: internal use with required authentication, public read access with restricted editing, or an open mode without login for trusted internal networks.

Key features

  • Tree navigation with explicit page hierarchy and manual sorting
  • Markdown editor with live preview, autocomplete for internal links, and optimistic locking
  • Full-text search across titles and content with tag-based filtering
  • Support for Mermaid diagrams, KaTeX math blocks, and callouts
  • Backlinks and link status tracking for incoming, outgoing, and broken links
  • ZIP-based Markdown importer with Obsidian-style wiki link rewriting
  • Git backup functionality to push content to a remote repository via SSH
  • Custom branding options including logos, favicons, and custom stylesheets

Built with a Go backend and a React frontend, LeafWiki is designed for engineers, self-hosters, and small teams. It is suited for creating engineering notebooks, runbooks, and internal team documentation where a structured hierarchy is preferred over flat note feeds. The system includes roles for admins, editors, and viewers, and it is reverse-proxy friendly with support for trusted HTTP headers for authentication. The application also allows for the injection of custom HTML and JS for analytics or specific styling needs.

LeafWiki positions itself as a lightweight knowledge base for users who require a structured wiki interface without the complexity of enterprise-grade permission workflows or real-time collaborative editing.

Last Modified
Software TypeWeb App / Server
Platform
Last Activity14 days ago
Repository Age1 year
LicenseMIT
Open Source Alternative to
Open Source Software.io

Join our newsletter to get shiny new open source software delivered to your inbox. Unsubscribe anytime.