# wako

A wiki that keeps plain Markdown in SQLite.

One static program, no runtime dependencies. Your pages stay ordinary Markdown files you can read, export and take anywhere.

- [Try the demo](https://wako-demo.henryvandenbroek.com/demo/welcome)
- [Run it in a minute](#run-it)
- [View on GitHub](https://github.com/hbroek/wako)

MIT licensed · Written in Go · Single static binary · Private by default · Docker image from scratch

This page is also available as [HTML](https://wako.henryvandenbroek.com/).

## Everything in the page, nothing in the way

wako does the wiki things you expect and stays out of your content. What you write is what is stored.

- **Markdown in, Markdown out.** Ask a page for `text/markdown` (or add `.md`) and you get the text you wrote. A browser gets HTML. GitHub Flavored Markdown, and nothing more.
- **Spaces.** Many independent wikis on one server, each with its own SQLite file, members and roles. A new space is private until you let anonymous visitors read it.
- **History and suggestions.** Every change is kept, with diffs and restore, and saves are conflict-safe. People who may only suggest queue changes for an editor to accept or reject.
- **Kanban boards.** Headings become columns and task items become cards, in plain Markdown. Add front matter and `{{page.title}}` macros to any page.
- **Pictures and PDFs.** A media library per space. Paste or drop an image into the editor, phone photos are shrunk in the browser first, and the server strips metadata and makes smaller copies.
- **Find and follow.** Full-text search, backlinks, a broken-link report and RSS feeds of changes, with the Markdown of new pages carried in each entry.
- **Portable.** Export a space as a zip of ordinary `.md` files and images, import it again, or drive the wiki from the `wako` command-line client.
- **Careful by default.** Raw HTML never shows, output is sanitised, pages carry a strict Content-Security-Policy, cross-site changes are refused, and passwords use Argon2id.
- **One program.** A static Go binary with SQLite built in. No database server, no runtime, no C compiler. The Docker image is built from `scratch`.

## See it working

A small wiki is running at [wako-demo.henryvandenbroek.com](https://wako-demo.henryvandenbroek.com/demo/welcome). Every page shows one feature, and the Markdown behind it is one click away: use the **Markdown** button on any page.

**It is a read-only demo.** You can browse and search it, but nobody can change anything. To edit pages, [run your own wako](#run-it).

- [Welcome](https://wako-demo.henryvandenbroek.com/demo/welcome): start here. Front matter and `{{page.*}}` macros fill in the title, owner and path.
- [Project board](https://wako-demo.henryvandenbroek.com/demo/board): kanban boards, as a whole page or as part of one (see also the [roadmap](https://wako-demo.henryvandenbroek.com/demo/roadmap)).
- [To-dos](https://wako-demo.henryvandenbroek.com/demo/todos): task lists, shown as ✅ and ⬜, that stay plain text in any Markdown viewer.
- [Tables](https://wako-demo.henryvandenbroek.com/demo/tables): aligned columns, formatting inside cells, and a chart picture.
- [Links](https://wako-demo.henryvandenbroek.com/demo/links): links to other pages, to other sites and to a PDF, plus a red link to a page nobody has written yet.
- [Pictures](https://wako-demo.henryvandenbroek.com/demo/pictures): screenshots, sizes and SVGs from the media library, and [PDF attachments](https://wako-demo.henryvandenbroek.com/demo/attachments).
- [Text and lists](https://wako-demo.henryvandenbroek.com/demo/text-and-lists): headings, nested lists, quotes and code blocks.
- [A tree of pages](https://wako-demo.henryvandenbroek.com/demo/trips): pages below pages, such as a [summit trail](https://wako-demo.henryvandenbroek.com/demo/trips/summit-trail) with its own map and checklist.

[Open the demo wiki](https://wako-demo.henryvandenbroek.com/demo/welcome)

## AI, on your terms

Any assistant that speaks MCP can read and edit the wiki. You can also ask the wiki questions and have pages drafted. All of it is off until you set a provider.

- **Only what you may read.** The pages an assistant sees are chosen from the spaces the person asking can read. A private space never reaches someone who is not a member.
- **Changes can wait.** Give an assistant a token that can only suggest, and everything it writes waits as a diff for a person to approve.
- **Per space switch.** A server administrator turns the AI features on one space at a time. Nothing is sent anywhere until then.

## Run it

Build the image, start it with a volume, and open it. Sign in as `admin`.

With Docker:

```sh
git clone https://github.com/hbroek/wako.git
cd wako
docker build -t wako .
docker run -d --name wako --restart unless-stopped \
  -p 127.0.0.1:8888:8888 \
  -v wako-data:/data \
  -e WAKO_ADMIN_PASSWORD='choose-a-password' \
  wako
```

From source:

```sh
git clone https://github.com/hbroek/wako.git
cd wako
make build
./bin/wakod
# http://127.0.0.1:8888/
# data in ./data
```

Behind a reverse proxy, backups and updating are in the [Docker guide](https://github.com/hbroek/wako/blob/main/deploy/docker.md).

## Project

- [Live demo](https://wako-demo.henryvandenbroek.com/demo/welcome)
- [Source on GitHub](https://github.com/hbroek/wako)
- [README](https://github.com/hbroek/wako/blob/main/README.md)
- [Docker guide](https://github.com/hbroek/wako/blob/main/deploy/docker.md)
- [MIT license](https://github.com/hbroek/wako/blob/main/LICENSE)
- [goldmark-kanban](https://github.com/hbroek/goldmark-kanban)

© 2026 Henry van den Broek. wako is released under the MIT license.
