Skip to content
Back to projects
Mobile app

Habit tracker

A habit tracker that works offline, built so you can log a habit seconds after opening it.

Placeholder thumbnail for the Habit tracker project
store rating from 120 reviews
4.8
day-30 retention
62%
crash reports in the first month
0

The problem

Most habit apps make you sign up before you've tracked a single thing. We wanted the first habit logged within ten seconds of opening the app, and everything to work offline.

What I built

A local-first app on SQLite with optional cloud backup. Reminders use the platform notification APIs with a daily batch, so the app never needs to wake up in the background. Streak logic is a pure function with a test for every edge case we could think of, including timezone changes mid-streak.

What I learned

Timezones are the whole problem. A streak that resets at midnight has to decide whose midnight, and we settled on the device's local day with a grace window.