- TypeScript 78.9%
- Go 16.5%
- Rust 2.1%
- Shell 0.8%
- Go Template 0.7%
- Other 0.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
ci / frontend-tests (push) Successful in 57s
ci / backend-tests (push) Successful in 2m27s
ci / build-1 (push) Successful in 1m33s
ci / frontend-docker (push) Successful in 0s
ci / build (push) Successful in 4m37s
ci / backend-docker (push) Successful in 0s
ci / build-2 (push) Successful in 31s
ci / chart (push) Successful in 0s
ci / aur-src (push) Successful in 5m11s
ci / app-windows (push) Successful in 8m52s
ci / app-linux (push) Successful in 12m45s
ci / server-binary (amd64, windows) (push) Successful in 26m33s
ci / server-binary (amd64, linux) (push) Successful in 27m3s
ci / server-binary (arm64, linux) (push) Successful in 27m23s
ci / app-android (push) Successful in 10m58s
ci / publish-to-google-play (push) Has been skipped
ci / release (push) Has been skipped
ci / aur-bin (push) Has been skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
| .forgejo/workflows | ||
| backend | ||
| container | ||
| docs | ||
| fastlane | ||
| frontend | ||
| helm | ||
| packaging | ||
| .env.example | ||
| .gitignore | ||
| CLAUDE.md | ||
| compose.yaml | ||
| Dockerfile.backend | ||
| Dockerfile.frontend | ||
| Gemfile | ||
| LICENSE | ||
| README.md | ||
| renovate.json | ||
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 |
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+Tabmove between cells (and add a row after the last one),Entermoves down, and every move re-aligns the columns to their widest cell (Ctrl+Alt+Taligns 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) andany:1to 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+Pquick switcher,Ctrl+Shift+Pcommand palette,[[wiki links]]with autocompletion, a linked notes (backlinks) list, a per-note outline of headings, andCtrl+Nfor a new note. - Writing helpers: auto-pairing of brackets and quotes, find & replace (
Ctrl+F),Ctrl+Enterto 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] Titlein 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 $6stay text); in PDFs they appear as text. Callouts and formulas work in the preview, the PDF export and public links. - Inline and nested tags: type
#ideaor#work/projectsin a note and it becomes a tag of that note (#offers existing tags). Nested tags show indented in the sidebar, and a parent tag also lists the notes of its sub-tags. - Note embeds:
![[Note title]]shows that note's text inline (as a quote under a link to it, up to 3 levels, cycles stop). Encrypted notes and public links are not expanded. - Change the encryption password (Settings → Encryption): the master key is re-wrapped under the new password, so no note is re-encrypted. The old password stops working for unlocking; devices that are already unlocked keep working until they lock.
- AI assistant (Settings → AI assistant): connect any OpenAI-compatible endpoint (base URL, key and model are kept on the device only). The palette then offers ask your notes (answers into a new note with links to the notes it used), summarize this note, continue writing and improve selected text. Note text is sent to your endpoint only when you run one of these; locked encrypted notes never are. The nginx image's CSP has
connect-src 'self', so the web build can only reach an endpoint on the same origin until you widen it; the desktop app has no such limit. - Table of contents and footnotes: a line
[TOC]becomes a linked outline of the note's headings (every heading gets an anchor);[^id]references with[^id]: textdefinitions become numbered links and a notes list at the end. - Properties: a
---block ofkey: valuelines at the top of a note (status: open,due: 2026-12-01,done: false). The preview shows it as a table, the note list shows the first two values as chips, and the sliders button in the toolbar adds, changes or removes a property. Stored in the note text, so it syncs, exports and stays encrypted. - Quick capture:
/new?title=&body=&url=(also the PWA share target) saves into a notebook called Inbox, created on first use; plain/newopens an empty note. - 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]]/:/idlinks 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,Ffor full screen,Escto 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. The Android app and the Linux and Windows desktop apps also schedule them with the operating system, so they arrive while the app is closed; in the browser they fire while it is open (no server push, no email). Details and limits: docs/reminders.md.
- Several notes at once:
Ctrl/Cmd+click andShift+click (a range) in the note list, or Select and then tap. Move them to a notebook (or drag the selection onto one), add or remove a tag, export them as Markdown ZIP or JEX, or move them to the trash;Escdrops the selection. Notes an action may not touch (read-only, shared with you, locked) are skipped and counted. - 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 from the palette with{{date}},{{time}},{{datetime}}, formats like{{date:YYYY-MM-DD HH:mm}},{{title}}and{{uuid}}). - 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). - Automatic backups (Settings → Export): daily or weekly, the same Markdown ZIP or JEX is written to a folder (desktop app, and browsers with the File System Access API) or to an existing WebDAV folder, keeping the newest N. One way only, per account and device, and only while the app is open. The files are not encrypted; the trash and password-locked notebooks and notes are left out. A backup with attachments that could not be loaded is marked
-incomplete, and the newest complete one is never removed. Old backups in the target are deleted, so use one folder per account and device. In the web app WebDAV needs CORS on that server and a wider CSP (connect-src); the desktop and Android apps send the requests natively. In a browser you may have to confirm the folder permission again with Back up now after a restart. - Export: a note as PDF, Markdown, self-contained HTML (attachments inlined) or through the print dialog.
- Kanban boards (as in Joplin's Kanban plugin): a note with a
```kanbanblock is a board (notebook menu → New kanban board…; opening such a note shows it). Cards are the notes of one notebook and its sub-notebooks (by default the board note's own, or pick another in the board header, stored asfilters.rootNotebookPath), and a column is a status tag: dragging a card, or its Move to… menu, swaps the tag. Columns supporttag,tags,alltags,notebookPath,completedandbacklog: true;sort.bytakestitleorcreatedTime. The card table Joplin appends below the block is neither read nor updated. Several cards move together: Ctrl/Cmd/Shift-click them, or press Select and tap them, then drag one of them or use Move all to…. A notebook can still be shown as a board of its sub-notebooks (Show sub-notebooks as board). - 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/totalin 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-clickin 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. Emoji (monochrome) and Chinese, Japanese and Korean text use Noto fonts that ship with the app and are loaded only when a note needs them (regular weight only). Other scripts the fonts cannot draw are listed before the export; text inside diagrams and drawings is not covered.
- Diagrams, graphs and mind maps:
```mermaidblocks 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.
- Adjustable layout: drag the right edge of the notebook list or the note list to resize it (arrow keys work too, double-click resets); widths are remembered per device.
Ctrl/Cmd+Ssyncs instead of opening the browser's Save page dialog, and as in a native app only content, fields and things worth copying can be selected, not the interface's labels. - Joplin UI layout: notebooks (nested) | note list | editor, tags, to-dos, pinned notes (on top in every sort order, also Manual; search results are ordered by relevance), search, trash, drag a note onto a notebook to move it. Notebooks can be nested later too: Move to notebook in their menu (right-click or long-press), or drag one onto another with a mouse (onto the Notebooks heading for the top level).
- Modern look: light and dark theme (follows the system, one-click toggle in the sidebar), responsive down to phones.
- Database views (notebook menu → Show as database): a notebook as a sortable table (properties are columns, edit them in place), a gallery of cards, or a calendar by a date property or the creation date. Shared notes are read-only there.
- Flashcards (sidebar): write
Question:: Answer, or??on its own line between a question and its answer, then review what is due (Again / Hard / Good / Easy, simplified SM-2). The schedule syncs in the note's metadata, which is not end-to-end encrypted (review dates and a short hash per question). - Calendar of daily notes (sidebar): see which days have a note; a day opens or creates it.
- Canvas (notebook menu → New canvas): text cards, note cards and arrows on a free surface, stored as JSON Canvas in a
```canvasblock of the note, so it syncs and is encrypted like any note. - Search inside PDFs and images (Settings → Appearance, off by default, per device): PDF text and OCR (English and German, tesseract.js, shipped with the app) are added to the normal search. The index stays on the device; attachments of locked notebooks are never indexed. Scanned PDFs without a text layer are not read. This needs
'wasm-unsafe-eval'in the Content-Security-Policy. - Templates: notes in a notebook called
Templatescan be inserted from the/menu or the command palette.{{title}},{{uuid}},{{date}},{{time}},{{date:YYYY-MM-DD}}are filled in and{{cursor}}marks where the caret lands. - 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.
- No syncing with incompatible clients: every client names its sync protocol (
?sync=N); after a breaking change the server answers older ones with426 client_outdated. The app then pauses syncing, says so, and keeps unsent changes until it is updated. (For developers: raiseSYNC_VERSIONinfrontend/src/lib/api.tstogether withMinSyncVersioninbackend/api/syncversion.go.) - API docs: Swagger UI at
/api/v1/docs(served from the binary, no internet needed). Generated with swag from handler annotations: rungo generateinbackend/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 labelled by name (public-link visitors are Guest).
- Comments on shared notes (annotations panel): everyone with access, also read-only, can comment; authors and the note's owner can delete. They need a connection, are stored unencrypted, and are removed when the note is deleted or encrypted again. Public-link visitors have no comments. Annotations stay private.
- Public link: read-only or editable, no account needed (
- MCP server in the desktop app: lets AI assistants (Claude Code, Claude Desktop, …) search and read your notes, including images and other attachments, see below.
- Import from other apps (Settings → Import): Obsidian vaults, Notion Markdown exports, Evernote
.enex, Google Keep Takeout and the Vikunja data export (tasks become to-dos, a kanban view becomes a board note with status tags), parsed in the browser. Before anything is written, you tick the notebooks and notes to import (Vikunja: projects and tasks), for every source including Joplin; only the attachments and tags they use come along. Ids are derived from the paths (Vikunja: from its ids), 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.
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.
Moving attachments between disk and S3
Attachments live in DATA_DIR, or in the bucket when S3_BUCKET is set (they are never in the database). To switch, run the migration with both backends configured, then change the setting and restart:
# disk -> S3: set S3_* and keep DATA_DIR pointing at the old files
notes-server migrate-blobs fs s3 --dry-run # report only
notes-server migrate-blobs fs s3 # copy (re-run to resume; blobs already there are skipped)
notes-server migrate-blobs fs s3 --delete # copy and remove each source file after the copy was verified
# S3 -> disk
notes-server migrate-blobs s3 fs
Stop the server (or accept that uploads during the run are missed) while migrating, and switch S3_BUCKET only after it reports success. The same command works in a Kubernetes pod with kubectl exec.
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 are rolled out to production automatically, pre-release tags (v1.2.0-rc1) land on internal. 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:
-
Security level (chosen when enabling encryption, stored with the key, so every device uses it automatically):
Level Cipher Password hashing Standard (default) AES-256-GCM PBKDF2-SHA256, 310,000 rounds Fast, less secure AES-128-GCM PBKDF2-SHA256, 100,000 rounds Hardened AES-256-GCM Argon2id, 64 MiB, 3 passes Hardened, ChaCha XChaCha20-Poly1305 Argon2id, 64 MiB, 3 passes Existing keys keep working as Standard. The level cannot be changed afterwards (it would mean re-encrypting everything); changing the password keeps it. Post-quantum: the notes are protected by a symmetric 256-bit key, which a quantum computer only weakens to about 128 bits, so the 256-bit levels keep a safe margin. There is no public-key step in this scheme, so a post-quantum key exchange (ML-KEM) has nothing to protect until encrypted sharing between users exists; Fast (128-bit) is the one level without that margin.
-
The cipher is AES-256-GCM by default (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) 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 | |
|---|---|
get_item, list_notebooks, list_tags, list_notes, search_notes, get_note, list_attachments, get_attachment |
always available (read-only) |
create_note, update_note, add_tag, trash_note, add_attachment |
only with Allow changes; nothing can permanently delete |
Referencing things: every note, notebook, tag, attachment and saved search has a stable 32-character id, the same on all devices. Copy it with Copy ID in its right-click / long-press menu (attachments: it is in the note's :/<id> link), paste it into your assistant, and get_item tells it what that is. Ids can be given bare, as :/<id> or as a whole Markdown link.
Attachments: get_attachment returns pictures and drawings as images (SVG and large pictures are converted and scaled down), PDFs as text or, with page, one page as a picture, text files as text, and audio or other files up to 3.5 MB as binary. Only attachments that a note available to MCP embeds or links to can be read, so those of encrypted or password-locked notes stay hidden. add_attachment takes the file as base64 (up to 10 MB), never a path on your disk, and adds it to the end of a note.
Security: loopback only, bearer token (regenerate any time), Host check and any browser Origin is rejected (DNS-rebinding/CSRF), 15 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, WebDAV/other sync targets.
