frostmarks

module
v0.2.0 Latest Latest
Warning

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

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

README

frostmarks

frostmarks is frostyard's bookmark manager: a daemon, a CLI and a stdio MCP server that keep your bookmarks in folders, with full-text search. It is for people who want their bookmarks on their own machine, and for the agents that read and file them.

Status: pre-release. It is an incubating repository until 2027-03-31.

Documentation: frostyard.github.io/frostmarks

What it does

  • Bookmarks in folders. Each bookmark has a URL, a title, notes, tags and 1 folder; a folder path starts with /, such as /reading/2026, and a search reads the title, the URL, the notes and the tags (the CLI).
  • A daemon on a private socket. frostmarksd keeps the SQLite store and serves the app's API on a Unix socket that only your user reaches (the design).
  • A CLI that scripts. marksctl sends each call over that socket and prints a table, or 1 JSON object with -json.
  • MCP tools for agents. marksctl mcp serves the same calls as MCP tools over stdio, as the local user and with no token (connect an MCP client).
  • Folders decide access. A grant names the capabilities and the folders it covers, and each stored bookmark is checked against the folder it holds (folders and permissions).
  • No lodge needed, and a lodge app too. The daemon, the CLI and the MCP server work on their own. On lodge, the same daemon adds a web UI, a save page for a browser bookmarklet, and bookmark tools for the agents that you approve (run on lodge).

Install

frostmarks is pre-release, so it has no tagged release yet. Install both commands from the module:

go install github.com/frostyard/frostmarks/cmd/frostmarksd@latest
go install github.com/frostyard/frostmarks/cmd/marksctl@latest

Go puts them in the directory that go env GOBIN names, or in $(go env GOPATH)/bin. Keep that directory on PATH.

Install lists the requirements and how to pin a version.

On a lodge host, install the release's frostyard-frostmarks .deb instead. It runs no install script, so make its user, start its socket and tell lodge:

sudo apt install ./frostyard-frostmarks_<version>_amd64.deb
sudo systemd-sysusers
sudo systemctl daemon-reload
sudo systemctl enable --now frostmarks.socket
sudo lodgectl reload

Run on lodge covers the attestation and the update.

Use

Start the daemon, store a bookmark, and find it again:

frostmarksd &
marksctl create-folder /reading
marksctl create-bookmark -url https://example.com/ -title Example -folder /reading
marksctl list-bookmarks -recursive
marksctl search-bookmarks example

frostmarksd keeps its state in $XDG_STATE_HOME/frostmarks (else ~/.local/state/frostmarks) and listens on $XDG_RUNTIME_DIR/frostmarks.sock; -state-dir and -socket change both. marksctl exits 0 on success, 1 on an error and 2 on a wrong usage.

To bring in a browser's bookmarks, export them as HTML, then run marksctl import bookmarks.html -folder /imported; -dry-run shows the plan first (Import your bookmarks).

To give an MCP client the tools, add this entry to its configuration:

{"mcpServers": {"frostmarks": {"command": "marksctl", "args": ["mcp"]}}}

Use marksctl walks through each command.

On lodge, this bookmarklet saves the page you read: it opens the save page in a new window. Make a bookmark with it as the address, with LODGE replaced by your lodge's name, or drag it from Bookmarklet in the web UI:

