Skip to content

The six seams

Freehand started as one person’s setup: a Supernote, Google Drive, Google Docs and a markdown notes repo. It’s built to grow past that. Everything that differs between one person’s setup and another’s sits at six seams. To support something new, you add a piece at one seam and leave the loop in the middle alone.

Where things plug in: a device, a way in and a page on one side; a place, a trigger and a way back on the other; the loop in the middle stays the same.

Seam Today Add one to support Start in
A device Supernote reMarkable, Boox, Kindle Scribe, Kobo Elipsa, any e-ink device that syncs a folder src/core.ts PAGE, src/watch.ts, cli/init.ts DEVICES, skills/read/, skills/apply/
A way in Google Docs, markdown, web articles Notion, Word, EPUB, a CMS, email skills/convert/, skills/send/clip.ts
A page Freehand’s PDF layout a repo’s own look, a book layout, slides a renderer named in paper.yml
A place Google Drive, in the cloud or synced to disk Dropbox, OneDrive, iCloud, a USB folder, a device’s own cloud src/place.ts Store, cli/place.ts
A trigger Drive’s change list, a synced folder, a git push file events, webhooks, a phone shortcut cli/watcher.ts Source and Action
A way back a pull request, a Doc’s edits, notes in markdown Obsidian, Notion, a Google Doc, another AI agent skills/apply/, skills/read/

Every seam is a small interface or a file contract with tests beside it. Nothing needs a framework.

Whatever you add, the loop relies on five rules. A change that breaks one breaks it for everyone:

  • A proof is never replaced. Each round is a new file, <title> - proof <n>.pdf, because e-ink devices tie marks to a file’s name. A reading copy is the opposite: it keeps one name and is rewritten in place, so your marks stay beside it.
  • Every page names its source, round and version in its footer, so every mark maps back.
  • The record and snapshot are written once. Marks are read against the snapshot, the words exactly as printed, never against the source as it is now.
  • Nothing is applied until the Done box is ticked.
  • Private stays private. Pictures of handwriting are temporary, and state holds nothing the pages say.

A device. A device is a handful of facts spread over a few files today: its page size and margins (PAGE), its folders inside the synced drive (DEVICES), which synced files mean new ink (wantedFile), and the readers that turn its notebooks and marks into the shared JSON. A new device writes readers that print the same JSON as the Supernote ones, so every skill after them works unchanged, and isn’t supported until a mark made on it lands in the source. The next step, and a good first big contribution, is one device profile object per device, chosen by settings.json’s tablet.

A way in. Everything is sent as markdown or a Google Doc, so a new source only has to arrive at one of them: a conversion that ends in markdown or a Doc, a web page through freehand clip, or a new command in COMMANDS when a route needs code. Then sending takes it from there, with rounds, records and snapshots for free.

A page. freehand render turns markdown into Freehand’s PDF. A repo can name its own renderer per mode in paper.yml, and Freehand still names, places and records the PDF.

A place. Placing a PDF follows one set of rules written against a Store: find a folder, find or make a child, find a file, create, replace, copy. Two stores exist, Google Drive from the script and a folder on disk from the CLI. The disk one already covers any sync app that keeps your device’s folders on your computer, Dropbox and Syncthing included. A new store runs the same tests as the disk one.

A trigger. freehand watch is three small interfaces: a Source lists what changed, a Watcher decides when, and an Action does the work. A new trigger is a new Source or a new Action.

A way back. Marks on a proof become edits through the freehand-apply skill, and notebook pages become notes through freehand-read. Which notes system a note is filed into is a description in the skill, not new code, so Obsidian, Notion or a Google Doc is a new paragraph. Another AI agent can use the skills too: they’re plain Agent Skills folders.

Upstream, if it helps others: a device, a source, a store, a notes system. Keep it to new files and a setting that picks them, with tests. Your own taste, your marks, folders and page, stays in your fork or your settings. CONTRIBUTING.md has the steps, and the freehand-adapt skill walks an AI agent through a change.