frostnotes

module
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2026 License: MIT

README

Frostnotes icon

Frostnotes

CI

Plain markdown notes on your own computer.

Frostnotes is a desktop app for people who keep notes as plain markdown files, in the spirit of Obsidian. The notes stay in a folder you own; a daemon, notesd, indexes them, syncs them through a hub you host, and serves them to a web app and to agents.

Status: pre-release. The roadmap says what works and what comes next.

Documentation: docs/README.md

What it does

  • Your files are the notes. A note is a .md file with YAML frontmatter. notesd writes it byte for byte and keeps its own state out of the vault. ADR-0003
  • notesd owns your vaults. It watches the files, keeps a SQLite index (full text, links, backlinks, tags, properties), and never writes over an edit it has not seen. Vault design
  • Every write is a version. Each write, an agent's included, is kept for 30 days: notesctl versions PATH lists them and notesctl revert undoes one. Versions
  • Sync is built in. Each device syncs with a self-hosted hub, the same notesd in a hub role, which keeps every revision and merges concurrent edits. No conflict copies. Sync design
  • The desktop app is a native Go app on MyGo and frostui with live preview, drawn in frostui's Frostyard look, dark or light. It is a sibling of Frostmail. App design
  • The web app is a React UI with a CodeMirror 6 editor, served by lodge, frostyard's tailnet-only web shell, with Obsidian's phone layout on a narrow screen. notesd as a lodge app
  • Agents search, read and write notes through MCP: notesctl mcp locally, or lodge's /mcp/notes with a scoped token. MCP tools
  • Obsidian vaults open as they are: wikilinks, embeds, tags, callouts and properties. Markdown dialect
The trip note in live preview, in the Frostyard light theme
A book note in the reading view, in the Frostyard dark theme, with its outline in the right pane

The screenshots show a made-up vault (dev/screenshots/vault).

Install

Frostnotes is on the Frostyard Flatpak remote, with its own notesd inside. Add the remote and Flathub (for the runtime) once, for your user, then install Frostnotes and update it with flatpak update:

flatpak remote-add --user --if-not-exists frostyard https://frostyard.github.io/flatpak-index/frostyard.flatpakrepo
flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak install --user frostyard org.frostyard.Frostnotes

Other ways: each release has frostyard-notesd's .deb, which runs notesd and notesctl as lodge's notes app (notesd as a lodge app), and docs/development.md builds everything from source.

Remove

flatpak uninstall --user org.frostyard.Frostnotes

Your vaults stay: they are your folders. notesd's index, versions and sync state stay in ~/.var/app/org.frostyard.Frostnotes/ unless you add --delete-data. A device's sync token stays in the Secret Service, in an item labeled Frostnotes: ….

Problem records

notesd and the desktop app write their panics, and a few coded errors of notesd (a database that does not migrate, a write that does not reach the disk, a failed merge, a lost watch event, a sync protocol fault), to the local systemd journal. They send nothing over a network. A record holds the app ID (org.frostyard.Frostnotes), its release version, the runtime (Go or Rust), the part (daemon or gui), the class (panic or error), the error's code or the panic's frames or place in the source, and a message that can name a note's path and stays on your machine. A development build records nothing. Only chairlift can send a record off the machine, and only with your consent (ADR-0036). To see them:

journalctl MESSAGE_ID=8915bdd215c84cbab0c31c05a1a33e7e

Develop

mise install        # host: golangci-lint, svu and nfpm, pinned
make check          # host: generated files, vet, lint, unit tests
nsl create frostnotes --distro debian:13
nsl run -m frostnotes --root bash dev/nsl/provision.sh "$(id -un)"
make ci             # make verify, the race tests and the app checks (nsl)

docs/development.md covers the requirements, running notesd from source, and the app's dev loops. The architecture starts at docs/design/overview.md.

Where to go next

Directories