javascript:void(window.open('https://LODGE/marks/save?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title),'_blank','noopener'))

How it works

1 Protobuf service, frostyard.frostmarks.v1.Marks, is the whole contract: the 11 RPCs give the API, the permission checks, the MCP tools and the events, and the code that the plugins write from it is committed. The daemon serves the API over Connect on the private socket, marksctl is a client of it, and the generated MCP tools run in marksctl mcp. Events go to an outbox in the transaction of their change, so a bookmark that a subscriber sees is a bookmark that is stored. The design shows how the parts fit.

Develop

mise install   # the pinned tools: golangci-lint, buf, protoc-gen-go, svu
make ci        # what CI runs: verify, the generated code, race, cross-builds, the manifest, the web UI

The web UI in web/ builds and tests in the nsl machine (make web-check, make web-build), never on the host.

Build from source explains each target.

Where to go next

Directories

Path Synopsis
cmd
frostmarksd command
This file is the daemon's lodge side, which -lodge turns on: the app's lodge socket, the user whose connections it admits, and the transport that publishes the app's events to the broker that lodge embeds (docs/specs/lodge-app.md, and lodge's docs/specs/app-contract.md).
This file is the daemon's lodge side, which -lodge turns on: the app's lodge socket, the user whose connections it admits, and the transport that publishes the app's events to the broker that lodge embeds (docs/specs/lodge-app.md, and lodge's docs/specs/app-contract.md).
marksctl command
Command marksctl is frostmarks' command-line client: 1 command for each RPC of the app's service, and the app's stdio MCP server.
Command marksctl is frostmarks' command-line client: 1 command for each RPC of the app's service, and the app's stdio MCP server.
gen
internal
catalog
Package catalog writes frostmarks' tool catalog, tools.json: 1 tool for each of the app's agent operations, in the shape of an MCP tools/list result, which lodge reads to show what an agent may call (lodge's docs/specs/app-contract.md, Apps on hearth; and docs/specs/lodge-app.md).
Package catalog writes frostmarks' tool catalog, tools.json: 1 tool for each of the app's agent operations, in the shape of an MCP tools/list result, which lodge reads to show what an agent may call (lodge's docs/specs/app-contract.md, Apps on hearth; and docs/specs/lodge-app.md).
cmd/corrections-base command
Command corrections-base checks the corrections inbox against the base of a pull request: no record file is deleted or renamed since then, and no record changes in a field other than an empty promoted_to that is now filled (frostyard/core ADR-0081, row B2 of its repository baseline).
Command corrections-base checks the corrections inbox against the base of a pull request: no record file is deleted or renamed since then, and no record changes in a field other than an empty promoted_to that is now filled (frostyard/core ADR-0081, row B2 of its repository baseline).
cmd/debcheck command
Command debcheck checks the .deb that make deb built, in Go only: the ar archive, its control archive and its data archive (docs/specs/lodge-app.md).
Command debcheck checks the .deb that make deb built, in Go only: the ar archive, its control archive and its data archive (docs/specs/lodge-app.md).
cmd/stage command
Command stage writes the install tree of frostmarks' .deb, under the root that nFPM packs into /usr: the app's 2 binaries, its lodge files (app.json, the hearth manifest and the tool catalog), its web bundle, its 2 units and its sysusers.d entry (docs/specs/lodge-app.md, and lodge's docs/specs/app-contract.md, Install layout).
Command stage writes the install tree of frostmarks' .deb, under the root that nFPM packs into /usr: the app's 2 binaries, its lodge files (app.json, the hearth manifest and the tool catalog), its web bundle, its 2 units and its sysusers.d entry (docs/specs/lodge-app.md, and lodge's docs/specs/app-contract.md, Install layout).
eventbus
Package eventbus publishes the app's events to the broker that lodge embeds (lodge ADR-0022, and hearth's events/broker).
Package eventbus publishes the app's events to the broker that lodge embeds (lodge ADR-0022, and hearth's events/broker).
importer
Package importer plans and applies the import of 1 parsed Netscape bookmark file, over the app's API: it reads the target's folders and bookmarks with ListFolders and ListBookmarks, and, unless it is a dry run, it writes with CreateFolder and CreateBookmark.
Package importer plans and applies the import of 1 parsed Netscape bookmark file, over the app's API: it reads the target's folders and bookmarks with ListFolders and ListBookmarks, and, unless it is a dry run, it writes with CreateFolder and CreateBookmark.
netscape
Package netscape reads 1 Netscape bookmark file: the HTML export of Firefox, Chrome, Edge, Safari and Pinboard.
Package netscape reads 1 Netscape bookmark file: the HTML export of Firefox, Chrome, Edge, Safari and Pinboard.
paths
Package paths is the app's default locations: the state directory that holds the database, and the private socket.
Package paths is the app's default locations: the state directory that holds the database, and the private socket.
repocheck
Package repocheck holds tests that keep repository-wide rules that no compiler checks: the documentation rules of AGENTS.md (every relative link resolves, every doc is indexed), the repository boundary (no private host names or addresses), and frostmarks' import boundary (frostmarks imports no lodge, frostyard app or Pocket code, in Go or in Protobuf, and its copy of hearth's options file is the file of the hearth version that go.mod requires).
Package repocheck holds tests that keep repository-wide rules that no compiler checks: the documentation rules of AGENTS.md (every relative link resolves, every doc is indexed), the repository boundary (no private host names or addresses), and frostmarks' import boundary (frostmarks imports no lodge, frostyard app or Pocket code, in Go or in Protobuf, and its copy of hearth's options file is the file of the hearth version that go.mod requires).
rpc
This file serves the app's lodge socket, on which lodge forwards a user's calls after it has checked that user's grant for this app (docs/specs/lodge-app.md, and lodge's docs/specs/app-contract.md).
This file serves the app's lodge socket, on which lodge forwards a user's calls after it has checked that user's grant for this app (docs/specs/lodge-app.md, and lodge's docs/specs/app-contract.md).
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), the files of the repository baseline (ADR-0071, rows B1, B2, B6 and B13), the buf workspace of frostyard/core ADR-0085 (no remote plugin, and every module dependency pinned by digest), and the permission hooks of marks/, which must stay a risk path at L1 or L2 (ADR-0068).
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), the files of the repository baseline (ADR-0071, rows B1, B2, B6 and B13), the buf workspace of frostyard/core ADR-0085 (no remote plugin, and every module dependency pinned by digest), and the permission hooks of marks/, which must stay a risk path at L1 or L2 (ADR-0068).
Package marks is frostmarks' app core: bookmarks and the folders that hold them, stored in SQLite, with 2 capabilities (marks:read and marks:write) on the folder selector.
Package marks is frostmarks' app core: bookmarks and the folders that hold them, stored in SQLite, with 2 capabilities (marks:read and marks:write) on the folder selector.

Jump to

Keyboard shortcuts

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