Skip to content

freehand

The TypeScript behind Freehand, written from the source each time the docs build, so it can’t drift. These are the modules to build on when you add something at a seam: a new place, a new trigger, a new device.

The package has no exports map yet, so these are not a published API. Import them by path, from a clone. Each is small, and has tests beside it.

  • src/core: the rules every part shares, as pure functions that run unchanged in Apps Script and in Node. Names and rounds, the page, the Done page, the record and snapshot, the tag line.
  • src/place: the placement rules, written against a Store.
  • src/watch: the watcher’s rules: which files count, when a folder has been quiet long enough, and the handoff between the script and your computer.
  • cli/place: the disk Store, which puts files into the folders a sync app keeps on your computer.
  • cli/watcher: the watcher’s small interfaces: Source, Action, StateStore and Heartbeat.
  • cli/config: reading ~/.freehand/config.yml.