Path Synopsis
Package api is the notesd RPC contract: JSON-RPC 2.0 over a Unix socket or a WebSocket, specified in docs/specs/rpc-protocol.md.
Package api is the notesd RPC contract: JSON-RPC 2.0 over a Unix socket or a WebSocket, specified in docs/specs/rpc-protocol.md.
cmd
frostnotes command
Command frostnotes is the native desktop app (plan 0009): a window on MyGo and frostui over notesd's socket.
Command frostnotes is the native desktop app (plan 0009): a window on MyGo and frostui over notesd's socket.
notesctl command
Command notesctl is the command-line client for notesd: it speaks the same RPC API as the app (docs/specs/rpc-api.md).
Command notesctl is the command-line client for notesd: it speaks the same RPC API as the app (docs/specs/rpc-api.md).
notesd command
Command notesd is the frostnotes engine: a per-user daemon that owns vaults, the local store and the RPC socket the app and notesctl use (docs/design/overview.md).
Command notesd is the frostnotes engine: a per-user daemon that owns vaults, the local store and the RPC socket the app and notesctl use (docs/design/overview.md).
internal
blobhttp
Package blobhttp serves vault files' contents by their hash over HTTP (ADR-0023): GET and HEAD <prefix><sha256>.<ext>, with the content type the extension names, a policy that keeps the bytes passive, immutable caching and one Range per request (docs/specs/rpc-protocol.md, Transports).
Package blobhttp serves vault files' contents by their hash over HTTP (ADR-0023): GET and HEAD <prefix><sha256>.<ext>, with the content type the extension names, a policy that keeps the bytes passive, immutable caching and one Range per request (docs/specs/rpc-protocol.md, Transports).
blobs
Package blobs stores immutable file contents by SHA-256 under <dir>/<first two hex digits>/<id> (docs/design/vault.md).
Package blobs stores immutable file contents by SHA-256 under <dir>/<first two hex digits>/<id> (docs/design/vault.md).
blobxfer
Package blobxfer moves file contents between a device and its hub over HTTP, named by their SHA-256 (ADR-0018, docs/specs/sync-protocol.md#blobs): the hub's handler for /sync/blobs/{hash}, and the device's client.
Package blobxfer moves file contents between a device and its hub over HTTP, named by their SHA-256 (ADR-0018, docs/specs/sync-protocol.md#blobs): the hub's handler for /sync/blobs/{hash}, and the device's client.
config
Package config resolves where notesd keeps its files (docs/design/overview.md#operational-notes).
Package config resolves where notesd keeps its files (docs/design/overview.md#operational-notes).
dbustest
Package dbustest runs a private D-Bus daemon for tests of code that talks to session services (the Secret Service, notifications).
Package dbustest runs a private D-Bus daemon for tests of code that talks to session services (the Secret Service, notifications).
desktop/catalog
Package catalog is what the desktop app knows of a vault's files (docs/design/app.md#data): the files and folders from notesd, the notes' aliases and the tags, kept up to date from its events, with the link text and completions the editor asks for.
Package catalog is what the desktop app knows of a vault's files (docs/design/app.md#data): the files and folders from notesd, the notes' aliases and the tags, kept up to date from its events, with the link text and completions the editor asks for.
desktop/commands
Package commands is the desktop app's table of commands (docs/specs/ui.md#keyboard-map): each command's ID, as Obsidian names it, title, group, icon and keys.
Package commands is the desktop app's table of commands (docs/specs/ui.md#keyboard-map): each command's ID, as Obsidian names it, title, group, icon and keys.
desktop/desktoptest
Package desktoptest holds what the desktop app's tests share: a loop that stands in for the UI thread, with a clock that moves only when a test advances it, and a real notesd with a vault (internal/rpctest).
Package desktoptest holds what the desktop app's tests share: a loop that stands in for the UI thread, with a clock that moves only when a test advances it, and a real notesd with a vault (internal/rpctest).
desktop/editor
Package editor is the desktop app's note editor on MyGo's code editor (plan 0009, Phase 2): source mode with Obsidian's syntax highlighted, folding by headings and lists, the app's own undo, Obsidian's keys, formatting commands, completions of links and tags, and links that follow.
Package editor is the desktop app's note editor on MyGo's code editor (plan 0009, Phase 2): source mode with Obsidian's syntax highlighted, folding by headings and lists, the app's own undo, Obsidian's keys, formatting commands, completions of links and tags, and links that follow.
desktop/history
Package history is the desktop app's version history and merge view (docs/design/app.md#history-and-merges, specs/ui.md#history-batch-2 and #merge-view; plan 0009): a note's versions, and a synced vault's hub revisions, each shown as its source or as its changes against the note, restored with note.revert; and the merge view, MyGo's diff view of another text beside the note's own buffer, whose chunks the user takes back one at a time.
Package history is the desktop app's version history and merge view (docs/design/app.md#history-and-merges, specs/ui.md#history-batch-2 and #merge-view; plan 0009): a note's versions, and a synced vault's hub revisions, each shown as its source or as its changes against the note, restored with note.revert; and the merge view, MyGo's diff view of another text beside the note's own buffer, whose chunks the user takes back one at a time.
desktop/livepreview
Package livepreview works out what live preview shows (docs/design/app.md#live-preview, ADR-0039): which ranges of a note's source hide, and what stands in for the rest, on the lines no selection touches.
Package livepreview works out what live preview shows (docs/design/app.md#live-preview, ADR-0039): which ranges of a note's source hide, and what stands in for the rest, on the lines no selection touches.
desktop/mathview
Package mathview lays out TeX as bounded, cached vector images for native views.
Package mathview lays out TeX as bounded, cached vector images for native views.
desktop/media
Package media plays vault attachments by blob hash, only after a user press.
Package media plays vault attachments by blob hash, only after a user press.
desktop/notes
Package notes holds the desktop app's open notes: each note's text, the version it was read at, and the loop that saves it as it is typed and applies merges and other writers' changes (docs/design/app.md#documents-saves-and-merges, ADR-0022).
Package notes holds the desktop app's open notes: each note's text, the version it was read at, and the loop that saves it as it is typed and applies merges and other writers' changes (docs/design/app.md#documents-saves-and-merges, ADR-0022).
desktop/panes
Package panes draws the desktop app's sidebars' panes (docs/specs/ui.md#sidebars-and-panes, plan 0009): Files, Search, Backlinks, Outgoing links, Tags, All properties, Outline and Tasks.
Package panes draws the desktop app's sidebars' panes (docs/specs/ui.md#sidebars-and-panes, plan 0009): Files, Search, Backlinks, Outgoing links, Tags, All properties, Outline and Tasks.
desktop/prefs
Package prefs holds the desktop app's preferences and small state (ADR-0021; docs/specs/ui.md#settings-batch-2): one versioned JSON file per device, whose defaults are Obsidian's.
Package prefs holds the desktop app's preferences and small state (ADR-0021; docs/specs/ui.md#settings-batch-2): one versioned JSON file per device, whose defaults are Obsidian's.
desktop/reading
Package reading is the desktop app's reading view (docs/design/app.md#reading-view, plan 0009): notesd renders the note as Markdown for native views (note.renderMarkdown, docs/specs/render.md#markdown-for-native-views), and MyGo's Markdown view draws it, with images read from notesd's blob store by hash (ADR-0023) and note embeds and callouts drawn from their fenced blocks.
Package reading is the desktop app's reading view (docs/design/app.md#reading-view, plan 0009): notesd renders the note as Markdown for native views (note.renderMarkdown, docs/specs/render.md#markdown-for-native-views), and MyGo's Markdown view draws it, with images read from notesd's blob store by hash (ADR-0023) and note embeds and callouts drawn from their fenced blocks.
desktop/session
Package session is the desktop app's connection to notesd (docs/design/app.md#data, plan 0009): it dials the private socket as the local caller, says hello, subscribes to events from the sequence it last saw, dials again each second when the connection drops, and keeps the open notes' documents, to which it routes note.changed, note.moved and note.removed.
Package session is the desktop app's connection to notesd (docs/design/app.md#data, plan 0009): it dials the private socket as the local caller, says hello, subscribes to events from the sequence it last saw, dials again each second when the connection drops, and keeps the open notes' documents, to which it routes note.changed, note.moved and note.removed.
desktop/system
Package system is what the desktop app needs of the system around it (plan 0009): where its files live, the end of notesd's log, and the Flatpak's background setting.
Package system is what the desktop app needs of the system around it (plan 0009): where its files live, the end of notesd's log, and the Flatpak's background setting.
desktop/uikit
Package uikit holds the desktop app's generic UI pieces that frostui does not have yet: tab strips, a split tree of tab groups and a side panel's icon pane tabs (plan 0009).
Package uikit holds the desktop app's generic UI pieces that frostui does not have yet: tab strips, a split tree of tab groups and a side panel's icon pane tabs (plan 0009).
desktop/window
Package window is the desktop app's window (plan 0009): it joins the session, the workspace, the panes and the notes' views under frostui's chrome.
Package window is the desktop app's window (plan 0009): it joins the session, the workspace, the panes and the notes' views under frostui's chrome.
desktop/workspace
Package workspace is the desktop app's workspace model (docs/design/app.md#workspace, plan 0009): a tree of splits and tab groups, two sidebars of panes, the tabs closed lately, the files opened lately and the Files pane's sort and open folders.
Package workspace is the desktop app's workspace model (docs/design/app.md#workspace, plan 0009): a tree of splits and tab groups, two sidebars of panes, the tabs closed lately, the files opened lately and the Files pane's sort and open folders.
devgw
Package devgw serves notesd's RPC over a WebSocket on loopback, so the UI can be developed in an ordinary browser against a real notesd (docs/specs/rpc-protocol.md, Transports).
Package devgw serves notesd's RPC over a WebSocket on loopback, so the UI can be developed in an ordinary browser against a real notesd (docs/specs/rpc-protocol.md, Transports).
engine
Package engine implements the notesd API domains over the store and the vaults' actors (docs/design/overview.md).
Package engine implements the notesd API domains over the store and the vaults' actors (docs/design/overview.md).
events
Package events fans committed events out to subscribed connections and replays the durable log for subscribers that resume (docs/specs/rpc-protocol.md).
Package events fans committed events out to subscribed connections and replays the durable log for subscribers that resume (docs/specs/rpc-protocol.md).
evidence
Package evidence runs real notesd processes for the milestones' exit evidence (make m2-evidence, m3-evidence and m4-evidence; plans 0004, 0005 and 0006): each with its own data directory, private socket folder, vault folder and file secrets, a hub on loopback or behind lodge's development build, all stopped when the test ends.
Package evidence runs real notesd processes for the milestones' exit evidence (make m2-evidence, m3-evidence and m4-evidence; plans 0004, 0005 and 0006): each with its own data directory, private socket folder, vault folder and file secrets, a hub on loopback or behind lodge's development build, all stopped when the test ends.
hub
Package hub is notesd's hub role (ADR-0005, ADR-0016, docs/specs/sync-protocol.md): the HTTP endpoints devices sync through (pairing, the /sync WebSocket, blobs), the token check that guards them, the log domain devices call, and the hub domain for the hub's own local clients.
Package hub is notesd's hub role (ADR-0005, ADR-0016, docs/specs/sync-protocol.md): the HTTP endpoints devices sync through (pairing, the /sync WebSocket, blobs), the token check that guards them, the log domain devices call, and the hub domain for the hub's own local clients.
lodgeapp
Package lodgeapp serves notesd as lodge's notes app (docs/specs/lodge-app.md, ADR-0026) over lodge/kit, which owns the app socket, its peer check and the Lodge-* headers: /health, /api as caller session, /content/blobs/ for lodge-content, /mcp for agents with lodge's tokens, and the hub's device routes under /device/.
Package lodgeapp serves notesd as lodge's notes app (docs/specs/lodge-app.md, ADR-0026) over lodge/kit, which owns the app socket, its peer check and the Lodge-* headers: /health, /api as caller session, /content/blobs/ for lodge-content, /mcp for agents with lodge's tokens, and the hub's device routes under /device/.
markdown
Package markdown parses notes (docs/design/vault.md#parse).
Package markdown parses notes (docs/design/vault.md#parse).
mcpserver
Package mcpserver serves a vault to agents over the Model Context Protocol (ADR-0012), with the tools docs/specs/mcp.md specifies: over stdio for notesctl mcp, and over Streamable HTTP behind lodge's /mcp (Handler).
Package mcpserver serves a vault to agents over the Model Context Protocol (ADR-0012), with the tools docs/specs/mcp.md specifies: over stdio for notesctl mcp, and over Streamable HTTP behind lodge's /mcp (Handler).
merge
Package merge merges three versions of a text file (ADR-0005, docs/design/sync.md#merge): the base both sides started from, the head (the hub's current version, or the version on disk for a local merge) and the incoming version.
Package merge merges three versions of a text file (ADR-0005, docs/design/sync.md#merge): the base both sides started from, the head (the hub's current version, or the version on disk for a local merge) and the incoming version.
moment
Package moment formats dates with moment.js tokens, as Obsidian's daily notes and templates write them (docs/design/vault.md#daily-notes).
Package moment formats dates with moment.js tokens, as Obsidian's daily notes and templates write them (docs/design/vault.md#daily-notes).
packagecheck
Package packagecheck tests notes' /usr layout (frostyard/core ADR-0058): packaging/lodge/stage.sh stages only under usr/, with the units, the sysusers.d entry and the manifest that a sysext carries.
Package packagecheck tests notes' /usr layout (frostyard/core ADR-0058): packaging/lodge/stage.sh stages only under usr/, with the units, the sysusers.d entry and the manifest that a sysext carries.
problem
Package problem names the coded errors that notesd records in the local journal, and the small interface through which its packages record them (docs/adr/0036-notesd-and-the-app-record-problems-in-the-journal.md).
Package problem names the coded errors that notesd records in the local journal, and the small interface through which its packages record them (docs/adr/0036-notesd-and-the-app-record-problems-in-the-journal.md).
problem/problemtest
Package problemtest helps tests of notesd's problem records: a fake problem.Recorder, and a datagram socket that stands in for the journal, whose records are decoded and checked with github.com/frostyard/std/problems.
Package problemtest helps tests of notesd's problem records: a fake problem.Recorder, and a datagram socket that stands in for the journal, whose records are decoded and checked with github.com/frostyard/std/problems.
render
Package render renders a note to HTML for the reading view and embeds (ADR-0007; docs/specs/render.md): goldmark over the tree the index reads, with Obsidian's syntax drawn as the spec pins it, then sanitized.
Package render renders a note to HTML for the reading view and embeds (ADR-0007; docs/specs/render.md): goldmark over the tree the index reads, with Obsidian's syntax drawn as the spec pins it, then sanitized.
repocheck
Package repocheck holds tests that keep repository-wide rules that no compiler checks.
Package repocheck holds tests that keep repository-wide rules that no compiler checks.
rpcserver
Package rpcserver serves the notesd API on lodge's kit (github.com/frostyard/lodge/kit/jsonrpc): rpc.hello, events.subscribe and a caller identity per connection.
Package rpcserver serves the notesd API on lodge's kit (github.com/frostyard/lodge/kit/jsonrpc): rpc.hello, events.subscribe and a caller identity per connection.
rpctest
Package rpctest runs a real notesd API server (store, blobs, broker, vaults, engine and rpcserver) on a temporary socket, for tests of clients such as notesctl.
Package rpctest runs a real notesd API server (store, blobs, broker, vaults, engine and rpcserver) on a temporary socket, for tests of clients such as notesctl.
sandbox
Package sandbox reads a Flatpak sandbox's file grants and explains a file error that they cause (docs/design/app.md#the-flatpak).
Package sandbox reads a Flatpak sandbox's file grants and explains a file error that they cause (docs/design/app.md#the-flatpak).
secrets
Package secrets keeps device tokens out of the database and the vault (ADR-0016, docs/specs/sync-protocol.md): the Secret Service over D-Bus, and a plain File for development and CI.
Package secrets keeps device tokens out of the database and the vault (ADR-0016, docs/specs/sync-protocol.md): the Secret Service over D-Bus, and a plain File for development and CI.
store
Package store is notesd's SQLite database: migrations, the single writer, the durable event log and the queries (docs/design/vault.md).
Package store is notesd's SQLite database: migrations, the single writer, the durable event log and the queries (docs/design/vault.md).
syncer
Package syncer is a device's side of sync (ADR-0005, ADR-0017, docs/specs/sync-protocol.md): pairing with hubs, and for each synced vault a loop that pushes what differs from the agreed state, applies the hub's answers, and pulls and applies the heads the hub announces.
Package syncer is a device's side of sync (ADR-0005, ADR-0017, docs/specs/sync-protocol.md): pairing with hubs, and for each synced vault a loop that pushes what differs from the agreed state, applies the hub's answers, and pulls and applies the heads the hub announces.
synctest
Package synctest is sync's seeded simulation (ADR-0020, docs/design/sync.md#testing): a hub and devices, each a whole notesd from rpctest over its own data directory and vault, syncing over loopback through links the simulation cuts and heals, while a seeded plan of steps edits, creates, moves, deletes, crashes and restarts.
Package synctest is sync's seeded simulation (ADR-0020, docs/design/sync.md#testing): a hub and devices, each a whole notesd from rpctest over its own data directory and vault, syncing over loopback through links the simulation cuts and heals, while a seeded plan of steps edits, creates, moves, deletes, crashes and restarts.
templates
Package templates expands the variables of Obsidian's templates and daily-note templates (docs/design/vault.md#daily-notes).
Package templates expands the variables of Obsidian's templates and daily-note templates (docs/design/vault.md#daily-notes).
vault
Package vault scans, watches and writes vault directories (docs/design/vault.md).
Package vault scans, watches and writes vault directories (docs/design/vault.md).
vaultgen
Package vaultgen generates deterministic, fictional markdown vaults and link manifests.
Package vaultgen generates deterministic, fictional markdown vaults and link manifests.
webevidence
Package webevidence records M4's exit evidence 1 and 2 on loopback (docs/plans/0006-m4-notes-inside-lodge.md, make m4-evidence): notes' web build inside lodge's development build, driven in Firefox ESR through geckodriver with plain WebDriver calls at a desktop size and at 390 × 844, and a phone edit timed to the desktop app's editor under Xvfb.
Package webevidence records M4's exit evidence 1 and 2 on loopback (docs/plans/0006-m4-notes-inside-lodge.md, make m4-evidence): notes' web build inside lodge's development build, driven in Firefox ESR through geckodriver with plain WebDriver calls at a desktop size and at 390 × 844, and a phone edit timed to the desktop app's editor under Xvfb.
workflowcheck
Package workflowcheck holds the tests that keep the repository's own files in line with frostyard/core: the GitHub Actions workflows within ADR-0021 (external actions pinned to a full commit SHA, permissions declared at the top, and checkouts that do not keep the token), and the files of the repository baseline (ADR-0071, rows B1, B2, B6 and B13): the instruction symlinks, the corrections inbox, the risk-path list and the Dependabot entries.
Package workflowcheck holds the tests that keep the repository's own files in line with frostyard/core: the GitHub Actions workflows within ADR-0021 (external actions pinned to a full commit SHA, permissions declared at the top, and checkouts that do not keep the token), and the files of the repository baseline (ADR-0071, rows B1, B2, B6 and B13): the instruction symlinks, the corrections inbox, the risk-path list and the Dependabot entries.
tools
flatpakgo command
Command flatpakgo prints the Go modules notesd needs as flatpak-builder `file` sources, so a Flatpak builds offline (docs/adr/0031-the-desktop-app-ships-as-a-flatpak-with-its-own-notesd.md).
Command flatpakgo prints the Go modules notesd needs as flatpak-builder `file` sources, so a Flatpak builds offline (docs/adr/0031-the-desktop-app-ships-as-a-flatpak-with-its-own-notesd.md).
rpcgen command
the Go half of package api, the TypeScript client for the app, and the API reference.
the Go half of package api, the TypeScript client for the app, and the API reference.
taskrun command
Command taskrun runs task cards (docs/tasks) through an executor (Codex, or opencode with a local model) and enforces the card's contract: only the listed files change, the given tests stay byte-identical, the acceptance command and make check pass.
Command taskrun runs task cards (docs/tasks) through an executor (Codex, or opencode with a local model) and enforces the card's contract: only the listed files change, the given tests stay byte-identical, the acceptance command and make check pass.
vaultgen command
Command vaultgen writes a fictional vault and an optional link manifest.
Command vaultgen writes a fictional vault and an optional link manifest.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL