frostnotes

module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT

README

Frostnotes

A notes app in the spirit of Obsidian, from Frostyard. Notes are plain markdown files with YAML frontmatter, in a folder you own (roadmap).

  • notesd is a Go daemon that 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.
  • 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.
  • The desktop app is Tauri v2 with a React UI and a CodeMirror 6 editor with live preview, a sibling of Frostmail.
  • The web app is the same UI, served by lodge, frostyard's tailnet-only web shell, with Obsidian's phone layout on a narrow screen.
  • Agents search, read and write notes through MCP: notesctl mcp locally, or lodge's /mcp/notes with a scoped token.
  • Obsidian vaults open as they are: wikilinks, embeds, tags, callouts and properties.

Pre-release. M0 (foundations), M1 (the headless vault), sync (M2) and the desktop app (M3) are done; M2's and M3's 7-day trials ended on 2026-10-24 and 2026-10-25. M4, notes inside lodge, is in progress: notesd runs as lodge's notes app, and the hub moved behind lodge on 2026-10-26. See the roadmap.

Try it

make build                              # build/notesd and build/notesctl
build/notesd &                          # the daemon; one per user
build/notesctl vault add ~/Notes        # registering never writes to the vault
build/notesctl search quince
claude mcp add frostnotes -- "$PWD/build/notesctl" mcp   # or: mcp --read-only

Every write, an agent's included, is kept as a version for 30 days: notesctl versions PATH lists them and notesctl revert undoes one.

Develop

Requirements: Go 1.27 and mise install (golangci-lint) on the host; nsl for the app toolchain.

nsl create frostnotes --distro debian:13
nsl run -m frostnotes --root bash dev/nsl/provision.sh "$(id -un)"
make check          # host: generated files, vet, lint, unit tests
make ui-check       # nsl: Biome, typecheck and UI tests
make app-run        # nsl: notesd plus the built app
make ui-dev         # nsl: notesd and Vite; open http://127.0.0.1:5173

make help lists every target. Architecture starts at docs/design/overview.md; agents start at AGENTS.md.

License

MIT.

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
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
appevidence
Package appevidence holds M3's exit evidence 2 and 3 (docs/plans/0005-m3-desktop-app.md, Phase 7): integration tests that run the built app (FROSTNOTES_APP) under X, press its keys with xdotool, and write its open note from outside.
Package appevidence holds M3's exit evidence 2 and 3 (docs/plans/0005-m3-desktop-app.md, Phase 7): integration tests that run the built app (FROSTNOTES_APP) under X, press its keys with xdotool, and write its open note from outside.
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).
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.
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.
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 GitHub Actions workflows within frostyard/core ADR-0021: external actions pinned to a full commit SHA, permissions declared at the top, and checkouts that do not keep the token.
Package workflowcheck holds the tests that keep the GitHub Actions workflows within frostyard/core ADR-0021: external actions pinned to a full commit SHA, permissions declared at the top, and checkouts that do not keep the token.
tools
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