qnotes

Encrypted notes that sync between your own devices.

qnotes is a Markdown notes app for desktop and mobile. It works offline, syncs device to device, and encrypts every note end to end. Backup servers only ever store ciphertext.

Free. Windows, Linux and Android, with an iPhone beta.

The qnotes desktop app in its Mist theme: folders and tags on the left, a list of notes in the middle, and an essay titled 'On keeping a commonplace book' open on the right, with headings, a quote and a checklist rendered as you type.
Desktop app. Notes are plain Markdown, rendered inline as you type.

Overview

  1. Offline first

    Every note is stored on your device first, so reading and writing never wait on a network connection.

  2. Device-to-device sync

    Your laptop and phone sync directly, over the local network when possible. Concurrent edits to the same note are merged automatically.

  3. End-to-end encrypted

    Notes are encrypted with keys that stay on your devices. Relay and backup servers store ciphertext and have no way to decrypt it.

Sync demo

Type on either device. Then disconnect them, edit both notes, and reconnect. Each device keeps a full copy, and the edits are merged when they reconnect.

Laptop Synced
Phone Synced

Runs locally in your browser using the same approach as the app: each character gets a unique, stable ID, so both devices end up with the same text regardless of the order changes arrive in.

How it works

The main design decisions, each with a short explanation and technical details for engineers.

01

Every device has a full copy

Each device stores your complete notebook. If our servers went offline, you would still have every note, and your devices would keep syncing with each other.

For engineers

Each device keeps an authoritative replica in SQLite with crash-safe transactional writes. The UI writes locally and returns; sync is a background concern. There is no "primary" device and no server-side source of truth. Servers are optional relays and archives, never required for reading or writing.

02

Edits merge instead of overwriting

When two devices edit the same note while offline, qnotes keeps both sets of changes. If two edits genuinely conflict, the note is marked Needs attention so you can resolve it yourself.

For engineers

Each note is its own CRDT document (Automerge). Merges are deterministic: any two devices that have seen the same set of changes show the same text, regardless of arrival order. Per-note documents keep merges small and keep one damaged note from affecting others. Catalog state (folders, tags, pins, trash) is merged with the same determinism rules. Conflicts that can't be resolved structurally are surfaced, not dropped.

03

Encrypted on the device

Everything is encrypted before it leaves your device. Sync and backup servers only handle ciphertext. Switch tabs below to compare what you see with what a server sees.

Tide tables and ferry times

Working numbers for the ferry scene. Invented, but they must stay consistent.

High water 06:12. Last boat 18:40. Ines leaves on the six o'clock, so the harbour is still half empty.

For engineers

Content is sealed with XChaCha20-Poly1305 under keys derived with HKDF-SHA256; hashes and identity commitments use BLAKE3-256. Keys are generated and kept on devices. Relays and archive servers are keyless: they store and forward ciphertext but hold nothing that decrypts it. See Limits for the metadata they can still observe.

04

Post-quantum encryption

Encrypted data copied today could be attacked later by quantum computers. qnotes combines established algorithms with post-quantum ones, so an attacker would need to break both.

For engineers

Hybrid post-quantum throughout. Signatures are Ed25519 and ML-DSA-65 (FIPS 204), and both must verify. There is no classical-only fallback path to downgrade to. Key encapsulation is X-Wing (ML-KEM-768 combined with X25519). Derivations and envelope bytes are frozen in published test vectors so independent implementations can be checked against them.

05

Pairing requires confirmation on both devices

To add a phone, scan the QR code shown on your computer. Both screens then show a six-digit code; if they match, confirm on each device. Being on the same network or knowing an address is not enough to join.

Computer ––– –––
Phone ––– –––

Start pairing to get a code.

For engineers

The QR carries a short-lived locator; scanning is input, not consent. The six digits are derived from the authenticated hybrid handshake transcript (endpoint keys, commitments, vault, generation and both parties' nonces), so a relay or LAN attacker that substitutes keys produces different codes. Both intended devices must confirm. Invites expire after ten minutes. A code is about 20 bits per attempt: strong against a single interception, not a defence against unlimited retries, which is why attempts are bounded and contested claims are burned.

06

Encrypted backups

qnotes can keep encrypted backups on an always-on machine: our servers, a server you host, or any of your computers with Offer as backup turned on. A device only frees local storage once two separate backups confirm they hold the data.

For engineers

Archive nodes are keyless and hold ciphertext only. Eviction from a device requires K=2 independent archive copies, and an archive counts as healthy only after signed retention checks, not because it acknowledged an upload once. Any paired native device can serve as an archive. A self-hosted server ships as a container image.

07

24-word recovery kit

Creating a notebook gives you 24 recovery words. Store them somewhere safe; you only need them for things like regaining access after losing all your devices. There is no password reset, because nobody else holds your keys.

For engineers

The kit is 24-word BIP-39 entropy. A generation-bound HKDF derives the root signing identity (Ed25519 + ML-DSA-65), the X-Wing recovery wrapping key, and namespace and directory keys as independently labelled outputs. Root secrets are transient: they are derived when needed for a root operation and not kept on devices.

08

Formally verified access rules

The rules for adding and removing devices are specified as machine-checked proofs, in addition to the regular test suite.

For engineers

The authority and revocation model is formalised in Lean 4, with machine-checked proofs of its safety properties under stated assumptions (for example, that the underlying primitives are secure). The proofs cover the model, not every line of the implementation; they're complemented by frozen protocol vectors and the Rust test suite.

Editor

A Markdown editor for everyday notes, drafts and long-form writing.

  • Live Markdown. Headings, quotes and lists render as you type, with source, reading and side-by-side modes.
  • Rich content. Tables, checklists, footnotes, callouts, math, code blocks, and [[links]] between notes.
  • Local search. Full-text search runs on the device. If some older notes are only in backups, search tells you.
  • Folders, tags and pins. Trash with undo, and full history for every note.
  • Attachments. Images and files sync like notes, and can be sent directly between devices on the same network.
  • Customisable. Light and dark themes, sans, serif or mono fonts, and Vim keybindings.
The appearance settings in qnotes: light presets Daylight, Paper and Mist, and dark presets Graphite, Midnight, Forest, Ember and High contrast.
Theme settings. Each device can use its own theme.

Sync status is one of four states: Saved Syncing Synced Problem.

Known limitations

Download

Free. No account required.

Self-hosted backup server. It only stores ciphertext, so you can run it on any always-on machine.