Skip to content

Self-hosting ​

Annoto works on one computer with no server. To sync between devices, or to use Annoto in a browser and on your phone, run the sync server. It is one small Node process that serves the web app and keeps an end-to-end encrypted vault: the server stores only ciphertext and never sees your notes or the key. How the encryption works: SECURITY.md. Using sync once the server runs: Sync between devices.

Pick a way ​

WayGood forHTTPS fromPublic address
TailscaleA computer you already have on, at home or a mini PCTailscaleNo: only your devices on the tailnet
DockerA server or NAS you run, behind your own proxyCaddy or your proxyYour choice
Fly.ioNo machine of your own; one script sets it upFly.ioYes, or private over WireGuard

The server needs a disk for the vault and 512 MB of memory: a 25 MB attachment is held in memory a few times over while it syncs.

What you need ​

  • HTTPS. Browsers sync only over HTTPS, so every way above puts a certificate in front of the server.
  • A password of 16 or more characters (openssl rand -base64 24 makes one). Every device enters it once; the server asks for it on every request (Basic auth, any user name). It keeps strangers away from the vault; the passphrase you pick in the app is what encrypts your notes.

Configuration ​

The server reads environment variables:

VariableDefaultWhat it does
ANNOTO_PASSWORDnone: requiredThe server password, 16 or more characters.
ANNOTO_VAULTvault.db; the image: /data/vault.dbWhere the vault lives. SQLite keeps -wal and -shm files beside it.
HOST127.0.0.1; the image: 0.0.0.0The address it listens on.
PORT8787; the image: 8080The port it listens on.
ANNOTO_DISTdistThe built web app it serves (npm run build). The image sets it.
ANNOTO_DOMAINnoneOnly in the image's with-caddy build: the name Caddy gets a certificate for. See a private server.
ACME_DNSnoneWith ANNOTO_DOMAIN: your DNS provider's block for that certificate, keys included.

Logs ​

The server logs one line per vault event (created, passphrase changed, erased) and for a wrong password (at most once a minute), with ids only, never note content.

From source ​

The image is the simplest way. Without Docker, you need Node 26 and a clone of this repository:

sh
npm ci && npm run build && npm run build:server
ANNOTO_PASSWORD="$(openssl rand -base64 24)" ANNOTO_VAULT=/srv/annoto/vault.db npm run serve

It listens on 127.0.0.1:8787. Put HTTPS in front of it as Tailscale or Docker show.

Keep it running ​

Back up the vault, and read the release notes before you upgrade: Upgrades and backups.