Back to services

LeafWiki

LeafWiki - Self-hosted wiki. Single Go binary, SQLite, Markdown on disk. No external database required.

View alternatives to LeafWiki
Suggest edit
Open source
Self-hostable
MIT
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

LeafWiki positions itself as "a real wiki without the heavy tech stack," aimed at people who like organizing content in folders and dislike feed-style notes. It organizes pages in a tree structure, which makes it well suited to runbooks, homelab documentation, tutorials and team notes. The project is open source under the MIT license, maintained by the developer @perber and supported by the community. The official site lists the current version as v0.14.2, and the GitHub repository has about 1.2k stars.

Key Features

  • Split-pane editor: Markdown source and rendered output are shown side by side in real time, with autosave. Pasting an image with Ctrl+V uploads it automatically and inserts the link.
  • Markdown stored on disk: Pages are plain .md files, so you can read them without opening the app and search them with grep. Metadata such as links, tags and the search index is kept in a lightweight SQLite database. Backing up is as simple as copying the directory with cp -r, and you won't lose your content if you later move to another tool.
  • Obsidian-compatible [[wikilink]]: Links are autocompleted as you type.
  • Navigation and search: A tree navigation on the left is always visible. Full-text search with tag filtering is supported (Ctrl+Shift+F), and you can also use quick jump (Ctrl+Alt+P).
  • Revision history: Every save is recorded, and you can restore an older version with one click (requires --enable-revision).
  • Link intelligence: Backlinks are tracked automatically. When a page is renamed or moved, related links are updated automatically, and broken links are flagged (requires --enable-link-refactor).
  • Diagrams and formulas: Mermaid diagrams and KaTeX math are built in, with no plugins to install.
  • Other: PDFs can be embedded in pages, and the app supports full backup and restore, Git backup, TOTP two-factor authentication, drag-and-drop page ordering, favorites and email invitations. The interface is available in Chinese (Simplified), English, German, French, Spanish and more.

Three Operating Modes

  1. Private wiki: Login is required for all access, suitable for internal team and homelab documentation.
  2. Public documentation site: Anyone can read, and only logged-in editors can make changes.
  3. Local notepad: No authentication, suitable for personal use or a trusted home network.

You can connect existing authentication systems such as Authentik, Authelia and Keycloak through trusted HTTP headers.

Installation and Deployment

Docker:

docker run -p 8080:8080 \
  -v ~/leafwiki-data:/app/data \
  ghcr.io/perber/leafwiki:latest \
  --jwt-secret=secret \
  --admin-password=admin \
  --allow-insecure=true

One-line script (Ubuntu / Raspberry Pi OS):

sudo /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/perber/leafwiki/main/install.sh)"

You can also download a prebuilt binary from GitHub Releases, available for Linux x86_64, Linux arm64 (Raspberry Pi), Windows and macOS (Apple Silicon / Intel). If you don't want to run a server yourself, the project offers a free hosted beta, free until December 31, 2026.

Technical Highlights

  • A single Go binary, with no dependency on Node.js, Redis or Postgres.
  • State is stored in SQLite, while page content is kept as plain files.
  • Runs on Linux, macOS, Windows and Raspberry Pi.

Good Fit and Not a Good Fit

Good fit: personal knowledge bases and engineering notes; team runbooks, internal documentation and onboarding guides; homelab and self-hosted environments; Obsidian users who want a server-side wiki; users who prefer a tree structure.

Not a good fit: real-time multi-user collaborative editing; an all-in-one workspace like Notion or an enterprise suite like Confluence; approval workflows or automation; large organizations with complex permission requirements.

The project deliberately stays focused. For users who find Wiki.js or Outline too burdensome to operate, it is a lighter alternative.