DEV Community· Adrian Petre·· 1 小時前AI 評分35
為甚麼我的習慣追蹤 App 永不把連續紀錄歸零
Why my habit app never resets your streak to zero
AI 導讀
Anchor 是一款 iPhone 習慣追蹤 App,以保護連續紀錄的設計避免用戶因漏做一天而失去累積進度。漏做後等級不會下降,補做當天可獲 2x XP;App 亦提供晚間打卡、Anchor AI 建議及協助應對渴求的流程。Anchor 提供 7-day free trial,之後可使用 Anchor Pro。
正文
Most habit trackers are built around one number: the streak. Miss a day and it drops to zero. That rule is simple to build, but it punishes the exact moment someone needs help the most, and a lot of people quit right there.
I built Anchor (iPhone) around the opposite rule: one bad day shouldn't wipe out weeks of progress. Here's how that shows up in the design, plus a few notes on the stack.
The rules
- Streak shields. A shield automatically covers a missed day, so a rough Tuesday doesn't erase a 40-day run.
- Your level never drops. XP only goes up. A miss pauses you, it doesn't push you back.
- 2x XP the day after a miss. The comeback day is the most valuable day, so it pays the most.
- Honest slips still earn XP. If logging a slip costs you, people stop logging. Rewarding honesty keeps the data real.
- An urge flow. When a craving hits, a short guided flow helps you name what you actually need and ride it out (one tap from the lock screen).
- Evening check-in + Anchor AI. A one-minute check-in at night, and an AI that looks at close calls and slips and suggests small changes you can accept or ignore.
- Harbor. A moderated 18+ space with small anonymous crews, no profiles or followers.
Stack
- React Native with Expo (expo-router), written in TypeScript
- TanStack Query with a persisted cache so the app works offline and syncs later
- HealthKit to auto-complete habits like walking
- Clerk for auth (Sign in with Apple), Sentry for crash reports
- Home-screen widgets and quick actions via Expo config plugins and Apple targets
What I'd like feedback on
- Does "your level never drops" feel motivating, or does it remove stakes?
- Is 2x XP after a miss the right size, or should the comeback bonus scale with the streak you protected?
- For people breaking a habit (not building one), is logging slips something you'd actually do?
Anchor has a 7-day free trial, then Anchor Pro. If you try it, I'd love blunt feedback in the comments.
來源:DEV Community · dev.to