Momentum
A macOS and iOS app for distracted minds, built on a shared Swift core with zero dependencies: one next step on screen, zero-click capture, and offline-first sync between devices.
- When
- Summer 2026
- Role
- Solo: product, macOS and iOS apps, sync
- Stack
- Swift, SwiftUI, SQLite
Focus time up from 2 to 4 hrs/day, 40+ unit and integration tests, Zero dependencies
Context
Most productivity apps are lists, and a list asks you to choose. Choosing is exactly where a distracted mind stalls. Momentum is built around the opposite idea: open it and it answers one question, what now?, with a single card.
It is a macOS menu-bar app with an iOS companion, both built on one shared Swift core with zero third-party dependencies, and it is the app I actually use every day. By its own in-app statistics, my average focus time went from about 2 hours a day to 4.
Approach
One card, not a list. The Now card shows one project, its single next action, and the breadcrumb I left last time. Start opens whatever the action links to and begins a timed session. Shuffle deals a weighted-random project (neglected ones get better odds) for the moments when deciding is the problem.
Zero clicks to capture. A global hotkey (⌥Space) opens a floating capture box over whatever I'm doing. Type, Enter, gone. Everything lands in an inbox that never shows a count.
End sessions well. Stopping prompts for a breadcrumb: where exactly to pick up next time. If a session runs long, a gentle check-in appears, and if nobody answers it the session ends backdated to when the prompt appeared, so wandering off never inflates the recorded time. Session tracking recovers from sleep, reboots, and crashes, and time the Mac spends asleep doesn't count.
No guilt surfaces. Paused projects are "resting," not abandoned. There are no overdue badges or red numbers, and the weekly win total is the only count in the app.
Boring, portable data. I designed the database schema and a versioned JSON API contract (UUIDv7 keys, microsecond UTC timestamps) that's used both for export and for sync. SQLite is called directly through its C API rather than a wrapper.
The hard part: offline-first sync
I wanted the phone and the Mac to agree without accounts or a cloud. Each device owns its own SQLite file and works fully offline. The Mac runs a small REST API, advertised over Bonjour, and the iPhone finds it on the same Wi-Fi and authenticates with a one-time pairing code.
The two sides swap full JSON snapshots and merge them. Projects and actions are
last-write-wins by updated_at. Some fields can only move one way (a session
that has ended can't be un-ended, an archived inbox item can't come back), and
deletions travel as tombstones so they propagate instead of being resurrected by
the other device. The merge rules are part of 40+ unit and integration tests,
and the sync tests run over real TCP on localhost, not mocks.
Takeaways
The most useful bug I hit wasn't in my code: a device-only crash after regenerating the Xcode project turned out to be stale build state, after I'd chased two wrong theories. I wrote that down in the repo so I'd try the cheap fix first next time. More broadly, designing every feature against a short list of principles made it easy to say no to things.