ios app · 2025–26
Snooze Lane
Wake-ups that still fire underground, across 3 transit agencies
Snooze Lane lets you fall asleep on the train or bus and still wake up on time. You pick a destination, and the app wakes you when you get close, by distance, not by guessing a time. I designed and built the whole product: the SwiftUI app, the Firebase backend and a Cloudflare Worker that serves live transit data.
- 115
- Swift files, ~28,600 lines
- 3
- transit agencies in one feed: MTA, NJ Transit, PATH
- 88
- commits from prototype to App Store hardening
- 4.0 mi
- adjustable live transit search radius
The challenge
Time-based alarms fail commuters. Delays, express trains and traffic make “wake me in 40 minutes” useless. A location alarm has its own problems: iOS limits background location, trains go underground, and an alarm that never fires is worse than none.
It also had to pass App Store review with subscriptions, ads consent, account deletion and a privacy manifest.
The approach
Build the alarm around geofences and location triggers that iOS honors in the background, then layer backups on top: on-device alarms, a timed fallback, and a Twilio wake-up call that retries offline.
Keep transit APIs off the phone. A Cloudflare Worker normalizes MTA subway and bus, NJ Transit rail and bus, and PATH feeds into one JSON contract, checks the user’s Pro entitlement and caches realtime data briefly.
What I built
Trip-based wake-up alarms
Pick a destination and alarm range; a progress ring shows how close you are. Geofences fire even with the app closed.
Underground-proof backups
On-device alarms, a timed backup and a phone call that starts speaking when you answer.
Live Transit Nearby
Stops by route or by station within 0.10–4.00 miles, official line colors and minutes until departure.
Rest-time estimates
Apple MapKit routing ETAs with a crow-flies fallback, plus a sleep dashboard built around the commute.
Subscriptions and wallet
RevenueCat in-app purchases, Basic and Premium tiers, promo codes with an admin view.
Store readiness
In-app account deletion, UMP + ATT consent, privacy manifest, CI for iOS tests, worker typecheck and functions lint.
How it fits together
- 01SwiftUI appGeofence + trip state
- 02FirebaseAuth, Firestore, Functions
- 03WorkerPro check + transit API
- 04GTFS-RT feedsMTA · NJT · PATH
- 05TwilioWake-up call backup

What improved
Stack & why
- Swift 6 / SwiftUI / MapKitNative background location and the smoothest map experience on iPhone.
- FirebasePhone auth, cloud-synced trips and preferences, server functions.
- Cloudflare WorkersOne fast, cached API in front of messy transit feeds.
- RevenueCatSubscriptions and entitlements without hand-rolled receipt checks.
- TwilioA real phone call when a push notification is not enough.
- GitHub ActionsTests and lint on every pull request.
Build log
88 commits · Oct 2025 – Oct 2026Highlights from the repository’s commit history, in the original words.
Add comprehensive export and sleep analytics functionalityAdd access code entry for free user view in admin sectionTrip progress ring, alarm range, map theming, and layoutRedesign Sleep Dashboard around commute rest estimatesAdd PATH and NJ Transit live nearby via Worker GTFS feedsKeep wake-ups working underground: on-device alarms, timed backup, offline call retryAdd in-app account deletion (App Store guideline 5.1.1(v))Harden the alarm path for lock-screen and underground trips
