Repository navigation
Releases
v2.91.1
Self-hosted ZenNotes server 2.91.1, the server half of the offline copy for remote vaults. Nothing changes for anyone yet: a ZenNotes app that keeps an offline copy of a server vault comes in a later desktop release, and needs this server or later.
Features
- The server can keep an app's offline copy in step (#88, for ZenNotes/zennotes#1108). A remote vault has been a pass-through: with the server away, nothing opens and nothing saves. The offline copy is a real folder on the device, kept in step by ZenNotes Cloud's own sync engine, and this release is the part that lives on the server:
- A revision for every text file in the vault and a change log, in
.zennotes/sync/inside the vault (with its own.gitignore), so it follows a vault switch or a move to another server. It is created on a vault's first sync request; a vault nobody syncs gets nothing. - Every write path records its change under the vault lock it already takes: the web client, the phones, both
znbuilds and/mcp. A rename, trash or folder rename is one move per file, and Empty Trash is one delete per file. - Edits made outside the server (a shell,
git pull, Syncthing) are found by a reconcile that checks size and modification time first and hashes only what changed. Until it has run, a sync write compares the file on disk, so such an edit is never written over. /api/sync/manifest,/api/sync/changesand/api/sync/mutationsuse Cloud's sync shapes without encryption. A change lands only if its file is still at the revision it was built on, each change is answered on its own, and a repeated operation id gets its first answer. A copy older than the 90-day log rebuilds from the manifest./api/capabilitiessayssupportsSync: 1.- Attachments are not part of a copy yet; the server refuses them the way Cloud refuses a path, and the app sets them aside.
- A revision for every text file in the vault and a change log, in
ZENNOTES_SYNC_LOG_RETENTIONsets how long the change log keeps a change, as a duration such as720h(default2160h, 90 days). A copy away longer downloads the vault again instead of catching up.
Web client
The browser package is unchanged from 2.91.0 (web-2.91.0-web.hac90318bc29e477e, from ZenNotes/zennotes 82360d73). Go dependencies are unchanged (golang.org/x/text is now listed as direct), so vendorHash is unchanged.
Install
Binaries for Linux, macOS and Windows are attached, with SHA256SUMS. Docker: adibhanna/zennotes:2.91.1, 2.91 and latest.
How to test locally
- Run the server on a scratch vault and
curl -H "Authorization: Bearer $TOKEN" http://127.0.0.1:7878/api/capabilities: it includes"supportsSync": 1. curl -H "Authorization: Bearer $TOKEN" 'http://127.0.0.1:7878/api/sync/manifest?page=1&perPage=50': every note is listed with a revision, and.zennotes/sync/now exists in the vault.- Rename a note in the web client, then ask
/api/sync/changes?after=<cursor from step 2>&vault_id=<vault_id>: the rename is onemovewith the old and new path.
Verification
Verification before publication: Cloud's real CloudSyncCoordinator and the desktop's sync repository, from ZenNotes/zennotes 2b108ace, synced two copies against a running server in all 11 scenarios of the new sync-engine job (bootstrap, offline edits replayed, a conflict held for review, renames and deletes both ways, an edit made on the server's disk, a cursor older than the log), on Linux, macOS and Windows. Every check passed on #88 and on main at 1040fada; on the release commit ae42617 (#89, release.json only) every check passed, with one macOS job cancelled before a runner picked it up and passing in the other run. The release workflow (run 45436174734) built the five binaries from that commit. Every binary matched SHA256SUMS, and the manifest matched the pin byte for byte. The macOS arm64 binary was run on a scratch vault: it reports v2.91.1 and supportsSync: 1, lists the vault in the manifest, records a rename as one move that keeps the item's id, refuses a wrong vault_id with 409, and serves the web app at /. Windows and Linux binaries were checked by checksum and by CI.
Docker: adibhanna/zennotes:2.91.1, 2.91 and latest are published from this tag.
v2.91.0
ZenNotes Server 2.91.0, released with ZenNotes desktop 2.91.0.
Fixes
- Note writes can name the version they replace (#85). Note reads and writes answer with the note's
sha256. A write may send it back asbaseSha256, and the server refuses with 409, writing nothing, when the note changed since that read. A malformed base is a 400. Writes without it work exactly as before. The capability issupportsConditionalNoteWrites. ZenNotes desktop 2.91.0 and zn 0.18.2 use it, so a save after an outage, a terminal app save or a CLI or MCP edit never writes over a change another device just made (ZenNotes/zennotes#1108). - A vault switch keeps the new vault's folder layout. After switching vaults, the file watcher sorted changes into the default folder names until the vault's settings next changed, so a vault that keeps Trash elsewhere reported trashed notes in the wrong place.
- A vault switch on Windows no longer hangs. The watcher could wait forever while setting up a vault that was being written to.
- The built-in MCP edits use the same check (zn 0.18.2).
Web client
Pins the 2.91.0 browser client (web-2.91.0-web.hac90318bc29e477e, from ZenNotes/zennotes 82360d73).
Install
Binaries for Linux, macOS and Windows are attached, with SHA256SUMS. Docker: adibhanna/zennotes:2.91.0.
How to test locally
- Run the server and
curl -H "Authorization: Bearer $TOKEN" http://127.0.0.1:7878/api/capabilities:supportsConditionalNoteWritesis true. - Read a note, then write it with the
sha256you got asbaseSha256: it saves. Change the note another way and write again with the old value: the server answers 409 and the file is unchanged.
ZenNotes Server v2.84.1
Self-hosted ZenNotes server 2.84.1, a fix for MCP clients that connect over HTTP.
Fixes
- A
/.well-known/URL with no file answers 404 instead of the web app's page (#82). MCP clients look for OAuth metadata there before using a plain token. The app's page, sent with a 200, kept some of them retrying forever: OpenAI's tunnel-client never became healthy against/mcp(#56). Thanks to @lewxdev for tracking it down. The protected-resource and authorization server URLs all get a 404 now. App routes still get the page, with or without a base path.
The browser package is unchanged from 2.84.0 (web-2.84.0-web.h5420d59b9fc56144). No Go dependency changes: vendorHash is unchanged.
Verification before publication: go, docker, docker-upload, mcp-contract and nix checks passed on #83 at 7df231b, including macOS and Windows. The release workflow (run 43909760173) built the five binaries from that commit. Every binary matched SHA256SUMS, and the manifest matched the pin byte for byte. The macOS arm64 binary was run on a scratch vault with MCP on: it reports v2.84.1, answers 404 on both protected-resource URLs, serves the web app at / and /settings, and reads a note over /mcp. Windows and Linux binaries were checked by checksum only. The hop through tunnel-client itself was not tested here.
Docker: adibhanna/zennotes:2.84.1, 2.84 and latest are published from this tag.
ZenNotes Server v2.84.0
Self-hosted ZenNotes server 2.84.0 brings the 2.84.0 web app to your browser. The server's own code is unchanged from 2.83.1.
In the web app
- A line opened or pasted below a folded heading goes below its section (zennotes#1066). Vim's
pando, Enter and a paste at a folded heading put the new lines under its section, and the heading stays folded. - Copy drawing as image works again. Server 2.83.1's tighter content policy blocked it; the web app now reads the drawing without a network request.
- Help reads only what the web app has: no tray, floating windows, Reveal in Finder or zoom.
- A tap beside a folded heading on a phone or tablet browser keeps the cursor on it, so Return no longer splits the next heading.
The browser package is web-2.84.0-web.h5420d59b9fc56144, built from desktop 2.84.0 (621ad0cf).
Verification before publication: go, docker, docker-upload, mcp-contract and nix checks passed on #80 at f6c36ee, including macOS and Windows. The release workflow (run 42668105269) built the five binaries from that commit. Every binary matched SHA256SUMS, the manifest matched the pin byte for byte, and the macOS arm64 binary was run on a scratch vault: it reports v2.84.0 and serves the web app at /. Windows and Linux binaries were checked by checksum only.
Docker: adibhanna/zennotes:2.84.0, 2.84 and latest are published from this tag.
v2.83.1
Self-hosted ZenNotes server 2.83.1. Please update: this is a security release for the browser client. Details are in the advisories: GHSA-f33v-gwvr-3j4g and GHSA-896c-3jmh-p7h4.
Security
- Only this server's own pages can use a browser session. On the default
127.0.0.1bind, pages on other local ports no longer get credentialed CORS. Writes, deletes, uploads and the live-changes socket are refused from other sites, with a 403. To allow another local page on purpose, list it inZENNOTES_ALLOWED_ORIGINS, or useZENNOTES_DEV. - A loopback server with no token answers only to local names: IP addresses,
localhostand its subdomains, or names you list in the newZENNOTES_ALLOWED_HOSTS. A server with a token, or on another bind, is unaffected. - The web client's script can only connect to its own server and Unsplash (
connect-src). - The startup banner tells the truth about which origins are allowed.
Behavior changes
- JSON endpoints now require
Content-Type: application/jsonand answer 415 otherwise. Every ZenNotes client already sends it; a script usingcurl -dalone needs-H 'Content-Type: application/json'. The README shows a working example. - With no token on a loopback bind, a local proxy that forwards a public name needs that name in
ZENNOTES_ALLOWED_HOSTS, or a token. ZENNOTES_ALLOWED_ORIGINS=*now admits other origins without the session cookie: bearer clients work, cookie-only requests from them get 401.
The browser package is unchanged from 2.83.0 (web-2.83.0-web.h3bde8bddf79885a8). No Go dependency changes: vendorHash is unchanged.
Verification before publication: go, docker, docker-upload, mcp-contract and nix checks passed on #78 at a793cbb, including macOS and Windows; two independent reviews found nothing blocking. The release workflow (run 42135320900) built the five binaries from that commit. Every binary matched SHA256SUMS and the manifest matched the pin. The macOS arm64 binary was run: it reports v2.83.1, gives no CORS headers to another loopback port, answers a cross-site text/plain delete with 403 and JSON without its content type with 415, and accepts a bearer JSON write. The real web client was driven in Chrome against this code with no refused requests and no CSP violations. Windows and Linux binaries were checked by checksum only.
Docker: adibhanna/zennotes:2.83.1, 2.83 and latest are published from this tag.
Thanks to Jan Kahmen (turingpoint) and @na-henry for reporting these.
v2.83.0
Self-hosted ZenNotes server 2.83.0 lets assistants use your vault over HTTP, and fixes a hang, uploads and links. It needs Go 1.26 to build from source.
New
- MCP for AI assistants at
/mcp(#56). Assistants on other machines can use a vault without installingzn, with the same tools and path limits aszn mcp0.17.1. It is off until you setZENNOTES_MCP_ENABLED. MCP tokens open/mcpand nothing else, and the server's own token does not open/mcp. One scope comes from environment variables, or a credentials file gives several tokens their own access level and paths. A setting that cannot work stops the server from starting. See "MCP for AI assistants" in the README.
Fixes
- A long or invalid note title no longer hangs the notes API. The search for a free name stops when the filesystem refuses, and gives up after 10,000 tries. Released servers have this.
- In a root-mode vault, a system folder that is a link no longer hides the notes after it (#71). Released servers have this.
- A table's escaped wikilink counts as a link (#72).
[[Note\|alias]]shows in backlinks and renames keep the escape. Every vault re-reads its notes once after upgrading. - Uploads over 8 MiB work in the Docker image, which now ships a
/tmp, and leave no temp file. - An attachment renamed to a name with a space stays linked.
- Hardening:
/api/assets/rawsends asandboxContent-Security-Policy on everything but PDFs and serves scripts and wasm as plain text, request headers have a time limit, and in a container with a memory limit the server sets a soft limit of 70% of it (aGOMEMLIMITyou set wins).
The browser package is web-2.83.0-web.h3bde8bddf79885a8, built from desktop 2.83.0.
Verification before publication: go, docker, docker-upload, mcp-contract and nix checks passed on #76 at 79e044e, including macOS and Windows. The release workflow (run 42121316872) built the five binaries from that commit. Every binary matched SHA256SUMS, the manifest matched the pin, and the macOS arm64 binary was run: it reports v2.83.0, logs /mcp as off until ZENNOTES_MCP_ENABLED is set, and healthcheck exits 0 with the server up and 1 with it down. Windows and Linux binaries were checked by checksum only.
Docker: adibhanna/zennotes:2.83.0, 2.83 and latest are published from this tag.
v2.82.1
Self-hosted ZenNotes server 2.82.1. Please update: this is a security release. Details follow in an advisory.
Security
- Hardens how the server treats symbolic links inside a vault. A write, move or upload no longer goes through a link, and listings now mark links so clients can respect them. If you connect assistants with
zn mcpand path limits such as--allow-path, update this server first, then updateznto 0.16.0: thatznrefuses path limits on an older server.
Behavior changes
- Uploading to, or moving a file by default into, an
assetsfolder that is a symbolic link now answers 400. - A system folder (Inbox, Archive and so on) that is a symbolic link is hidden from path-limited clients.
New
- The Docker image reports its own health (#49).
docker psshowshealthyorunhealthy, anddepends_on: condition: service_healthyworks with no setup. The image has no shell, so it runs/zennotes-server healthcheck. A pass means the server is answering, not that the vault is readable. See the README to change the timing.
The browser package is unchanged from 2.82.0 (web-2.82.0-web.hef00e9245b876c04). No Go dependency changes: vendorHash is unchanged.
Verification before publication: go, docker and nix checks passed on #69 at cb612ff, including macOS. The release workflow (run 41895698160) built the five binaries from that commit. Every binary matched SHA256SUMS, the manifest matched the pin, and the macOS arm64 binary was run: it reports v2.82.1, /healthz answers, and healthcheck exits 0 with the server up and 1 with it down. Windows and Linux binaries were checked by checksum only.
Docker: adibhanna/zennotes:2.82.1, 2.82 and latest are published from this tag.
v2.82.0
Self-hosted ZenNotes server 2.82.0 with the pinned browser artifact web-2.82.0-web.hef00e9245b876c04 (built from ZenNotes/zennotes 6ea4775a, the v2.82.0 release commit).
What changed for self-hosters, all in the browser app the server hands out:
- New Kanban columns can carry a color.
Con a column, its header's menu, a card's menu or Set Board Column Color in the palette pick from the theme's palette, and the color reaches the matching chips in the Table view. - A hidden sidebar can always come back without a keyboard. With Note tabs off, a note's header and Tasks now hold a button to show it again. Before, only the shortcut did, and that left a touch screen stuck.
Import from Notion and Obsidian and opening a vault's folder are desktop features, so they do not appear here.
No Go changes: vendorHash is unchanged.
Verification before publication: the release workflow (run 41713344183) built the five binaries from 5dfaea1 after go, docker and nix checks passed on #66; every binary matches SHA256SUMS, and the manifest.json asset is byte-identical to the pin. The exact server binary with this package was run on a scratch vault in a browser: the sidebar fix with Note tabs off on a note and on Tasks, and the palette offering no import or file manager commands. The column colors were walked on the phones and the desktop with this core, not on this web build.
Docker: adibhanna/zennotes:2.82.0, 2.82 and latest are published from this tag by the repository's Docker publisher (linux/amd64 and linux/arm64, one digest).
v2.81.1
Self-hosted ZenNotes server 2.81.1 with the pinned browser artifact web-2.81.1-web.h1357d855920329a8 (built from ZenNotes/zennotes daedf423, the v2.81.1 release commit). A patch for server 2.81.0.
What changed for self-hosters, all in the browser app the server hands out:
- The Table's Open no longer covers a long name on a touch screen. On a phone or tablet browser, server 2.81.0's app showed a row's Open button on every row, over the end of a long name. A touch screen now leaves it out, since the page icon left of the name opens the page; with a mouse it still appears on hover.
- The Table's select column keeps its width beside a long title on a touch screen.
- In a narrow pane, a Table with a long name opens at its first column, and + Row and the header's menu stay on screen.
No Go changes: vendorHash is unchanged.
Verification before publication: the release workflow (run 41499098806) built the five binaries from 85d224d after go, docker and nix checks passed on #64; every binary matches SHA256SUMS, and the manifest.json asset is byte-identical to the pinned web-artifact/manifest.json (web-2.81.1-web.h1357d855920329a8).
Docker: adibhanna/zennotes:2.81.1, 2.81 and latest are published from this tag by the repository's Docker publisher (linux/amd64 and linux/arm64, one digest).
v2.81.0
Self-hosted ZenNotes server 2.81.0 with the pinned browser artifact web-2.81.0-web.h7628547a4b0d2d18 (built from ZenNotes/zennotes bfab9fdc, the v2.81.0 release commit).
What changed for self-hosters, all in the browser app the server hands out:
- Recurring tasks.
@repeat:weekly(ordaily,weekdays,monthly,2d,mon/thu,after-3dand more) on a task brings the next one back when you check it off, with its subtasks unticked; the finished line stays below as the record.@remind:is kept in the note and shown with a bell; the desktop app is what delivers reminders, so the web app has no reminder settings. - New Kanban for a folder. A folder's menu, the palette and
:kanbanmake a database that opens on its Board with To do, Doing and Done, and the Board now has a full keyboard. - Colors for Kanban columns, from the column's menu,
Cor:color. - Folder fields you pick from. Every Settings field that names a folder lists the vault's folders as you type.
- Fixes: Enter in a list keeps its bullets together and ending a list leaves a blank line; Back from a note opened from Tasks returns to Tasks; a database deleted from another device closes its tab instead of erroring; a database opened in the same pane starts at its first column; a tap on a touch screen no longer leaves a highlight behind.
No Go changes: vendorHash is unchanged.
Verification before publication: the release workflow (run 41374005729) built the five binaries from 0136926 after go, docker and nix checks passed on #62; every binary matches SHA256SUMS, and the manifest.json asset is byte-identical to the pinned web-artifact/manifest.json (web-2.81.0-web.h7628547a4b0d2d18).
Docker: adibhanna/zennotes:2.81.0, 2.81 and latest are published from this tag by the repository's Docker publisher (linux/amd64 and linux/arm64, one digest).