No description
  • TypeScript 69.3%
  • Go 25.6%
  • Rust 1.4%
  • Shell 1.4%
  • Go Template 1.3%
  • Other 0.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jonas Leder bbc1523b7a
All checks were successful
ci / backend-tests (push) Successful in 1m39s
ci / frontend-tests (push) Successful in 49s
ci / build-1 (push) Successful in 43s
ci / frontend-docker (push) Successful in 0s
ci / aur-src (push) Successful in 18s
ci / server-binary (amd64, windows) (push) Successful in 1m58s
ci / server-binary (arm64, linux) (push) Successful in 2m13s
ci / app-windows (push) Successful in 3m40s
ci / app-linux (push) Successful in 4m52s
ci / build (push) Successful in 2m17s
ci / backend-docker (push) Successful in 0s
ci / chart (push) Successful in 0s
ci / server-binary (amd64, linux) (push) Successful in 2m17s
ci / app-android (push) Successful in 7m4s
ci / publish-to-google-play (push) Has been skipped
ci / release (push) Has been skipped
ci / aur-bin (push) Has been skipped
ci / build-2 (push) Successful in 14s
ci(android): edge-to-edge for Android 15 (enableEdgeToEdge, inset padding, newer androidx/Material)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qu4xuNG6QJ9YvCSqazveDg
2026-11-24 12:23:14 +00:00
.forgejo/workflows ci(android): edge-to-edge for Android 15 (enableEdgeToEdge, inset padding, newer androidx/Material) 2026-11-24 12:23:14 +00:00
backend Merge pull request 'Advanced search: operators, ranking, snippets, saved searches' (#20) from feat/2-advanced-search into master 2026-11-24 10:31:51 +00:00
container feat: Tauri shell, Docker images, Helm chart and Forgejo pipeline 2026-11-23 16:04:00 +00:00
docs/screenshots feat(app): callout line break, graph layout fit, README and screenshots for the new features 2026-11-24 11:24:40 +00:00
fastlane play listing: open-source focus and link to the repository 2026-11-24 12:20:30 +00:00
frontend feat(editor): syntax highlighting of fenced code blocks, light and dark 2026-11-24 11:27:36 +00:00
helm chore(deps): update mariadb docker tag to v28.1.8 2026-11-24 10:34:12 +00:00
packaging ci(android): edge-to-edge for Android 15 (enableEdgeToEdge, inset padding, newer androidx/Material) 2026-11-24 12:23:14 +00:00
.env.example feat: Tauri shell, Docker images, Helm chart and Forgejo pipeline 2026-11-23 16:04:00 +00:00
.gitignore feat: Tauri shell, Docker images, Helm chart and Forgejo pipeline 2026-11-23 16:04:00 +00:00
compose.yaml feat: Tauri shell, Docker images, Helm chart and Forgejo pipeline 2026-11-23 16:04:00 +00:00
Dockerfile.backend feat: Tauri shell, Docker images, Helm chart and Forgejo pipeline 2026-11-23 16:04:00 +00:00
Dockerfile.frontend chore(deps): update cgr.dev/chainguard/nginx docker digest to 89bea6e 2026-11-24 10:34:10 +00:00
Gemfile ci: signed Android release build and Google Play upload on tags (fastlane supply) 2026-11-24 08:53:21 +00:00
LICENSE add aur package 2026-11-23 20:52:51 +01:00
README.md feat(editor): syntax highlighting of fenced code blocks, light and dark 2026-11-24 11:27:36 +00:00
renovate.json chore: add renovate config based on sfp-tool 2026-11-23 16:14:23 +00:00

Notes

A self-hosted, modern take on Joplin: Markdown notes in notebooks with tags, to-dos and attachments, synced between all your devices through your own server, optionally end-to-end encrypted, with public share links and live collaboration (with other users or anonymous guests).

Platform How
Web static React app (nginx image) or embedded in the Go binary
Desktop (Windows, Linux) Tauri 2 app, same React code
Android Tauri 2 mobile (APK)
Server Go (Gin, GORM, gormigrate, logrus), SQLite / MariaDB / PostgreSQL

Main window

Kanban board, cards are notes in different notebooks Trash with restore and delete forever

Mind map of a note Pen drawing canvas

Annotations Note in its own window

Callouts and formulas in the preview Slash menu for blocks

Link graph of all notes Presentation mode

Table editing with coloured columns Quick switcher

Dark mode Live collaboration

Features

  • Joplin-style editor: CodeMirror 6 Markdown editor with Joplin's editor / split / viewer layouts, toolbar, shortcuts (Ctrl+B, Ctrl+I, Ctrl+K), task lists, syntax highlighting of fenced code in the editor and the preview (languages are loaded on demand, colours follow the light/dark theme), tables, paste/drop of images and files.
  • Tables that are pleasant to edit: Tab / Shift+Tab move between cells (and add a row after the last one), Enter moves down, and every move re-aligns the columns to their widest cell (Ctrl+Alt+T aligns on demand, wide CJK characters are measured correctly). Each column gets its own colour in the editor and in the preview, with tinted headers, zebra rows and row highlighting; preview columns size to their content. A toolbar button inserts a table.
  • Context menus: right click (or long press on touch) on a note for open, open in new window, pin, mark done, convert to-do/note, move to notebook, duplicate, copy note link, share, export (Markdown/HTML/PDF/print) and trash; on a notebook for new note/to-do/sub-notebook, open as board, rename, icon, share and trash; on a tag to show, rename or delete it; on Trash to empty it; on a trashed entry to restore or delete permanently; and in the editor for cut/copy/paste/select all, formatting, table and annotation. Menus stay inside the window, open submenus, and work with the keyboard (arrows, Enter, Escape).
  • Version history: the History button in a note's toolbar lists earlier versions (kept automatically while you edit), shows what changed compared to the current text, and restores any of them. A restore keeps the text it replaces as a new version, so it can be undone. Encrypted notes keep encrypted versions and are decrypted on your device; the owner and collaborators with edit access can use the history.
  • Advanced search: operators in the search box: "exact phrase", -excluded, title: body:, tag:work, notebook:"Project X" (with * wildcards, sub-notebooks included), type:todo, iscompleted:0, created:20260101, updated:-7d (-2w, -3m, -1y) and any:1 to match any term. Results are ranked (title hits first), show the passage around the match with the hit highlighted, and a query can be saved (bookmark button) to the sidebar; saved searches sync like notes and are end-to-end encrypted with them. Search runs on the device over the decrypted notes, so it also works offline and with encryption.
  • Navigation: Ctrl+P quick switcher, Ctrl+Shift+P command palette, [[wiki links]] with autocompletion, a linked notes (backlinks) list, a per-note outline of headings, and Ctrl+N for a new note.
  • Writing helpers: auto-pairing of brackets and quotes, find & replace (Ctrl+F), Ctrl+Enter to toggle a checklist item, Alt+↑/↓ to move lines, pasting a URL over selected text makes a link, spell checking, a word / character / reading-time bar, and a focus mode (Ctrl+Shift+F).
  • Writing blocks: type / at the start of a line for a block menu (headings, to-do/bullet/numbered lists, quote, callouts > [!tip] Title in note/tip/warning styles, code block, table, divider, math, mermaid diagram, link, date and time). Formulas use LaTeX in $a^2$ and $$ … $$ (KaTeX, loaded only when a note has a formula; prices like $5 and $6 stay text); in PDFs they appear as text. Callouts and formulas work in the preview, the PDF export and public links.
  • Daily notes: the calendar button next to New to-do (or the palette: Open today's daily note, previous / next day) opens today's note in a notebook called Journal, titled 2026-11-24, creating both on first use.
  • Recurring to-dos: pick Every day / weekday / week / 2 weeks / month / year next to a to-do's due date. Finishing it reopens it with the next due date (and the reminder shifted by the same amount); a task done late jumps to the next date in the future, and "every month" on the 31st comes back as the 31st after a short month.
  • Link graph: the Graph entry in the sidebar draws all notes and the [[wiki]] / :/id links between them (node size = number of links, colour = notebook); hover to highlight neighbours, click to open, scroll to zoom and drag to pan, optionally only around the open note.
  • Presentation mode: the Present button turns a note into full-screen slides, split by --- lines (or before each # / ## heading when there are none). Arrow keys, space or click to move, F for full screen, Esc to leave; images, formulas and diagrams render in the slides.
  • Reading and writing comfort (Settings → Appearance): editor font (mono / sans / serif), editor and preview text size, line spacing and text width (full / readable 78 / narrow 62 characters), stored per device. Ctrl+/ lists all keyboard shortcuts.
  • Reminders and a Today view: give a to-do a reminder time (the bell next to the due date). When it comes due you get a notification (native in the desktop app, browser notification in the web app) and an in-app banner with 10 min / 1 h / Tomorrow snooze, done and open. The Today view in the sidebar lists open to-dos that are due today or overdue. Reminders are stored in the note, so they sync; each device watches the clock itself, which works offline and with end-to-end encryption. Reminders fire while the app is open (no server push, no email).
  • Notes organisation: sort by updated / created / title, checklist progress (2/5) in the list, to-do due dates with overdue highlighting, and templates (notes in a notebook called Templates can be inserted with {{date}}, {{time}}, {{datetime}}).
  • Export everything (Settings → Export): all notes as a ZIP of Markdown files (notebook folders, front matter with tags/dates/to-do state, attachments in _resources/) or as a JEX archive that Joplin and this app can import. Built on the device, so it works offline and with end-to-end encryption (the files are plain text).
  • Export: a note as PDF, Markdown, self-contained HTML (attachments inlined) or through the print dialog.
  • Kanban boards: open any notebook as a board (like Joplin's Kanban plugin). Its sub-notebooks are the columns and every card is a real note in that column's notebook, so dragging a card (or using its Move to… menu on touch screens) moves the note between notebooks. Cards show tags, due dates and checklist progress; columns can be renamed, reordered and given an emoji.
  • Notebook emojis: give a notebook an icon (picker or paste any emoji) to recognise it at a glance in the sidebar, boards and list headings.
  • Checklist progress: every note with checkboxes shows a progress bar and done/total in the note list, on boards and in the status bar.
  • Proper trash: deleted notes and notebooks go to a trash view with restore and delete forever, show when they were deleted and how many days are left, and are purged automatically after a retention period you choose (7 / 30 / 90 days or never). Trashed notes open read-only with a restore banner.
  • Standalone mode: the app runs without any server ("Use without a server" on the sign-in screen). Notes stay on the device; connect a server later under Settings and they are uploaded to the account.
  • Live sync by push: the server pushes every change over the websocket to your other online devices and to people the item is shared with, so edits appear within a second without refreshing; offline devices catch up with a delta pull when they reconnect. A green dot in the sidebar shows the live connection.
  • Pop-out windows: open a note in its own window (button, Double-click in the list, or the palette) and dock it back later. Windows stay in sync with each other instantly, in the web app and the desktop app.
  • Annotations: add private comments to a whole note or to a selected passage (Ctrl+Alt+M). Passages are highlighted in the editor and the preview, comments can be edited and resolved, survive editing around them, and are included at the end of PDF exports.
  • Real PDF export: a text-based PDF (selectable and searchable text, headings, lists, task lists, quotes, code, tables with auto-sized colourful columns, images, drawings, diagrams, page numbers and annotations), not a screenshot or print dialog. The built-in font does not cover emoji or CJK characters, which are left out.
  • Diagrams, graphs and mind maps: ```mermaid blocks render flowcharts / graphs, mind maps, sequence, Gantt, class, state and pie diagrams in the preview and in PDFs; the toolbar inserts ready-made templates. A mind map view turns the note's headings and nested lists into an interactive map (pan, zoom, fold branches, click to jump to the text, export SVG/PNG).
  • Drawing with pen support: the Draw button opens a canvas built on Pointer Events with pressure-sensitive strokes (Apple Pencil, Surface Pen, Wacom), highlighter, stroke eraser (also the pen's eraser end), colours, undo/redo, zoom and paper styles. With a pen detected, fingers pan and pinch instead of drawing (palm rejection). Drawings are saved as editable SVG attachments: click one in the preview to edit it again.
  • Joplin UI layout: notebooks (nested) | note list | editor, tags, to-dos, pinned notes, search, trash, drag a note onto a notebook to move it.
  • Modern look: light and dark theme (follows the system, one-click toggle in the sidebar), responsive down to phones.
  • Offline first: everything lives in IndexedDB; edits are queued and pushed when online. Conflicts create a (conflict) copy instead of losing text.
  • Sync server with delta sync by cursor, tombstones for deletes, and a websocket that tells every other device to pull immediately.
  • API docs: Swagger UI at /api/v1/docs (served from the binary, no internet needed). Generated with swag from handler annotations: run go generate in backend/ after changing an endpoint.
  • End-to-end encryption (Settings → Encryption) and attachments (see below).
  • Sharing
    • Public link: read-only or editable, no account needed (/s/<token>), revocable.
    • With other users: share a note or a whole notebook by email, with can view / can edit.
    • Live collaboration over a websocket for both: edits merge as a CRDT (Yjs), with remote cursors.
  • MCP server in the desktop app: lets AI assistants (Claude Code, Claude Desktop, …) search and read your notes, see below.
  • Import from other apps (Settings → Import): Obsidian vaults, Notion Markdown exports, Evernote .enex and Google Keep Takeout, parsed in the browser with a preview ("123 notes, 14 notebooks, 40 attachments") before anything is written. Ids are derived from the paths, so importing the same export twice does not duplicate.
  • Import from Joplin: JEX archives, raw export folders, Markdown files, or straight from a running Joplin through its Data API. Ids and timestamps are preserved, so importing twice does not duplicate.

Sharing dialog Public link guest view

Joplin import Encryption settings

Mobile list Mobile editor

Quick start

# single binary / container: API + UI on :8080, SQLite in ./data
docker compose up --build            # REGISTRATION_ENABLED=true in compose.yaml, open http://localhost:8080 (API) or :8081 (web UI)

From source:

cd backend && cp .env.example .env && go run -tags embed_frontend .   # after: cd ../frontend && pnpm install && pnpm build && cp -r dist/. ../backend/api/web/
cd frontend && pnpm install && pnpm dev                               # UI on :5173, proxies /api to :8080

Create your account on the login screen (set REGISTRATION_ENABLED=true temporarily), then turn registration off again.

Backup and restore

notes-server backup /backups          # writes /backups/notes-backup-<time>.tar.gz (every table + attachments on disk)
notes-server migrate                  # on the new, empty database
notes-server restore /backups/notes-backup-<time>.tar.gz   # refuses a database that already has users

Sessions are not part of the archive, so everyone signs in again after a restore. Attachments stored in S3 are not included: use the bucket's versioning or replication. With the Helm chart set backup.enabled=true for a nightly CronJob (MariaDB/PostgreSQL only; see backup.* in values.yaml).

Accounts

Users manage themselves under Settings -> Account: display name, change password (signs the other devices out), the list of signed-in devices (browser, IP, last use) with sign out per device or everywhere else, and delete account (removes notes, attachments, shares and sessions after confirming with the password, or the email address for single sign-on accounts). Operators without UI access can use the CLI; the password comes from $NOTES_PASSWORD or the first line of stdin:

notes-server user list
echo 'a-long-password' | notes-server user create alice@example.com "Alice"
echo 'a-new-password'  | notes-server user set-password alice@example.com   # signs every session out
notes-server user delete alice@example.com

Attachment cleanup

Attachments are removed from disk/S3 as soon as their resource is deleted. notes-server gc (add --dry-run to only report) deletes attachments that no resource points to, e.g. leftovers from before this existed, and records the size of existing attachments so storage usage and quotas are accurate; run it once after upgrading. With the Helm chart gc.enabled=true runs it weekly.

Server configuration

Read from the environment; a .env file is loaded automatically (godotenv/autoload).

Variable Default
PORT 8080
DB_DRIVER sqlite sqlite, mysql or postgres
DB_HOST DB_PORT DB_USER DB_PASSWORD DB_NAME database connection (sqlite: file name inside DATA_DIR)
DATA_DIR ./data attachment blobs (and the SQLite file)
S3_BUCKET store attachments in this S3 bucket instead of DATA_DIR (AWS, MinIO, R2, …). Existing local attachments are not moved
S3_ENDPOINT S3_REGION S3_PREFIX s3.amazonaws.com endpoint as host[:port], region, optional key prefix
S3_ACCESS_KEY S3_SECRET_KEY static credentials; empty uses AWS_* env vars or the instance role
S3_USE_SSL true set false for plain-http endpoints like a local MinIO
REGISTRATION_ENABLED false allow self-registration
EXECUTE_MIGRATIONS true run gormigrate migrations at start; notes-server migrate runs them and exits
MAX_UPLOAD_MB 200 attachment size limit
NOTE_HISTORY NOTE_HISTORY_INTERVAL_MIN NOTE_HISTORY_DAYS NOTE_HISTORY_MAX true 10 90 100 note version history: at most one snapshot per note every N minutes of editing (one minute for live-collaboration saves), versions older than N days (0 = keep) or beyond N per note (0 = unlimited) are dropped; a purged note loses its history
USER_QUOTA_MB 0 attachment storage limit per user in MB (0 = unlimited); uploads over it answer 413 quota_exceeded. Usage shows in Settings and in GET /auth/me
SESSION_DAYS 90 login token lifetime
METRICS_ENABLED METRICS_PORT false 9090 serve Prometheus metrics at :<METRICS_PORT>/metrics on a separate port (not reachable through the API port or the ingress): HTTP requests and latency by route template, websocket connections, published events and Redis failures, items written, delta sizes, attachment bytes and storage errors, logins by method/result, rate-limit hits, DB pool stats, Go/process/build info
METRICS_ENABLED METRICS_PORT false 9090 serve Prometheus metrics at :<METRICS_PORT>/metrics on a separate port (not reachable through the API port or the ingress): HTTP requests and latency by route template, websocket connections, published events and Redis failures, items written, delta sizes, attachment bytes and storage errors, logins by method/result, rate-limit hits, DB pool stats, Go/process/build info
BACKUP_KEEP 0 number of newest archives notes-server backup keeps (0 = all)
ALLOWED_ORIGINS any CORS origins (auth is a bearer token, no cookies)
REDIS_URL redis://host:6379. Needed to run several replicas: shares live-sync/collaboration events and the login rate limit. Replicas also need S3 attachments and a MariaDB/PostgreSQL database
OIDC_ISSUER OIDC_CLIENT_ID OIDC_CLIENT_SECRET enable OIDC single sign-on (authorization code + PKCE); needs OIDC_REDIRECT_URL = https://<host>/api/v1/auth/oidc/callback registered at the provider
PASSWORD_LOGIN_ENABLED true false hides the password form and refuses /auth/login and /auth/register, so OIDC is the only way in
OIDC_SCOPES extra scopes to request besides openid profile email, comma separated
OIDC_GROUPS_CLAIM OIDC_ALLOWED_GROUPS groups only members of one of the allowed groups (read from the ID token claim) may sign in; empty = no group check
OIDC_ALLOWED_EMAIL_DOMAINS only these email domains may sign in
OIDC_NAME Single sign-on label of the sign-in button
OIDC_AUTO_REGISTER true create accounts on first OIDC login even when REGISTRATION_ENABLED=false; existing accounts are linked by verified email. Works with several replicas (login state is kept in the database)

Deployment

Docker

Dockerfile.backend builds a static Go binary into a rootless scratch image (no shell, non-root user); Dockerfile.frontend serves the UI from a rootless nginx image with a strict CSP. Both follow the conventions of filamentmanagement. Run them with a read-only root filesystem, all capabilities dropped and a writable volume at /data (see compose.yaml).

Helm

helm install notes oci://forgejo.jonasled.dev/jonasled/notes/charts/notes \
  --set ingress.enabled=true --set 'ingress.hosts[0].host=notes.example.com' \
  --set registration.enabled=true

The chart deploys backend + frontend, a PVC for attachments, an optional MariaDB subchart (or an external MariaDB/PostgreSQL/SQLite), and runs migrations in a Helm hook Job. Pods run with the minimum permissions: non-root, readOnlyRootFilesystem, allowPrivilegeEscalation: false, all capabilities dropped, RuntimeDefault seccomp, no service-account token. Route /api (including the websocket, so raise the ingress read timeout) to the backend service; everything else goes to the frontend. By default it runs as a single replica. For more (replicaCountBackend) enable Redis (redis.enabled=true, or redis.url) and use S3 attachments (s3.bucket) and MariaDB/PostgreSQL; the chart refuses to render otherwise.

CI (Forgejo)

.forgejo/workflows/ci.yml runs Go and frontend tests, builds and pushes both images and the chart (shared infra/ci-snippets workflows), and builds the server binaries, the Linux (deb, AppImage, rpm) and Windows (NSIS) desktop apps and the Android APK as artifacts. Tags additionally build a signed release APK/AAB and upload the AAB to Google Play (see below).

Releases and AUR

Push a tag vX.Y.Z and the pipeline does the rest: it stamps the version into the app manifests, builds everything, and the release job publishes a Forgejo release with the Linux binary, deb, rpm, AppImage, the Windows installer, the Android APK, the server binaries for Linux (amd64/arm64) and Windows, a SHA256SUMS file and a changelog of the commits since the previous tag. Tags with a suffix (v1.2.0-rc1) are marked as pre-releases and are not sent to the AUR. The release job uses the job token; add a RELEASE_TOKEN secret (a personal access token with repository write access) if your Forgejo rejects that.

Google Play

Tags also build the Android app as a signed release (APK and AAB) and the publish-to-google-play job uploads the AAB with fastlane supply (fastlane/, Gemfile). Stable tags land on the beta track, pre-release tags (v1.2.0-rc1) on internal; promote from there in the Play Console. Secrets:

Secret Content
ANDROID_KEY_BASE64 the upload keystore (.jks), base64 encoded
ANDROID_KEY_ALIAS ANDROID_KEY_PASSWORD key alias, and the password (store and key password must be the same)
GOOGLEPLAY_SERVICEACCOUNT the Play Console service account JSON key, base64 encoded; the account needs release permission for de.jonasled.notes

The app and its first release must be created in the Play Console by hand once (Google does not allow that through the API). The version code is the pipeline run number, so it only ever grows. The job pushes the whole store listing as well, from fastlane/metadata/android/en-US/: title.txt, short_description.txt, full_description.txt, changelogs/ (default.txt, plus a <versionCode>.txt the job writes from the commits since the previous tag), and images/ (icon.png 512×512, featureGraphic.png 1024×500, phoneScreenshots/; add sevenInchScreenshots/ and tenInchScreenshots/ the same way). Edit those files and the next tag updates the listing; bundle exec fastlane listing (with the service account key at google-play-key.json) updates only the listing without a build. Play limits: title 30, short description 80, full description 4000 characters; screenshots at most 2:1.

Two Arch User Repository packages are published from packaging/aur/ by the aur-bin and aur-src jobs (secrets AUR_SSH_KEY, GIT_USER_NAME, GIT_USER_MAIL):

Package What it installs Published
notes-bin the prebuilt release binary after every stable release (version and checksums are filled in by updpkgsums)
notes-src builds the desktop app from the latest master on your machine (pkgver() comes from git) when its PKGBUILD changes on master
yay -S notes-bin     # or notes-src

The two packages conflict with each other. Add the public key of AUR_SSH_KEY to your AUR account before the first run; the AUR creates a package on its first push.

Apps (Tauri)

cd frontend
pnpm install
pnpm tauri dev                   # desktop
pnpm tauri build                 # Linux/Windows installers
pnpm tauri android init && pnpm tauri android build --apk   # needs the Android SDK/NDK

The apps are the same React code in a webview; enter your server URL on the login screen. Use an HTTPS server for Android.

How it works

Sync

Everything is an item (folder, note, tag, note_tag, resource, master_key) with a client generated 32-hex id (the same shape as Joplin's). The server stamps every write with a monotonic seq. Clients push dirty items (PUT /api/v1/items/:id with base_seq; a stale write returns 409), then pull GET /api/v1/sync/delta?since=<cursor>. The websocket (/api/v1/ws) pushes each changed item (item messages, never back to the writing client) so online devices update instantly; changed pings after share changes and the delta pull on every reconnect keep everything convergent.

Encryption

Modelled on Joplin's design: a random master key encrypts all titles, bodies and attachments on the device; the master key is stored on the server wrapped with a key derived from your encryption password (PBKDF2-SHA256, 310k iterations). The server only stores ciphertext. Other devices unlock with the same password (Settings → Encryption).

Differences you should know about:

  • The cipher is AES-256-GCM (Web Crypto has no CCM), so the format is not byte-compatible with Joplin's own sync targets. Import from Joplin works on decrypted exports.
  • Item metadata (ids, notebook structure, timestamps, to-do state, MIME type and size of attachments) is not encrypted.
  • Shared items are stored unencrypted, otherwise the server could not serve public links or let other users read them. Sharing a note/notebook decrypts it (and the attachments it embeds) first; the dialog warns about this.
  • Losing the encryption password means losing encrypted notes; there is no recovery.

Attachments

Pasting, dropping or attaching a file stores it locally, creates a resource item and inserts ![name](:/id) / [name](:/id) like Joplin. The blob is uploaded to PUT /api/v1/resources/:id/blob (encrypted first when E2EE is on) and fetched lazily on other devices.

Collaboration

The server relays and stores opaque Yjs updates per note (join/update/snapshot/awareness messages) and never interprets the text. Every peer seeds an empty room from the same fixed-client-id operations, so simultaneous first joins merge into one copy. The merged Markdown is saved back to the note (debounced) so normal sync and search keep working. Permissions are re-checked on every update, so revoking a share takes effect immediately. Public links use the same protocol on /api/v1/public/:token/ws.

MCP server (desktop app)

Settings → AI (MCP) starts a Model Context Protocol server inside the Tauri app (streamable HTTP on http://127.0.0.1:41185/mcp). The Rust side handles the protocol and forwards tool calls to the webview, which holds the decrypted notes, so it also works with end-to-end encryption. It is off by default and only runs while the app is open.

claude mcp add --transport http notes http://127.0.0.1:41185/mcp --header "Authorization: Bearer <token from settings>"
Tool
list_notebooks, list_tags, list_notes, search_notes, get_note always available (read-only)
create_note, update_note, add_tag, trash_note only with Allow changes; nothing can permanently delete

Security: loopback only, bearer token (regenerate any time), Host check and any browser Origin is rejected (DNS-rebinding/CSRF), 1 MB request limit. Trashed and still-locked encrypted notes are never returned, and read-only shared notes cannot be modified. Everything an assistant reads is sent to that assistant, so connect only ones you trust.

Development

cd backend && go vet ./... && go test ./...      # sync, sharing, permissions, public links
cd frontend && pnpm test && pnpm build           # crypto, Joplin parser, Markdown sanitising

Screenshots are produced with Playwright against a locally running server.

Status and known limits

  • Verified here: Go tests, frontend unit tests and production build, and a Playwright run of sign-up, editing, public link, live guest-to-owner collaboration and the mobile layout against the embedded-frontend server.
  • iOS and Apple Pencil: the drawing canvas uses standard Pointer Events (pressure, pen eraser, palm rejection) and is exercised here with simulated pen input; it has not been tested with a physical Apple Pencil, and no iOS build exists yet (Tauri's iOS target needs a Mac).
  • Annotations are private to the person who wrote them (they are not shared with collaborators).
  • Not built or run in this environment (no Rust, Docker, Helm or Android SDK available): the Tauri desktop/Android builds (including the Rust MCP bridge and its unit tests; the JavaScript tool layer is tested), the Docker images and the Helm chart. They are written against the reference setup and the CI jobs are the first real test; expect small fixes (for example nginx scratch directories on a read-only filesystem, or Android SDK paths).
  • Not implemented: revision history, Joplin plugins, math (KaTeX) rendering, changing the encryption password, WebDAV/other sync targets.