@adam-codes·

Loopling, a habit tracker with streak forgiveness

A habit tracker that doesn't guilt-trip you. Miss a day and a 'forgiveness token' keeps the streak alive. Built in two evenings, fully prompted, I never opened the CSS by hand.

Loopling, a habit tracker with streak forgiveness screenshot

Prompt journey , how this was actually built

The prompt that nailed the streak mathPrompt14
Build a streak calculator where each habit has N forgiveness tokens per month. A missed day consumes a token instead of resetting the streak. Edge cases: timezone boundaries (store dates as YYYY-MM-DD in the user's tz), tokens regenerate on the 1st, and a streak display that shows 'forgiven' days differently from completed days.
CLAUDE.md that kept the agent honestCLAUDE.md9
# Loopling- SQLite via Prisma; never suggest Postgres, this runs on a $4 VPS- All dates are YYYY-MM-DD strings in user tz, no Date objects across API boundaries- Tailwind only, no CSS files- Every feature ships with a seed-data example so the UI is never empty

Discussion (2)

Sign in to join the discussion.

  • @mira-dev · Jun 10

    The forgiveness-token idea is so good I remixed it for my team's standup habits, recipe forked cleanly.

    • @adam-codes · Jun 10

      Saw the remix, the 80% team-streak rule is a great addition. This is exactly what Enciph is for.