<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Kevin Steigerwald: Blog</title>
    <link>https://sproutworx.com/blog/index.html</link>
    <description>Notes on product, design, and building small things.</description>
    <language>en</language>
    <lastBuildDate>Wed, 25 Nov 2026 05:28:00 GMT</lastBuildDate>
    <atom:link href="https://sproutworx.com/blog/feed.xml" rel="self" type="application/rss+xml"/>
    <item>
      <title>CodeDrop: giving away promo codes without the chore</title>
      <link>https://sproutworx.com/blog/codedrop.html</link>
      <guid>https://sproutworx.com/blog/codedrop.html</guid>
      <pubDate>Tue, 24 Nov 2026 12:00:00 GMT</pubDate>
      <description>Why giving away App Store promo codes is such a chore, and the small app I built to hand them out for me.</description>
      <content:encoded><![CDATA[<p>CodeDrop is a small web app I built to give away App Store promo codes for iOS apps. You share one link, each person signs in with Apple, and they get a unique and private redemption code.</p>
<p>I&#39;m using it right now for Bola &amp; the Abyss: <a href="https://sproutworx.com/codedrop/a/the-abyss">sproutworx.com/codedrop/a/the-abyss</a>.</p>
<h2>The problem</h2>
<p>Giving away promo codes is a chore. There are two common ways to tackle it, both of which annoy me.</p>
<p><strong>Post the whole list.</strong> It&#39;s quick for me, but now everyone has to try codes one by one until they find one that hasn&#39;t been used. Usually a few people (or bots) grab a handful each, and the list is dead in an hour.</p>
<p><strong>Hand them out one at a time.</strong> Everyone gets a working code, but it eats an entire day of answering DMs and replies, keeping track of who got what, and saying sorry to the people who showed up late.</p>
<p>Then there are Apple&#39;s rules, which most people don&#39;t know about:</p>
<ul>
<li>Codes only work in the countries where the app is actually for sale. Send one to someone in the wrong country and it will fail.</li>
<li>Each code is supposed to go out with Apple&#39;s terms, which change by country.</li>
<li>Codes expire, so whatever you don&#39;t give away in time is wasted.</li>
</ul>
<p>None of this is hard on its own. It&#39;s just a lot of small, fiddly work, every time I want to promote an app.</p>
<h2>What I wanted</h2>
<ul>
<li><strong>One link per app.</strong> Something I can post anywhere and forget about.</li>
<li><strong>One code per person.</strong> No guessing, no list to scrape, and the same code is never given out twice.</li>
<li><strong>Codes consumed by people, not bots.</strong> Without asking anyone to make an account or hand over an email.</li>
<li><strong>Apple&#39;s rules handled for me.</strong> The right countries, and the right terms for each one.</li>
<li><strong>A way to pace it.</strong> So one big post doesn&#39;t drain every code in ten minutes.</li>
<li><strong>Basically free to run.</strong> Promo codes don&#39;t make money, so the thing giving them away shouldn&#39;t cost any either.</li>
</ul>
<h2>The approach</h2>
<p>Each of these needs turned into a feature.</p>
<h3>One page, one button</h3>
<p>Every app gets a single page: icon, name, price, and a &quot;Get my code&quot; button. Everything else (screenshots, description, ratings) sits below the button for anyone who wants to read more. The page pulls those details from the App Store automatically, so adding a new app is just pasting its ID in the admin panel.</p>
<img src="/blog/images/codedrop-landing.jpg" alt="The CodeDrop page for Bola & the Abyss: icon, name, price, and a Get my code button" width="360">

<h3>Sign in with Apple as the gate</h3>
<p>To get a code, you sign in with Apple, solving three problems at once:</p>
<ul>
<li>Bots can&#39;t easily get past it.</li>
<li>Everyone who can redeem a code already has an Apple ID, so there&#39;s nothing new to sign up for.</li>
<li>One Apple ID gets one code. If you come back later, or on another device, you see the same code again instead of a new one.</li>
</ul>
<p>I don&#39;t keep your name or email. I store a scrambled (salted and hashed) version of the Apple ID, which is enough to say &quot;this person already has a code&quot; and nothing more.</p>
<h3>Never the same code twice</h3>
<p>The most important rule is that two people can never get the same code, even if they click at the exact same moment. Handing out a code is a single all-or-nothing step: it marks the code as taken, records who got it, and counts it against the day&#39;s limit together. If any part fails, none of it happens. Unclaimed codes are never shown anywhere public, so there&#39;s no list to scrape.</p>
<img src="/blog/images/codedrop-code.jpg" alt="The code page: your code, a Redeem button, and Apple's terms for your country" width="360">

<h3>Country checks and the right terms</h3>
<p>The page checks which country you&#39;re visiting from. If the app isn&#39;t sold there, you get a polite &quot;not available in your region&quot; instead of a code that won&#39;t work.</p>
<p>For the terms, I took Apple&#39;s wording and built in all 175 App Store countries, each with the Apple company that sells apps there. Your code page shows the version for your country, filled in with your country name, the expiry date, and my developer name. I don&#39;t have to copy and paste anything per country.</p>
<h3>Pacing and alerts</h3>
<p>Each app can have a daily cap, so a post that takes off doesn&#39;t burn every code in one afternoon. There are also limits on how fast any one browser or network can try, to slow down anyone trying to game it.</p>
<p>I get an email when an app is running low on codes, and another if claims suddenly jump, so I can pause it if something looks off.</p>
<h3>An admin side that&#39;s quick to use</h3>
<p>I generate codes in App Store Connect, paste them in, review them, and save. I can pause an app, change the cap, or see how many codes are left.</p>
<p>The most useful tool turned out to be a preview. I can see the exact page a visitor in Japan, Brazil, or Germany would see, terms and all, without using up a real code.</p>
<h3>Cheap to run</h3>
<p>It runs on AWS, built with CDK, and there are no servers sitting around waiting. Each request runs as a Lambda function behind an API Gateway HTTP API, served from the same CloudFront setup as the rest of sproutworx.com. Codes and claims live in a single DynamoDB table billed per request. Secrets sit in SSM Parameter Store, and a small hourly job sends low-stock and spike alerts through SNS. When nobody is claiming codes, it costs next to nothing, and even a busy day is a matter of cents. There&#39;s no paid service in the middle of it.</p>
<h2>What&#39;s next</h2>
<p>A few things I&#39;d like to add:</p>
<ul>
<li><strong>Fill countries from the App Store.</strong> Right now I set the allowed countries by hand. App Store Connect can tell me exactly where an app is sold, so that step could be one click.</li>
<li><strong>A clearer import.</strong> Pasting codes is a two-step review-then-save flow, and I missed the second step the first time I used it. It&#39;s better now, but still not obvious enough.</li>
<li><strong>Maybe open it up.</strong> If other indie developers would find this useful, I&#39;d like to let them add their own apps.</li>
</ul>
<p>If you&#39;d like a free copy of Bola &amp; the Abyss, here&#39;s the link: <a href="https://sproutworx.com/codedrop/a/the-abyss">sproutworx.com/codedrop/a/the-abyss</a></p>
]]></content:encoded>
    </item>
  </channel>
</rss>
