Apps and websites · TypeScript · Full-stack app

Streak.

A calm, minimal habit tracker. One tap a day keeps a streak going, and it syncs between your phone and laptop. Rest days and excused days keep a streak alive without adding to it, so one bad day doesn't wipe out a month. It installs on a phone like an app and works offline. Still in progress.

TypeScript React 19 Supabase PWA Vite Vitest

One habit over the last four weeks. Tap a day to change it: done, rest, excused, then empty again. The numbers come from the app's real streak.ts, the same file its tests cover. You can't change days in the future, and today doesn't count as missed until it's over.

  • Done
  • Rest day
  • Excused
  • Missed
  • Today
0
Current streak
0
Best streak
0
Times done
0
Rest days left this month

▬
Rest days
A few per month, set per habit. A rest day bridges the streak without adding to it. Rest days over the allowance count as misses, so the numbers always follow the current settings.
•
Excused days
For days you couldn't, like being sick. They also keep the streak alive. For a weekly habit they count toward the week's target.
7
Weekly habits
"4× a week" counts weeks, not days. The current week can only add to the streak. In the first week the target is capped at the days left, so starting on a Saturday isn't an instant miss.
↺
Nothing stored
Streaks are never saved. They're worked out from the check-ins every time, so a backfilled day or a changed setting can't leave a stale number behind.

The production build of the app. It needs an account, since your habits sync through Supabase and every account only sees its own data. For the full experience, open it on a phone and add it to the home screen.

Open Streak in its own tab

The streak maths and the new-habit chat are pure TypeScript with no UI and no clock, which makes them easy to test. 23 tests cover them.

How it's built

Taps show at once, then sync.

A check-in is shown straight away, queued on the device and sent to Supabase. If it fails, a notice offers Retry, and the queue also retries when you're back online or reopen the app. It even survives a reload.

Fast start, works offline.

The last loaded data is kept on the device, so Today opens instantly and works without a connection. Fresh data replaces it as soon as the network answers.

Private by default.

Row-level security in Postgres means each account can only read and write its own habits. The browser only ever has the public anon key.

Never colour alone.

Rest days carry a bar and excused days a dot, every day in the heatmap has a label, and muted text is checked for contrast.