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.
Before you start
Section titled “Before you start”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.
1. Install the command
Section titled “1. Install the command”npm install -g https://github.com/savdevarney/freehand/releases/download/v0.2.0/freehand-0.2.0.tgzNow run:
freehand --versionIt 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:
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.
2. Set it up
Section titled “2. Set it up”freehand initinit asks three questions. Press Enter at each:
- Which device? The default is
supernote, the only one for now. - 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. - 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.
3. Write something to proof
Section titled “3. Write something to 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.4. Send it as a proof
Section titled “4. Send it as a proof”Use your drive’s path from ~/.freehand/config.yml (the line that starts with drive:). Then run:
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.pdfTwo 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.
5. Mark it up
Section titled “5. Mark it up”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.
6. Bring your marks back
Section titled “6. Bring your marks back”The Supernote saves your ink in a file beside the PDF, called My first proof - proof 1.pdf.mark. Check it arrived:
ls "<your drive>/Supernote/Document/proofs"Now read the marks:
freehand marks "<your drive>/Supernote/Document/proofs/My first proof - proof 1.pdf" --done-page 2 --out ~/proof-marksThe 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.pngOpen 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.
What you’ve done
Section titled “What you’ve done”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:
rm -r ~/proof-marksWhere to go next
Section titled “Where to go next”- 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.