I got tired of waiting on my printer's app, so I built Platen
How a scan that wouldn't fit on the glass turned into an open source Mac app for network printers in under two days.
I needed to scan an old document. Nothing unusual, except it was longer than A4 and my scanner’s glass is A4. Folding it didn’t work. Scanning it in two halves didn’t either, because the vendor’s app has no idea how to put the halves back together.
That wasn’t even the worst part. The app itself was. It was sluggish and kept getting stuck, and somewhere around the tenth scan it would freeze and lose everything I’d scanned so far. That happened three or four times. It also crashed mid-scan and rebooted my laptop twice in less than a day, and macOS had started warning that it won’t run on a future release at all. After the last lost batch I was done with it.
I was spending most of my time waiting on the app, not scanning.
So I asked a different question: how hard can it be to talk to the scanner directly?
It’s just a network printer
Not that hard, it turns out. Most network printers speak standard driverless protocols: AirScan for scanning and AirPrint for printing. No driver, no account, no vendor app. You send a request over the local network and pages come back.
The first version was a terminal app in Rust, built the same afternoon. It did the one thing I needed: scan the top and bottom of a tall page and join them into one. Then the small things I’d been missing. Torn edges and punch holes fill in white instead of showing up black. A half-done scan saves as a draft I can pick up later. Each scan shows how long it took.
Then it became a real app
By the evening the terminal version worked well enough that I wanted the whole thing. The goal was simple: everything the vendor’s app does, plus the things it wouldn’t. It became a Mac app built with Tauri and Svelte on top of the same Rust core.
A few things I’m happy with:
- 1200 dpi. Over the standard protocol my scanner tops out at 600. It also speaks a native protocol on the network that goes higher, and Platen uses it when it’s there.
- Text you can select. Copy text straight out of a scan, and export PDFs with a searchable text layer.
- Shrink a PDF to fit. Pick a size limit, compare the result with the original, then save. Handy for upload forms that cap file size.
- Print options the system dialog hides. Pick pages by clicking them, several pages per sheet, two-sided printing by hand.
- Copy without a computer in the way. Two pages on one sheet, or both sides of an ID card on one sheet.
- The printer’s own Scan button scans straight into the app.
Pick the pages to print by clicking them.
Two days, with help
From first commit to v0.2.0 took a little under two days and 69 commits. I built it with Claude Code. I’m not well versed in Rust, and that turned out not to matter much: Claude got me around the borrow checker, the crates and the build errors, and explained what it was doing when I asked. I decided what to build, tested every change on the real printer, and pushed back when something felt slow or looked generic. The first colour scheme looked like every other AI-built app, so now there are four themes to pick from. Claude wrote most of the code. That split is how a small annoyance turned into a real app in a couple of days instead of a couple of months.
Open source
Platen is MIT licensed and on GitHub. It runs on macOS, with a command-line version too. It’s an independent project, not affiliated with any printer manufacturer. If your network printer supports AirScan and AirPrint, it will probably work. If it doesn’t, open an issue.