LeafWiki
A lightweight self-hosted wiki in a single Go binary that keeps pages as Markdown files, aimed at runbooks, homelab notes and small-team docs.
LeafWiki at a glance
What is LeafWiki?
LeafWiki is a wiki that ships as one Go binary with SQLite and stores page content as plain Markdown in a data directory, so there is no Node.js, Redis or Postgres to operate. Pages sit in an explicit tree with manual ordering. It offers full-text search with tag filters, backlinks with a broken-link audit, Mermaid diagrams, KaTeX math and embedded PDFs. Admin, editor and viewer roles cover three access modes, from fully private to public reading. Revision history, link rewriting on rename, SMTP mail and an experimental Git backup are opt-in flags, and a ZIP importer handles Obsidian-style links.
Good fit if
- You want an engineering notebook, runbooks or homelab documentation with very little to maintain.
- You have Markdown or Obsidian folders that need a structured web interface.
- You run on a Raspberry Pi or another small ARM64 or x86 machine.
Before you adopt it
LeafWiki is under the MIT license and the repository has no paid parts. Builds are published for Linux, macOS and Windows, with Docker images, a Compose example, a Linux installer and Kubernetes manifests in the docs. The project dates from 2025 and is still at version 0.14, and API keys are marked as not ready for use. The interface ships in 5 languages. Seven authors committed in the last 90 days, one of them accounting for just under half of the commits.
Drafted with AI from the project's README and repository data, then checked against that data on 7 November 2026. Report a correction
How to run LeafWiki yourself
One-click install
Not listed in TrueNAS, CasaOS, Runtipi and Coolify. Checked against each panel’s app catalog on 12 November 2026.
Ways to install
- Docker files
- Dockerfile or compose file in the repository
- Docker image
- ghcr.io/perber/leafwiki: x86-64, ARM64
- Compose file
- e2e-proxy/docker-compose.yml: 4 services (proxy)
- Setup effort
- 3 of 5, judged from the compose file
- Kubernetes
- No Helm chart in the repository
- Packages
- AUR versions on Repology
- Desktop and mobile
- Builds for Linux, macOS, Windows, including ARM in GitHub releases
- Interface languages
- 5 languages: Chinese, English, French, German and Spanish
Install instructions: leafwiki.com or the README on GitHub. Docker images and packages are checked weekly.
LeafWiki health: is it still maintained?
81 of 100, actively developed
Read from GitHub on 12 November 2026. How the score works
LeafWiki security
Security advisories are the vulnerabilities the maintainers disclosed on GitHub, with the versions that fix them; many advisories can mean careful disclosure as much as weak code.
Latest advisories
- Low-privileged stored XSS via unrestricted asset file-type upload in /api/pages/:id/assets
- Unbounded decompression in ZIP importer allows disk/RAM exhaustion (zip bomb)
- Stored XSS via search-result title (highlight() returns raw title into dangerouslySetInnerHTML)
Advisories read from GitHub on 12 November 2026.
LeafWiki license: is it open source?
LeafWiki uses MIT, an open-source license approved by the OSI.
- March 2025First published on GitHub.
- TodayMIT.
LeafWiki for developers
Written in
- Go 65%
- TypeScript 31%
- CSS 2%
- Shell 1%
- JavaScript <1%
- Other <1%
Getting involved
Language shares are GitHub’s count of the code in the repository.
Alternatives to LeafWiki
- MemosMemos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a… 82 health · MIT · 64.4k stars
- Docs (La Suite)Docs is an open-source text editor: web-native, made for real-time collaboration, cleanly structured… 78 health · MIT · 17k stars
- OutlineThe fastest knowledge base for growing teams. Beautiful, realtime collaborative, feature packed, and… 76 health · Business Source License · 41.2k stars
- DocmostDocmost is an open-source collaborative wiki and documentation software. It is an open-source alternative to… 71 health · AGPL-3.0 · 22.3k stars
- Wiki.jsWiki.js | Next Generation Open Source Wiki 65 health · AGPL-3.0 · 29.3k stars
Questions about LeafWiki
Is LeafWiki open source?
Yes. LeafWiki is published under MIT, an OSI-approved open-source license.
Is LeafWiki still maintained?
Its health score is 81 of 100 (actively developed). It had 398 commits in the last 90 days, the latest on 9 November 2026, and its latest release came out on 22 October 2026.
How do I run LeafWiki?
You can run it with the Docker image ghcr.io/perber/leafwiki, as an app for Linux, macOS, Windows, including ARM and in one click from Umbrel, YunoHost, Unraid and 1 more. The README on GitHub has the exact steps.
What is LeafWiki written in?
LeafWiki is written mainly in Go (65% of the code), with TypeScript (31%), by GitHub’s count of the repository.
What languages is LeafWiki available in?
The repository has interface translations for 5 languages: Chinese, English, French, German and Spanish.
What are the alternatives to LeafWiki?
Close alternatives in the Notes & knowledge bases category include Memos, Docs (La Suite), Outline.