← Back to projects

Native macOS applications

Bond Scanner

Digitize paper savings bonds privately on your Mac.

Availability
Public repository
License
MIT
Bond Scanner database with six clearly labeled demonstration records awaiting review
Bond Scanner database with synthetic demonstration records; the camera was disabled for this capture.

The problem

Paper U.S. savings bonds often sit in drawers or safe deposit boxes for decades. Typing serial numbers, issue dates, and denominations into spreadsheets by hand is slow and error-prone, and uploading scans containing names or Social Security numbers to third-party cloud OCR services creates unnecessary privacy risk.

What I built

Bond Scanner is a native Swift application for macOS that uses a connected webcam, document camera, or iPhone Continuity Camera to photograph paper Series E, Series EE, and Series I bonds and organize them into a local inventory.

Key capabilities

  • Automatically detects bond edges with AVFoundation and captures high-resolution frames once the image stabilizes.
  • Extracts series, denomination ($10 to $10,000), serial number, issue date, and cancellation stamps using Apple Vision OCR.
  • Flags uncertain or missing fields in a review workbench with a 2.8x magnifying loupe, zoom/pan, and optional on-device Apple Intelligence assistance where supported.
  • Checks for duplicates and keeps WAL-backed SQLite storage alongside live CSV (with formula-injection sanitization) and JSON exports.

Technical architecture

Written in native Swift using AppKit, AVFoundation, Apple Vision, and local SQLite. Original images, database files, and exports stay inside a user-chosen local folder (~/BondScans/ by default), which can live on an encrypted volume or external drive.

Engineering decisions

All image capture, OCR, optional on-device AI character resolution, and database storage execute locally on the Mac with zero network transmission. Real paper bonds often have faded ink or overlapping stamps, so the review workflow pairs automated Treasury-format validation with visual magnification rather than trusting OCR blindly.

Availability & notes

Requires macOS 14.0 (Sonoma) or newer on Apple Silicon or Intel Macs, plus a built-in, USB, or iPhone Continuity Camera. Open source under the MIT License; currently built from source using ./build.sh --install or Xcode/XcodeGen (no precompiled release download is published yet).