Skip to content

Your first proof

In this tutorial you will send a short document to your e-ink device as a proof, mark it up with your pen, and bring those marks back to your computer. Everything runs on your own computer and your sync app. You don’t need an Apps Script, a Google Cloud project or a GitHub token.

When you’re done, you will have seen the whole loop once: words go out to paper, and your pen comes back.

You need:

  • A Supernote that syncs to Google Drive, and Google Drive for desktop on this computer, so the device’s folders appear on disk. Right now Freehand reads pages and marks only from a Supernote.
  • Node 22.18 or later. Check with node --version.
  • uv. It runs the small Python programs that read Supernote files, and installs what they need the first time. Check with uv --version.

Sync your Supernote once before you begin, so its Supernote folder is in Drive.

Terminal window
npm install -g https://github.com/savdevarney/freehand/releases/download/v0.2.0/freehand-0.2.0.tgz

Now run:

Terminal window
freehand --version

It prints 0.2.0. Run freehand on its own and it lists every command it has. You will use four of them today.

Freehand makes its PDFs with a browser, so install the one it uses, from the folder the command was installed into:

Terminal window
cd "$(npm root -g)/freehand" && npx playwright install chromium && cd -

You do this once. It downloads a copy of Chromium for Freehand’s own use, which takes a minute.

Terminal window
freehand init

init asks three questions. Press Enter at each:

  1. Which device? The default is supernote, the only one for now.
  2. Which drive? It finds Google Drive for desktop in ~/Library/CloudStorage. If you have more than one Google account, it lists them and you pick.
  3. Which repos should send to paper from here? Leave this blank. A repo is something to try later: keep a repo on paper.

Then it writes your config to ~/.freehand/config.yml, makes the folders Freehand needs in your drive, and sends a test page. You should see a line like:

Sent "Freehand test page" to your reading copies. Sync the device and it will be there.

Sync your Supernote. Open Document, then study, and you’ll find Freehand test page. That page is a reading copy, one kind of thing Freehand sends. Now send a proof.

Make a file called hello.md anywhere you like:

# Hello, paper
This is my first proof. I'll mark anything I want to change,
then bring the marks back.

Use your drive’s path from ~/.freehand/config.yml (the line that starts with drive:). Then run:

Terminal window
freehand render hello.md --mode proof --title "My first proof" --source "hello.md" --version "v1" \
--place "<your drive>"

render turns the markdown into a PDF shaped for a pen, and saves it straight into your device’s proofs folder. It prints a record of what it made as one line of JSON, and then:

placed proofs/My first proof - proof 1.pdf

Two things about that name:

  • The round goes last. A Supernote’s file list cuts long names in the middle, so the part you need to see comes at the end.
  • A proof is never replaced. The Supernote ties your marks to a file’s name, so the next round of this proof will be a new file, proof 2.

The PDF has two pages: your words, with a wide margin on the right, and a Done page. Every page names its source and version in the footer, so any mark you make can be traced back to the words it was made on.

Sync your Supernote. Open Document, then proofs, then My first proof - proof 1.

Mark it the way you’d mark any page: strike out a word, circle another and write a replacement in the margin, add a note. There are no special marks to learn.

When you’re finished, go to the last page and tick the Done box. Nothing on a proof is applied until you do. It’s how you say “I’m finished”, and you can take as many sittings as you like first.

Sync again.

The Supernote saves your ink in a file beside the PDF, called My first proof - proof 1.pdf.mark. Check it arrived:

Terminal window
ls "<your drive>/Supernote/Document/proofs"

Now read the marks:

Terminal window
freehand marks "<your drive>/Supernote/Document/proofs/My first proof - proof 1.pdf" --done-page 2 --out ~/proof-marks

The first time, uv installs what it needs, which takes a moment. Then marks prints a summary as JSON, with one entry for each page you marked, and draws a picture of each one:

~/proof-marks/page-1.png
~/proof-marks/page-2.png

Open page-1.png. It’s the PDF’s own page with your pen on top of it, in red. That’s what comes back: your handwriting, on the page you wrote it on. page-2.png is the Done page, and done_page_marked in the summary says your ink is on it.

You sent a document to paper, marked it by hand, and brought the marks back as pictures. You now know the shape of the whole loop.

The pictures are of your handwriting, so treat them as temporary. When you’ve looked, delete them:

Terminal window
rm -r ~/proof-marks
  • Let your AI make the edits. Reading the marks is half of it. Apply a proof’s marks shows how your AI applies them to the source.
  • Read your handwritten notebooks. Your first notebook pages is the next tutorial.
  • Understand what you just did. The loop explains how the pieces fit.