case file · 04 / Hardware / IoT · 2026 · active
Pennywise
Pennywise is a time-tracking system built end to end across four surfaces that all speak one contract: an ESP32 desk device with dual OLED displays taps start/stop/switch over MQTT, a Python sidecar bridges that stream into a Next.js + Postgres system-of-record over REST and pushes APNs Live Activities, and a universal Swift app (8 Xcode targets — iOS, macOS, watchOS, widgets, Live Activity, Notification Service Extension) is the live surface, with tracked time feeding an invoice-and-PDF payoff on the web. The whole thing hangs off a single schema-versioned MQTT contract, frozen behind an ADR, that C++, Python, TypeScript, and Swift each derive from independently.
imagery pending — placeholder plate holds the slot
the engineering move
One schema-versioned, ADR-frozen MQTT contract (v3 task_event / retained stats topics) is the single artifact all four heterogeneous codebases — C++ firmware, Python sidecar, TypeScript/Zod webapp, Swift app — independently derive their topic constants and payload shapes from, with coordinated field renames landing in lockstep across the sidecar publisher and the Apple Live Activity ContentState.
scale
- repos
- 5
- Xcode targets
- 8
- hand-written LOC
- 51K
stack
- ESP32 / C++ (PlatformIO)
- MQTT
- Python (paho, aioapns)
- APNs / Live Activities
- Next.js 16
- React 19
- Prisma
- Swift / SwiftUI
- watchOS