A self-hosted, open-source, local-first Markdown knowledge base: Obsidian's plain-Markdown philosophy and offline access, Notion's friendly interface and real-time collaboration — with end-to-end encryption so the server can't read anything.
Try it in your browser: a full demo runs at demo.notekpr.md, with nothing to install (it's reset regularly, so keep nothing real there). Rather not run a server? notekpr is also hosted for you at notekpr.md: every feature on every plan, and there too only your devices hold the keys.
- Private by design — notes, file names, folders, attachments and history are encrypted on your devices, and the keys passed between them are sealed with post-quantum cryptography (ML-KEM) once everyone's apps are up to date. The server stores ciphertext and coordinates.
- Collaborative — share vaults with family or colleagues as editor or viewer; edit the same note simultaneously with live cursors. Conflict-free merging (CRDTs), also after working offline.
- Plain Markdown — wiki links, backlinks, tags, embeds, export to a
folder of
.mdfiles at any time. - Use your own editor — the CLI keeps your vaults as a plain folder of Markdown files, synced live and both ways: edit with Obsidian, Neovim, VS Code or anything else while the server only stores ciphertext (how).
- Easy for everyone — sign in with your existing identity provider (OIDC), one click to set up encryption, a clean editor with a formatting toolbar.
- For AI agents too — give an agent its own identity and keys, share only the vaults it needs; it works with notes through the CLI, a folder of Markdown files, or a local HTTP gateway.
- Rust everywhere — the server, the CLI and the browser client (compiled to WebAssembly) share one core crate for all cryptography and syncing. No npm, no third-party JavaScript.
The short version; every feature, with its shortcuts, is in the docs. New to it? Getting started, writing notes and drawings show how to use the app.
- Writing — a live-preview Markdown editor with a toolbar, tables, task lists, code blocks, callouts, colors, images, video and audio, LaTeX math and chemistry, Mermaid diagrams; optional Vim keys.
- Drawings — a whiteboard among your notes, drawn together live and shown in any note; compatible with Excalidraw: copy and paste, its files and Obsidian's.
- Organizing and finding — folders with drag and drop, icons, a quick switcher, full-text search, backlinks, a graph, quick notes, a trash and every note's history.
- Working together — share a vault or a single note by invitation, edit together with live cursors, comment and @mention; make a note public with a link anyone can read.
- Privacy and security — a key for every note, signed membership and edits, new devices approved from one you already use.
- Offline, and your own tools — works offline; a desktop app in the tray, with accounts on several servers or only on that computer, without a server; the desktop app or the CLI keeps your vaults as a folder of Markdown files; import (Markdown, Obsidian, Notion) and export.
- For AI agents — their own identity, only the vaults you share, through the CLI, files or an HTTP gateway.
- Running it — one Rust server with SQLite, attachments in S3 or a folder, updates without downtime, an admin page, limits and metrics.
You need Rust ≥ 1.95 with the wasm32-unknown-unknown target and the
wasm-bindgen CLI 0.2.130. On Arch: pacman -S rust rust-wasm wasm-bindgen go-task.
See development dependencies
for everything else (browser tests, Docker, …). No Node.js or npm.
task setup # checks the toolchain
task dev # builds everything and starts a dev server on http://localhost:8080or without go-task:
cargo build -p notekpr-server
./scripts/build-web.sh
./target/debug/notekpr-server --dev-mode --web-dir dist/webOpen http://localhost:8080, sign in as alice, then open another tab and
sign in as bob — every tab keeps its own session, so you can test sharing and
live collaboration between several users in one browser.
To look around with data already there, task demo starts a separate demo
server on http://localhost:8099: five users with their own and shared
vaults, notes shared on their own, and a vault of linked notes to see the
graph (details).
Or with Docker:
docker compose -f docker-compose.dev.yml up --buildDevelopment mode lets anyone sign in as anyone. Never expose it.
The server is published as a container image for amd64 and arm64,
ghcr.io/coolapso/notekpr, tagged with each release's version and latest.
With Docker Compose:
git clone https://github.com/coolapso/notekpr && cd notekpr # or download just docker-compose.yml
export NOTEKPR_PUBLIC_URL=https://notes.example.com
export NOTEKPR_OIDC_ISSUER=https://auth.example.com # Authelia, Keycloak, Authentik, …
export NOTEKPR_OIDC_CLIENT_ID=notekpr
export NOTEKPR_OIDC_CLIENT_SECRET=… # from wherever you keep secrets
docker compose up -d # notekpr on 127.0.0.1:8080Put the reverse proxy you use in front of it for HTTPS: notekpr serves plain HTTP and leaves TLS to the proxy, by design.
| Setup | Files | How |
|---|---|---|
| Docker Compose | docker-compose.yml |
operations |
| Kubernetes | deploy/kubernetes/: the server, a nightly backup, a public demo |
operations |
| From source | — | operations |
| A reverse proxy, if you have none (optional) | deploy/examples/: Caddy with automatic HTTPS, Traefik on Kubernetes; nginx in the docs |
operations |
A small one: ¼ core and 128 MB serve 100 people online at once, and a 1 vCPU / 1 GB VPS is plenty for 1,000. Memory is what runs out first: about a quarter of a megabyte per person online. Measured with the load test; the numbers, and how to measure your own server, are in operations.
See docs/operations.md for configuration, identity provider setup, reverse proxies, Kubernetes, backups, upgrades and monitoring.
| Client | |
|---|---|
| Browser | served by the server; works on desktop and phones |
Desktop app (notekpr-desktop) |
the app in a window of its own, in the tray, with a Markdown folder; Linux: AUR, .deb, Fedora's COPR, a Flatpak; Windows: an installer; macOS: a disk image (not fully tested yet) — docs/desktop.md |
CLI (notekpr) |
offline replica, live sync, optional Markdown mirror, export/import; Linux, Windows and macOS (not fully tested yet) — docs/cli.md |
| Agents | CLI, Markdown folder or local HTTP gateway — docs/agents.md |
Also as a website, with search: docs.notekpr.md.
- Every feature
- Who can do what in a vault (owners, admins, editors, viewers)
- Use your own editor (Obsidian, Neovim, …)
- Getting your notes out, whatever happens (encrypted export, offline recovery)
- Architecture and technology decisions
- Security model and threat analysis · Reporting a vulnerability
- Sync protocol and HTTP API
- Operations · Development
- Acceptance criteria and how they are tested · Load test with a live view
- Working on the code (rules for humans and AI agents)
- Roadmap: what's planned, what's being worked on and what's done
Contributions are welcome, including ones made with AI agents, as long as a person is behind them.
- Ask first, then wait. Even when there's an issue on the roadmap already: say in it that you'd like to work on it, and how. Start once the maintainer has assigned it to you. Pull requests for issues that weren't assigned to their author are closed.
- Ideas, bugs and questions start as a discussion. Issues are opened by the maintainer, from discussions that turn into work.
- AI agents are fine when you drive them. You don't need to know the code; you need to understand what you're solving and why. You've seen the result work, you answer the review yourself, and you stand behind the change. AGENTS.md has the rules for people and agents alike.
- No autonomous agents. Agents that roam repositories on their own, picking easy issues, aren't welcome here: their pull requests are closed without review.
Security problems are reported privately: SECURITY.md.
Running notekpr yourself is free, with every feature, and nothing is held back for paying customers. If it's useful to you and you'd like to give something back, the best way is a hosted plan, even one you never use: the plans are what keep notekpr going. A plan is a purchase like any other, from coolapso AB, and it's there if you ever want your notes on our servers too.
Rather give something directly? ❤️ Sponsor notekpr's development on GitHub, monthly or once, or buy a coffee (no GitHub account needed). The money goes to coolapso, who makes notekpr; you get nothing extra for it, you already have everything.
Not money? Start a discussion with a bug or an idea, or tell someone who'd like it.
AGPL-3.0-or-later. notekpr is also made of other people's work, under their own licences: docs/licenses.md has their notices, and every build carries a copy.