The Vault / Prompt
The prompt that nailed the streak math
From Loopling, a habit tracker with streak forgiveness by @adam-codes · copied 14 times
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.Want the full story? The complete prompt journey, the demo, and the remix chain live on the ship page →