internal/

directory
v0.7.1 Latest Latest
Warning

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

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

Directories

Path Synopsis
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).
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).
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.
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).
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.
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.
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).
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.
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.
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.
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.
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.
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).
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.
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.
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.
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.
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.
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).
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.
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.
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).
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).
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).
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.
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.
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/.
Package markdown parses notes (docs/design/vault.md#parse).
Package markdown parses notes (docs/design/vault.md#parse).
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).
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.
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).
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.
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).
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.
Package query evaluates the subset of Obsidian Bases that notesd supports (docs/specs/bases.md, ADR-0037): it reads a base's YAML, checks it against the subset, folds constants, and compiles a view's filters, sort and groups to SQL over the index's files and notes tables.
Package query evaluates the subset of Obsidian Bases that notesd supports (docs/specs/bases.md, ADR-0037): it reads a base's YAML, checks it against the subset, folds constants, and compiles a view's filters, sort and groups to SQL over the index's files and notes tables.
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.
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.
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.
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.
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).
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.
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).
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.
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.
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).
Package vault scans, watches and writes vault directories (docs/design/vault.md).
Package vault scans, watches and writes vault directories (docs/design/vault.md).
Package vaultgen generates deterministic, fictional markdown vaults and link manifests.
Package vaultgen generates deterministic, fictional markdown vaults and link manifests.
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.
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.

Jump to

Keyboard shortcuts

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