<?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: Doru</title>
    <description>The latest articles on DEV Community by Doru (@loquit).</description>
    <link>https://dev.to/loquit</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%2F4075149%2Feb513809-e9f2-45e8-82b0-cbbf7e5fd252.png</url>
      <title>DEV Community: Doru</title>
      <link>https://dev.to/loquit</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/loquit"/>
    <language>en</language>
    <item>
      <title>My paywall was eating people's notes</title>
      <dc:creator>Doru</dc:creator>
      <pubDate>Wed, 12 Aug 2026 18:11:10 +0000</pubDate>
      <link>https://dev.to/loquit/my-paywall-was-eating-peoples-notes-3ggj</link>
      <guid>https://dev.to/loquit/my-paywall-was-eating-peoples-notes-3ggj</guid>
      <description>&lt;p&gt;I make a browser extension for taking notes. Nothing dramatic: you hit&lt;br&gt;
Ctrl+Shift+Q, a popup opens, you type, it saves.&lt;/p&gt;

&lt;p&gt;Last week I went looking for reasons the conversion rate was bad. I found&lt;br&gt;
something worse.&lt;/p&gt;
&lt;h2&gt;
  
  
  The free tier
&lt;/h2&gt;

&lt;p&gt;There's a free plan and a one-time Pro unlock. The free plan caps you at a few&lt;br&gt;
notes, and — this was the part I'd stopped thinking about — 500 characters per&lt;br&gt;
note.&lt;/p&gt;

&lt;p&gt;Here is where that cap lived:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;saveCurrentNote&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="c1"&gt;// ...gather title and content from the editor...&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;limits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;getCurrentLimits&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;limits&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;maxCharsPerNote&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="kc"&gt;Infinity&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nx"&gt;elements&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;noteContentEditor&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;charCount&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;elements&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;noteContentEditor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="dl"&gt;''&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;length&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;charCount&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;limits&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;maxCharsPerNote&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nf"&gt;showLimitWarning&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;limits&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;maxCharsPerNote&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt; character limit reached&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
      &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;updateNote&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;noteToSave&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;title&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;content&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;saveCurrentNote&lt;/code&gt; is the autosave. It runs on a timer while you type.&lt;/p&gt;

&lt;p&gt;So on a free plan, once you passed 500 characters, autosave stopped writing.&lt;br&gt;
Not "stopped writing the extra characters" — stopped writing. The &lt;code&gt;return&lt;/code&gt; sits&lt;br&gt;
above &lt;code&gt;db.updateNote&lt;/code&gt;. Title, body, everything.&lt;/p&gt;

&lt;p&gt;You'd get a toast saying you'd hit a limit, an upgrade dialog would open on top&lt;br&gt;
of what you were writing, and then when you closed the popup, everything since&lt;br&gt;
your last save under the limit was gone.&lt;/p&gt;

&lt;p&gt;I wrote that. It's been live for months.&lt;/p&gt;
&lt;h2&gt;
  
  
  It gets worse than that
&lt;/h2&gt;

&lt;p&gt;The extension gives everyone 7 days of full access when they install it. During&lt;br&gt;
those 7 days there's no character cap, so people write real notes — long ones.&lt;/p&gt;

&lt;p&gt;Then the trial ends, and the cap comes back.&lt;/p&gt;

&lt;p&gt;Now every one of those long notes is permanently uneditable. Open one, fix a&lt;br&gt;
typo, autosave fires, character count is over 500, &lt;code&gt;return&lt;/code&gt;. The note can never&lt;br&gt;
be saved again. You can read it. You can't touch it.&lt;/p&gt;

&lt;p&gt;I'd built a mechanism that punished exactly the people who had used the product&lt;br&gt;
enough to consider paying for it.&lt;/p&gt;
&lt;h2&gt;
  
  
  The part that actually stings
&lt;/h2&gt;

&lt;p&gt;I have an end-to-end test suite. 25 tests, all green — popup flows, note&lt;br&gt;
creation, reminders, folders. It never caught this.&lt;/p&gt;

