<?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: krrrt</title>
    <description>The latest articles on DEV Community by krrrt (@krttherealest).</description>
    <link>https://dev.to/krttherealest</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%2F4112644%2F25b0a910-61e1-4b92-82c8-4448f8471792.png</url>
      <title>DEV Community: krrrt</title>
      <link>https://dev.to/krttherealest</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/krttherealest"/>
    <language>en</language>
    <item>
      <title>I Built 15 Digital Products in a Week Using Claude — Here's What Actually Broke</title>
      <dc:creator>krrrt</dc:creator>
      <pubDate>Sun, 06 Sep 2026 17:33:34 +0000</pubDate>
      <link>https://dev.to/krttherealest/i-built-15-digital-products-in-a-week-using-claude-heres-what-actually-broke-4bbc</link>
      <guid>https://dev.to/krttherealest/i-built-15-digital-products-in-a-week-using-claude-heres-what-actually-broke-4bbc</guid>
      <description>&lt;p&gt;Over the past week I built and shipped 15 digital products — 2 Chrome extensions, a resume scanner, a UI template, and 11 SaaS starter kits with genuinely different architectures: invoicing, feature flags with percentage rollouts, outbound webhooks with HMAC signing, usage-based billing via Stripe, and one that ships a real browser extension alongside the web app.&lt;/p&gt;

&lt;p&gt;Everything was built through Claude. But the part worth writing about isn't the generation — it's what testing actually surfaced.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bug #1: A hash function that wasn't as random as it looked
&lt;/h2&gt;

&lt;p&gt;The feature-flag starter needed deterministic percentage rollouts — the same user should always get the same result for a given flag, computed by hashing &lt;code&gt;flagKey:distinctId&lt;/code&gt; into a 0-99 bucket.&lt;/p&gt;

&lt;p&gt;The first version used a simple polynomial rolling hash:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\&lt;/code&gt;&lt;code&gt;js&lt;br&gt;
let hash = 0;&lt;br&gt;
for (let i = 0; i &amp;lt; seed.length; i++) {&lt;br&gt;
  hash = (hash * 31 + seed.charCodeAt(i)) &amp;gt;&amp;gt;&amp;gt; 0;&lt;br&gt;
}&lt;br&gt;
\&lt;/code&gt;&lt;code&gt;\&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Looked fine in isolation. But a test script checking independence between two &lt;em&gt;different&lt;/em&gt; flags for the same user turned up a problem: users "in" one flag's rollout were suspiciously likely to also be in an unrelated flag's rollout.&lt;/p&gt;

&lt;p&gt;The cause: two strings of the same length differing by one character in the same position produce hashes that differ by a &lt;em&gt;fixed&lt;/em&gt; offset with this kind of hash — not an independent, unpredictable one. &lt;code&gt;"flagA:user-0"&lt;/code&gt; and &lt;code&gt;"flagB:user-0"&lt;/code&gt; differ by a constant delta, and that delta is the same regardless of the user number.&lt;/p&gt;

&lt;p&gt;Fixed by switching to FNV-1a:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\&lt;/code&gt;&lt;code&gt;js&lt;br&gt;
let hash = 0x811c9dc5;&lt;br&gt;
for (let i = 0; i &amp;lt; seed.length; i++) {&lt;br&gt;
  hash ^= seed.charCodeAt(i);&lt;br&gt;
  hash = Math.imul(hash, 0x01000193);&lt;br&gt;
}&lt;br&gt;
hash = hash &amp;gt;&amp;gt;&amp;gt; 0;&lt;br&gt;
\&lt;/code&gt;&lt;code&gt;\&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Re-ran the independence test: two unrelated flags for the same 1,000 simulated users now disagreed about 47% of the time — right where independent 50/50 decisions should land.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bug #2: Building on an API that got deprecated mid-build
&lt;/h2&gt;

&lt;p&gt;The usage-based billing starter needed to report metered usage to Stripe. I started implementing it against &lt;code&gt;stripe.subscriptionItems.createUsageRecord()&lt;/code&gt; — the classic approach for metered billing.&lt;/p&gt;

&lt;p&gt;Turns out Stripe fully deprecated that approach in 2025 in favor of a new Billing Meters system. The old flow (attach a metered price directly to a subscription item, report usage against that item) doesn't exist anymore for new integrations — you now create a Meter object first, then report usage against a customer ID via &lt;code&gt;stripe.billing.meterEvents.create()&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Had to redo the schema (no longer need to track a subscription item ID at all — usage reports against the customer directly) and the reporting call. A reminder that "I've seen this pattern before" isn't the same as "this pattern is still current."&lt;/p&gt;

&lt;h2&gt;
  
  
  What's actually live
&lt;/h2&gt;

&lt;p&gt;12 of the 15 are live under one storefront if you want to look at the code or the live demos: &lt;a href="https://whop.com/table-export-tools/products/" rel="noopener noreferrer"&gt;https://whop.com/table-export-tools/products/&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg74dzxzmtq4p7i7v7z6l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg74dzxzmtq4p7i7v7z6l.png" alt=" " width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to go deeper on any of the architectures — team-based billing vs. per-user billing, CORS setup for a browser extension talking to an API, HMAC signing for outbound webhooks, whatever's interesting.&lt;/p&gt;

</description>
      <category>buildinpublic</category>
      <category>showdev</category>
      <category>sass</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
