WebShippedPrivate repo

Habit Flow API

Personal engineering2026

A habit-tracking REST API with streak calculation and break-prediction alerting.

TypeScript
Private repository

// stack

TypeScript
Node.js

// architecture

TypeScript REST API · streak calculation engine · break-prediction alerting

// overview

A TypeScript REST API for habit tracking. The interesting part is not CRUD but the streak engine: computing streaks correctly across timezones and gaps, and predicting when a user is about to break one so an alert can arrive before the fact rather than after.

// what was built

  • ·Streak calculation that holds up across timezones and irregular logging patterns.
  • ·Break-prediction alerts fire before a streak is lost, not after.