Cairn is a markdown notebook app for the Mac, made like a pocket memo book. It’s pronounced KARN. It’s named for the stacks of stones that mark a trail: notes as markers you leave behind.
Every page is a plain .md file in a folder you choose. On top of those files, Cairn gives you a notebook worth picking up. It has kraft covers that animate as they arrive, paper you can pick, a notebook that sits on your desktop and turns its pages, stickers, merit badges, and an editor in the spirit of iA Writer. As of today it’s open source, under MIT, at github.com/ry-ops/cairn, with a disk image for Apple silicon and Intel Macs on every release.
Every claim in this post has receipts. Receipts: How Cairn Was Built, and What Backs the Post shows what was run, what was read from the source, and what came from the session transcript. The ledger and every piece of evidence are published.
What it is
Three columns, like a writing app should have: a shelf of notebook covers, the notes in the open notebook, and the page.
- The page. Markdown stays visible but quiet, in a typewriter face. Focus mode dims everything but the sentence you’re on, and typewriter mode keeps your line in the middle of the page.
- Paper. Graph, ruled, dot grid or blank, per notebook or per page, with a ruling color that can match the cover.
- Covers. Each notebook gets an edition number and a title plate, like the pocket notebooks it’s modeled on. Every cover plays a short animation once as it arrives, then holds still: nothing moves while you write.
- Links and search.
[[Wikilinks]]autocomplete as you type, every note shows what links to it, and ⌘K searches every notebook. Typeswitchband it finds switchbacks. - Stickers and badges. A sheet of fifteen die-cut stickers for pages and covers, and twelve merit badges you earn by writing. It’s a notebook. It’s allowed to be fun.
A notebook on your desktop
⇧⌘F puts the notebook on the desktop: cover first, then the open spread. The inside cover is written by hand, with the notebook’s details and a table of contents, and a two-finger swipe turns the page.
Your files, your repo, your Claude
Nothing hides in a database. A vault is a folder of notebook folders and .md files. It can live in iCloud Drive, because Cairn never runs git in it.
GitHub is the sync. Cairn talks to the GitHub API and commits through GraphQL’s createCommitOnBranch, which GitHub signs, so every sync shows up as a verified commit in your own private repo. The first sync is previewed and waits for your OK. When a note changed on both sides, Cairn keeps yours and saves theirs beside it as a .conflict copy. If you don’t have a repo yet, Cairn offers to create a private one for you.
Cairn also ships cairn-mcp, a small MCP server, so Claude can search and read your notes and add to them. It has seven tools: five that only read, one that starts a note and one that appends to one. Nothing in it edits or deletes.
There’s also a small web companion in the repo for reading and jotting from a phone. You deploy it to your own Cloudflare account, behind Cloudflare Access.
Update, Nov 18, 2026: deploying the companion is now one click. Cairn 0.15.0 added a Deploy to Cloudflare button to the README. It copies the companion into a private repo of yours, deploys it as a Worker and turns on Cloudflare Access as it goes. You then copy one value back, the Access AUD tag. I tried it on my own account after this post went up, fixed what the instructions got wrong in 0.15.1, and my companion now runs from it. That came after the study, so the receipts don’t cover it.
Built in a day
I gave Claude Code the idea at 7:41 on a Sunday morning, Nov 15: a notes app styled after Field Notes and the Advencher Log, with the core of iA Writer, notes saved as markdown files, and sync. The working name was field-notes. Claude flagged straight away that Field Notes is someone else’s trademark and offered names. I picked Cairn at 8:00, and the first commit landed a minute later.
By 10:44 that night, sixteen pull requests had merged. Claude Code wrote most of the code with me and did the testing, in the browser and in the native app.
It wasn’t a straight line. The notebook manager was built three times: a corkboard with the notebooks pinned to it, then notebooks as round buttons loose on the real macOS desktop, then a plain grid of covers. Each one shipped. I had second thoughts about the buttons while the next milestone was underway, and the grid replaced them that night.
And one feature came out entirely. Cairn briefly had a button that turned a note into a post for this blog. That was a misreading of a separate task, which was to write this post. It isn’t part of Cairn, so it’s gone.
The repo today is about 4,100 lines of Rust and 5,600 of TypeScript, and the public repo’s Rust tests pass.
Going public without leaking anything
Cairn is built in a private repo that holds my own setup: my vault repo, my companion’s domain and its Access policy, the roadmap. The public repo, ry-ops/cairn, is exported from it at each release by one script. The script cuts the blocks marked private, lays the public files on top (the license, a public changelog, a release workflow), and refuses to write anything if a personal repo, host or name is left in the tree.
Every commit in the public repo is signed and verified, and a search of all of them turns up none of those personal strings. Each release builds a disk image for Apple silicon and one for Intel, and both images ship the app and cairn-mcp.
Installing it
Download the disk image for your Mac from the latest release and drag Cairn to Applications.
Then you’ll need to allow it. I don’t have an Apple Developer ID yet, so Cairn isn’t notarized by Apple, and macOS blocks it the first time you open it. That’s expected. Open Cairn once, then go to System Settings → Privacy & Security, scroll down to the message about Cairn, and click Open Anyway. You only do it once.
Writing the receipts for this post turned up a real bug. The 0.14.1 app fails a strict signature check, because only its main program was signed, not the bundle around it. That’s the kind of thing that makes macOS call a downloaded app damaged instead of offering Open Anyway. Release 0.14.2 signs the whole bundle. On an older copy that says it’s damaged, this one command clears it:
xattr -dr com.apple.quarantine /Applications/Cairn.app
Choose an empty folder when Cairn asks for a vault, and your first notebook is waiting.
What’s next
- Notarized builds, once I have an Apple Developer ID, so the Privacy & Security step goes away.
A one-click way to deploy the web companion to your own Cloudflare account.Done in 0.15.0: see the update above.
Cairn is at github.com/ry-ops/cairn. Issues and ideas are welcome.