&lt;p&gt;Here's the fixture every one of those tests used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;seedChromeStorage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="na"&gt;hasLaunched&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;proUnlocked&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;        &lt;span class="c1"&gt;// &amp;lt;-- this&lt;/span&gt;
  &lt;span class="na"&gt;trialStartDate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;proUnlocked: true&lt;/code&gt;. Every test ran as a paying customer.&lt;/p&gt;

&lt;p&gt;Twenty-five passing tests, and not one of them had ever been a free user. The&lt;br&gt;
entire free branch of the product — the one most people actually experience —&lt;br&gt;
had zero coverage. I'd only ever tested the version that paying customers see.&lt;/p&gt;

&lt;p&gt;When I finally wrote a test that expired the trial first, it failed immediately.&lt;br&gt;
Not on my bug, though. It timed out waiting for the folder tabs to appear.&lt;/p&gt;

&lt;p&gt;Folders are a Pro feature. On the free plan they're hidden. My test helper's&lt;br&gt;
"wait until the popup is ready" function waited for an element that, by design,&lt;br&gt;
does not exist for free users. The helper had the same blind spot as the tests.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two smaller things I found in the same corner
&lt;/h2&gt;

&lt;p&gt;The store listing promised "up to 10 notes" on the free plan. The code gave 5.&lt;br&gt;
I have no idea when they drifted apart. Somebody installs it, reads the listing,&lt;br&gt;
hits the wall at half the number they were told, and leaves. That's not a bug in&lt;br&gt;
any code path — every function did what it said — but the product lied to people&lt;br&gt;
in the one moment where it asks them for money.&lt;/p&gt;

&lt;p&gt;And the trial itself ran on wall-clock time from the moment you first opened the&lt;br&gt;
popup. Install it, glance at it, get distracted, come back two weeks later:&lt;br&gt;
trial's gone. You never saw a single Pro feature, and now you're being asked to&lt;br&gt;
pay for things you've never used. I changed it to count only the days the popup&lt;br&gt;
is actually opened. Put it down for a month, the trial waits for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I changed
&lt;/h2&gt;

&lt;p&gt;The character cap is gone. Not "raised" — gone. A note-taking app that refuses&lt;br&gt;
to save what you typed isn't a limited product, it's a broken one. If I need&lt;br&gt;
free-tier pressure, the note count already does that job, and it does it without&lt;br&gt;
destroying anything.&lt;/p&gt;

&lt;p&gt;The free note count is 10 now, matching what the listing had been claiming all&lt;br&gt;
along.&lt;/p&gt;

&lt;p&gt;The free plan has tests. Two of them, and they're the first tests in the project&lt;br&gt;
that ever ran as a non-paying user. Before I trusted them I put the old code&lt;br&gt;
back and watched them both fail — a test that passes against a broken build&lt;br&gt;
isn't a test, it's decoration.&lt;/p&gt;

&lt;h2&gt;
  
  
  The thing I keep thinking about
&lt;/h2&gt;

&lt;p&gt;None of this showed up as an error. Nothing threw. No console warning, no crash&lt;br&gt;
report, no support email. &lt;code&gt;return&lt;/code&gt; is a perfectly valid statement.&lt;/p&gt;

&lt;p&gt;The users who lost work didn't file a bug. They just stopped opening it, and&lt;br&gt;
uninstalls look identical to ordinary churn from the outside.&lt;/p&gt;

&lt;p&gt;I found it by reading the paywall code looking for conversion problems. If I'd&lt;br&gt;
been chasing a crash, or reading analytics, or waiting for someone to complain,&lt;br&gt;
it would still be there.&lt;/p&gt;

&lt;p&gt;Go and read your own paywall. Not the happy path — the branch that runs after&lt;br&gt;
someone decides not to pay you.&lt;/p&gt;




&lt;p&gt;The extension is Quick Notes. If you want to look at the thing I've been describing: &lt;a href="https://getquicknotes.vercel.app" rel="noopener noreferrer"&gt;getquicknotes.vercel.app&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>testing</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
