<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Adrian Petre</title>
    <description>The latest articles on DEV Community by Adrian Petre (@adrian_petre_19d15df69db2).</description>
    <link>https://dev.to/adrian_petre_19d15df69db2</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1858532%2F06adf07f-2f9a-4d75-a91f-b59402ec88a9.png</url>
      <title>DEV Community: Adrian Petre</title>
      <link>https://dev.to/adrian_petre_19d15df69db2</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/adrian_petre_19d15df69db2"/>
    <language>en</language>
    <item>
      <title>Why my habit app never resets your streak to zero</title>
      <dc:creator>Adrian Petre</dc:creator>
      <pubDate>Wed, 25 Nov 2026 23:55:01 +0000</pubDate>
      <link>https://dev.to/adrian_petre_19d15df69db2/why-my-habit-app-never-resets-your-streak-to-zero-19dp</link>
      <guid>https://dev.to/adrian_petre_19d15df69db2/why-my-habit-app-never-resets-your-streak-to-zero-19dp</guid>
      <description>&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;Anchor&lt;/strong&gt; (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.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rules
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Streak shields.&lt;/strong&gt; A shield automatically covers a missed day, so a rough Tuesday doesn't erase a 40-day run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your level never drops.&lt;/strong&gt; XP only goes up. A miss pauses you, it doesn't push you back.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;2x XP the day after a miss.&lt;/strong&gt; The comeback day is the most valuable day, so it pays the most.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Honest slips still earn XP.&lt;/strong&gt; If logging a slip costs you, people stop logging. Rewarding honesty keeps the data real.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An urge flow.&lt;/strong&gt; 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).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Evening check-in + Anchor AI.&lt;/strong&gt; 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.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Harbor.&lt;/strong&gt; A moderated 18+ space with small anonymous crews, no profiles or followers.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;React Native with &lt;strong&gt;Expo&lt;/strong&gt; (expo-router), written in TypeScript&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TanStack Query&lt;/strong&gt; with a persisted cache so the app works offline and syncs later&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HealthKit&lt;/strong&gt; to auto-complete habits like walking&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Clerk&lt;/strong&gt; for auth (Sign in with Apple), &lt;strong&gt;Sentry&lt;/strong&gt; for crash reports&lt;/li&gt;
&lt;li&gt;Home-screen widgets and quick actions via Expo config plugins and Apple targets&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I'd like feedback on
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Does "your level never drops" feel motivating, or does it remove stakes?&lt;/li&gt;
&lt;li&gt;Is 2x XP after a miss the right size, or should the comeback bonus scale with the streak you protected?&lt;/li&gt;
&lt;li&gt;For people breaking a habit (not building one), is logging slips something you'd actually do?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Anchor has a 7-day free trial, then Anchor Pro. If you try it, I'd love blunt feedback in the comments.&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://getanchor.help" rel="noopener noreferrer"&gt;https://getanchor.help&lt;/a&gt;&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>reactnative</category>
      <category>ios</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
