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
| Way | Good for | HTTPS from | Public address |
|---|---|---|---|
| Tailscale | A computer you already have on, at home or a mini PC | Tailscale | No: only your devices on the tailnet |
| Docker | A server or NAS you run, behind your own proxy | Caddy or your proxy | Your choice |
| Fly.io | No machine of your own; one script sets it up | Fly.io | Yes, 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 24makes 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:
| Variable | Default | What it does |
|---|---|---|
ANNOTO_PASSWORD | none: required | The server password, 16 or more characters. |
ANNOTO_VAULT | vault.db; the image: /data/vault.db | Where the vault lives. SQLite keeps -wal and -shm files beside it. |
HOST | 127.0.0.1; the image: 0.0.0.0 | The address it listens on. |
PORT | 8787; the image: 8080 | The port it listens on. |
ANNOTO_DIST | dist | The built web app it serves (npm run build). The image sets it. |
ANNOTO_DOMAIN | none | Only in the image's with-caddy build: the name Caddy gets a certificate for. See a private server. |
ACME_DNS | none | With 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:
npm ci && npm run build && npm run build:server
ANNOTO_PASSWORD="$(openssl rand -base64 24)" ANNOTO_VAULT=/srv/annoto/vault.db npm run serveIt 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.