The Vault / Prompt

The prompt that nailed the streak math

From Loopling, a habit tracker with streak forgiveness by @adam-codes · copied 14 times

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.

Want the full story? The complete prompt journey, the demo, and the remix chain live on the ship page →

More Prompt recipes