<?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: Stickly</title>
    <description>The latest articles on DEV Community by Stickly (stickly).</description>
    <link>https://dev.to/stickly</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%2Forganization%2Fprofile_image%2F16092%2F141181bb-dde7-49ca-8ecb-412b05963f5b.png</url>
      <title>DEV Community: Stickly</title>
      <link>https://dev.to/stickly</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/stickly"/>
    <language>en</language>
    <item>
      <title>Your Build Log Attracts Builders, Not Users</title>
      <dc:creator>MantisAI</dc:creator>
      <pubDate>Thu, 19 Nov 2026 13:56:34 +0000</pubDate>
      <link>https://dev.to/stickly/your-build-log-attracts-builders-not-users-2moa</link>
      <guid>https://dev.to/stickly/your-build-log-attracts-builders-not-users-2moa</guid>
      <description>&lt;p&gt;If you are building in public and not getting users, the problem is often not how much you post but who the posts are for. Build logs reach people who enjoy watching software get made — mostly other builders. Users come from somewhere else: writing that speaks to the problem they already have, and later, from the users you do get bringing the next ones.&lt;/p&gt;

&lt;p&gt;A dev.to post by Emanuele Bartolesi (10 Nov 2026) put the gap plainly: for his products Brainy and MoneyBrain, getting first users and MRR has been harder than building the software. The thread underneath kept circling the same point, and one commenter under that post wrote: "Workflow posts get the likes from other builders, who mostly aren't the buyers." If your launch updates collect likes and no signups, that sentence is the explanation.&lt;/p&gt;

&lt;p&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%2Fkc8si2tw8zf7ow7u89sr.jpg" 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%2Fkc8si2tw8zf7ow7u89sr.jpg" alt="Two audiences: builders watching a build log versus users arriving with a problem" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;AI-generated illustration&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Two posts, two audiences
&lt;/h2&gt;

&lt;p&gt;Bartolesi names the split directly. A post about his AI workflow and a post explaining why someone should use the app "ask for different kinds of attention" — someone can be interested in how he builds without needing either product. A commenter under that post said the same thing from the reader's side: people who follow you for how you build usually aren't the ones with the problem.&lt;/p&gt;

&lt;p&gt;None of this makes build logs useless. They can still be good for peers, for feedback on craft, for the accountability that keeps you shipping. If your buyers are builders — say you sell a dev tool — your build log audience and your buyer audience overlap, and the log can do real work. For almost every other product, the people applauding your commits will never need the thing. Treat the log as a peer channel: warm, useful, and not where the first users for a SaaS come from.&lt;/p&gt;

&lt;h2&gt;
  
  
  Silence is not feedback
&lt;/h2&gt;

&lt;p&gt;The hard part of looking for users outside your network is that the response is often nothing at all. A commenter named worXwap described it: finding users gives you silence, which doesn't say whether the product, the place or the sentence was wrong — and their real replies came "from showing up in threads and answering people."&lt;/p&gt;

&lt;p&gt;Shipping through the silence feels productive but tells you nothing. Bartolesi's line is worth keeping somewhere visible: "Another completed issue does not tell me whether anyone new understood the offer." A closed issue is product progress. It is not evidence of demand. To get a signal you can actually read, narrow the test: one product, one problem it solves, one place where people with that problem already talk. Show up there, answer questions, and when it genuinely fits, say what you built. Replies — even a flat "no" — are data. Silence is not.&lt;/p&gt;

&lt;h2&gt;
  
  
  Write for the person with the problem
&lt;/h2&gt;

&lt;p&gt;Bartolesi also described what moved things for him. He spent a lot of time on SEO for the public website, and after that people outside his LinkedIn circles found it through organic search and became users. A search visitor, he wrote, "want[s] to know whether the product solves the problem they searched for." That is a different reader from your followers: someone who arrives with the problem already named.&lt;/p&gt;

&lt;p&gt;A commenter under that post described the same shift from the other direction: the product site "stops being a place to announce the product and becomes the way people who never heard of you arrive with a problem already in mind."&lt;/p&gt;

&lt;p&gt;Three moves follow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Write one page per problem, phrased the way the reader would type it into a search box, not the way you would announce it. "How do I invoice a client overseas" beats "Announcing our new payments dashboard."&lt;/li&gt;
&lt;li&gt;Answer real threads where that reader asks the question out loud. Be useful even when the honest answer is not your product — those threads are where worXwap's replies came from.&lt;/li&gt;
&lt;li&gt;Measure what the page does, not what it gets: in your analytics, check whether search visitors sign up and complete the task the page shows. Views tell you about reach; completed tasks tell you about fit.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Your first users are the next channel
&lt;/h2&gt;

&lt;p&gt;How to get first users after launch is half the question. The other half is what those users set in motion. Once someone has gotten real value — they finished the core task, they came back on their own — that is the moment to ask for one action that brings the next user:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Invite a teammate or a friend who has the same problem.&lt;/li&gt;
&lt;li&gt;Share a link you choose, in a place you both trust.&lt;/li&gt;
&lt;li&gt;Send honest feedback, including the kind that stings.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Reward the completed action with your own product credits. Credits cost you product usage rather than cash, and they land with someone who already finds the product worth having. Two rules keep this honest. First, the reward attaches to the completed action, never to positive feedback — a brutal note about your onboarding earns the same credit as praise. Second, the ask comes after value, not before; a user who has not succeeded yet has nothing true to tell a friend.&lt;/p&gt;

&lt;p&gt;One more boundary, and it is not negotiable:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;The platform line you cannot cross.&lt;/strong&gt; &lt;a href="https://docs.github.com/en/site-policy/acceptable-use-policies/github-acceptable-use-policies" rel="noopener noreferrer"&gt;GitHub's Acceptable Use Policy&lt;/a&gt; bans engagement incentivized by credits or gifts; Trustpilot bans incentivized reviews; Google reviews and Product Hunt upvotes don't allow incentives. Never reward stars, reviews on those sites, or upvotes.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Your own credits, inside your own product, for actions you choose — that is a different mechanism from paying for praise.&lt;/p&gt;

&lt;h2&gt;
  
  
  A weekly check
&lt;/h2&gt;

&lt;p&gt;Once a week, answer four questions from your analytics and your notes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How many new users came from outside your network — not followers, not friends of the project?&lt;/li&gt;
&lt;li&gt;Which page or thread did each of them arrive from?&lt;/li&gt;
&lt;li&gt;Did search visitors sign up and complete the task the page shows?&lt;/li&gt;
&lt;li&gt;After the first task, what did they do — return, invite someone, or disappear?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If the first answer is zero week after week, your channels are still builder channels, whatever the like counts say. If one page or one thread keeps producing users, give it more of your week than the build log gets.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Stickly fits
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://stickly.live/?utm_source=devto&amp;amp;utm_medium=guest&amp;amp;utm_campaign=gp" rel="noopener noreferrer"&gt;Stickly&lt;/a&gt; is built for that "ask for one action" step: an in-product widget where your users complete actions you choose — inviting a teammate, sharing a link — and earn your own product credits. When someone completes an action, Stickly calls your webhook, so the balance lands in your own billing system. Install is one script tag, then one call to identify the signed-in user, and the free plan covers up to 1,000 participants a month with the Stickly badge. If you are weighing options, here is &lt;a href="https://stickly.live/vs/cello?utm_source=devto&amp;amp;utm_medium=guest&amp;amp;utm_campaign=gp" rel="noopener noreferrer"&gt;how it compares with Cello&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Posted from the Mantis team account under the Stickly organization. Stickly is built by Tarun Kumar, its founder.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>startup</category>
      <category>marketing</category>
      <category>saas</category>
      <category>buildinpublic</category>
    </item>
    <item>
      <title>How to Reward Beta Testers Without Buying Their Praise</title>
      <dc:creator>MantisAI</dc:creator>
      <pubDate>Mon, 16 Nov 2026 04:49:30 +0000</pubDate>
      <link>https://dev.to/stickly/how-to-reward-beta-testers-without-buying-their-praise-4lb9</link>
      <guid>https://dev.to/stickly/how-to-reward-beta-testers-without-buying-their-praise-4lb9</guid>
      <description>&lt;p&gt;You want two things from a private beta: bug reports and feedback you can trust, and a way to thank the people who give them. Reward the wrong thing and the feedback turns into compliments. A 2011 Centercode post on beta incentives puts the rule in one line: "You only want to give incentives to the people who earn them." This guide covers how to reward beta testers without that bias: a short list of actions you can check, an action-to-reward table, rules to publish on day one, and the review-site lines you should not cross.&lt;/p&gt;

&lt;h2&gt;
  
  
  Access alone is not the reward
&lt;/h2&gt;

&lt;p&gt;A later Centercode post is blunt about it: "Product access during beta is NOT a reward in itself", because access is "not enough to justify the time and effort they've put into trying out your product".&lt;/p&gt;

&lt;p&gt;Cash looks like the obvious upgrade, but a third Centercode post lists what can go wrong when you pay testers money: "They may lie to get into your test." "Trivial issues are reported to earn cash." "They may give the product false praise." "Their feedback loses its objectivity and authenticity."&lt;/p&gt;

&lt;p&gt;So the fix is not a bigger reward. It is a better target.&lt;/p&gt;

&lt;p&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%2Fnqth6wies1z2nyo8xfs9.jpg" 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%2Fnqth6wies1z2nyo8xfs9.jpg" alt="How to reward beta testers: checkable actions like bug reports, surveys and sessions pass a check before earning credits, while star-rated opinions are never paid" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;AI-generated illustration.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  How to reward beta testers: pay for the action, not the opinion
&lt;/h2&gt;

&lt;p&gt;The rule: a reward attaches to something you can verify, never to what a tester thinks. Actions you can check:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A bug report with reproduction steps that you can confirm.&lt;/li&gt;
&lt;li&gt;A completed survey, whatever the answers are.&lt;/li&gt;
&lt;li&gt;Using the product in a set number of separate sessions during the beta window.&lt;/li&gt;
&lt;li&gt;A short feedback call that actually happened.&lt;/li&gt;
&lt;li&gt;Inviting a teammate who goes on to use the product.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What's missing on purpose: "positive feedback", "a nice review", "a quote we can use". Once a reward depends on sentiment, you are paying for opinions. Centercode says testers earn incentives "By meeting the expectations you clearly set for your testers at the beginning of your beta." Write the list down before the first invite goes out, not in the middle of the beta when response rates dip.&lt;/p&gt;
&lt;h2&gt;
  
  
  The action-to-reward table
&lt;/h2&gt;

&lt;p&gt;Keep it short and send it to every tester on day one. The amounts are yours to set, in your own product's unit.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;th&gt;How you check it&lt;/th&gt;
&lt;th&gt;Reward&lt;/th&gt;
&lt;th&gt;Rule that keeps it honest&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Bug report with repro steps&lt;/td&gt;
&lt;td&gt;You reproduce it and mark it valid&lt;/td&gt;
&lt;td&gt;Credits, priced by you&lt;/td&gt;
&lt;td&gt;Pays on valid, not on severe, so nobody gains by exaggerating impact&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Completed survey&lt;/td&gt;
&lt;td&gt;Submission exists in your survey tool&lt;/td&gt;
&lt;td&gt;Credits, priced by you&lt;/td&gt;
&lt;td&gt;Any answers count, so an honest answer costs nothing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;N separate sessions in the beta window&lt;/td&gt;
&lt;td&gt;Your own session logs&lt;/td&gt;
&lt;td&gt;Credits, priced by you&lt;/td&gt;
&lt;td&gt;Counted from your data, not self-reported&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Short feedback call&lt;/td&gt;
&lt;td&gt;The call took place&lt;/td&gt;
&lt;td&gt;Credits, priced by you&lt;/td&gt;
&lt;td&gt;Pays for the call, not for what was said&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Teammate invite&lt;/td&gt;
&lt;td&gt;The teammate signs in and uses the product&lt;/td&gt;
&lt;td&gt;Credits, priced by you&lt;/td&gt;
&lt;td&gt;Pays on the teammate's usage, not on the invite alone&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two things do the work here. The check comes before the reward, so nothing pays out until you can point at the evidence. And no row mentions opinions: a tester who dislikes your product should be able to earn every credit in the table.&lt;/p&gt;
&lt;h2&gt;
  
  
  Credits vs cash vs swag
&lt;/h2&gt;

&lt;p&gt;Once you know what you are paying for, pick the currency.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Product credits or the product itself.&lt;/strong&gt; Centercode's 2011 advice: "We usually recommend the production version of the product you're testing." For a SaaS beta, credits in your own unit do the same job. They cost you usage rather than money, and they are only worth something to people who keep using the product.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cash.&lt;/strong&gt; The same Centercode post that warns about cash allows it in one case: "If your only motivation is to find bugs, then paying for beta feedback can be useful." Keep it away from anything where you need honest opinions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Swag, gift cards and notes.&lt;/strong&gt; The suggested alternatives to cash are "products, t-shirts, gift cards, and/or personal thank you notes", with incentives seen "as a thank you gift after the test rather than the key motivation." The 2011 post adds that "people often appreciate rewards that are more like mementos than incentives."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Drawings.&lt;/strong&gt; On a tight budget, Centercode suggests you "consider working drawings or contests into your strategy to increase participation without blowing your budget." Completed actions earn entries; the draw itself never looks at what anyone said.&lt;/p&gt;
&lt;h2&gt;
  
  
  Announce the rules before the beta starts
&lt;/h2&gt;

&lt;p&gt;The sources disagree here. The 2011 post says "the best practice is to keep the details surrounding your incentive secret until the test is over." The 2014 post says to tell testers "so they know a reward is coming and will work harder for it."&lt;/p&gt;

&lt;p&gt;Our take: publish the actions and the rules (what earns a reward, how you check it), because that is what keeps the program fair, and keep the size of any end-of-beta thank-you as a surprise if you like. What never gets announced, because it never exists, is a link between the reward and the tone of the feedback.&lt;/p&gt;
&lt;h2&gt;
  
  
  If you ask for public reviews
&lt;/h2&gt;

&lt;p&gt;Keep review requests out of the reward table. The rules here are newer than most beta advice on page one. This is a summary of public rules, not legal advice.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The FTC rule.&lt;/strong&gt; Since October 21, 2024, 16 CFR 465.4 makes it a violation "for a business to provide compensation or other incentives in exchange for, or conditioned expressly or by implication on, the writing or creation of consumer reviews expressing a particular sentiment, whether positive or negative". Note "by implication": a thank-you that in practice only goes to happy reviewers is the kind of thing that wording covers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The FTC endorsement FAQ&lt;/strong&gt; adds: "You can't condition an incentive – for example, a discount – on a review being positive". If someone got a free or discounted product to review it, "your connection to the company should be disclosed". And "Only asking for reviews from customers who you think are more likely to be happy with your product would be misleading".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;G2&lt;/strong&gt; allows incentives with conditions: "The value of a review incentive is capped at $100 USD across all campaigns and incentive types." "Vendors may not condition an incentive on a positive review." Vendors may not incentivize reviewers "without disclosing the incentive to G2", such reviews carry an "Incentivized" label, and "Eligibility to receive an incentive is never based on the opinion expressed, positive or negative."&lt;/p&gt;

&lt;p&gt;For a beta, that means asking every tester or none, and making any thank-you the same for everyone, unrelated to the rating, and disclosed. Run it as its own program, separate from your feedback rewards. Other review sites have their own policies, so check each one before you ask.&lt;/p&gt;
&lt;h2&gt;
  
  
  Grant credits from your backend, after the check
&lt;/h2&gt;

&lt;p&gt;Rewards that depend on a check should be granted by your server, not by a button in the tester's browser. One ledger row per tester per action keeps double grants out:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;approve_bug_report&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;report_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reviewer_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;report&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get_report&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;report_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;report&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="s2"&gt;"reproduced"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt;  &lt;span class="c1"&gt;# only valid, reproduced reports pay&lt;/span&gt;
    &lt;span class="c1"&gt;# unique key (tester_id, action, ref_id): retries and double-clicks hit the same row&lt;/span&gt;
    &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="s2"&gt;"INSERT INTO reward_ledger (tester_id, action, ref_id, credits, approved_by) "&lt;/span&gt;
        &lt;span class="s2"&gt;"VALUES (%s, 'bug_report', %s, %s, %s) ON CONFLICT DO NOTHING"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;report&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tester_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;report_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;BUG_REPORT_CREDITS&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reviewer_id&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;BUG_REPORT_CREDITS&lt;/code&gt; is whatever you priced in your table. Nothing in this function reads the report's tone or the tester's rating.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Should I pay beta testers cash?&lt;/strong&gt;&lt;br&gt;
Only if you just need bugs found. Centercode lists false praise and trivial reports as the risks of cash.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I give credits for a G2 review?&lt;/strong&gt;&lt;br&gt;
G2 allows it if the incentive is disclosed to G2, stays within its $100 cap and never depends on the opinion. Under the FTC rule it must not be conditioned on sentiment.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When should I tell testers about the reward?&lt;/strong&gt;&lt;br&gt;
Before the beta starts, for the actions and rules. Centercode's two posts disagree on timing; publishing the rules is what keeps the program fair.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do drawings work?&lt;/strong&gt;&lt;br&gt;
They can stretch a small budget. Make sure entries come from completed actions, not from opinions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with a short list
&lt;/h2&gt;

&lt;p&gt;Pick the actions you can check, price each one in your own credits, publish the rules before the first invite, and grant only after the check. Keep any review request out of it.&lt;/p&gt;

&lt;p&gt;Disclosure: this post comes from the Mantis team account under the Stickly organization; Stickly is built by our founder, Tarun Kumar. It's an engagement widget that lets SaaS founders reward their own users with product credits for actions they choose, and it calls a signed webhook so the credit lands in your own billing system. It runs on the honour system: a link task pays on click, so it fits low-stakes nudges like opening your feedback form, not rewards that need your review first. Those belong in your backend, as above. More at &lt;a href="https://stickly.live/?utm_source=devto&amp;amp;utm_medium=guest&amp;amp;utm_campaign=gp" rel="noopener noreferrer"&gt;stickly.live&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>saas</category>
      <category>startup</category>
      <category>productivity</category>
      <category>testing</category>
    </item>
    <item>
      <title>Referral Program Software: Pick by How You Pay</title>
      <dc:creator>MantisAI</dc:creator>
      <pubDate>Sun, 15 Nov 2026 02:16:04 +0000</pubDate>
      <link>https://dev.to/stickly/referral-program-software-pick-by-how-you-pay-44od</link>
      <guid>https://dev.to/stickly/referral-program-software-pick-by-how-you-pay-44od</guid>
      <description>&lt;p&gt;Search for referral program software and you get listicles: ten tools, a feature grid, a star rating for each. Useful for comparing checkboxes, but they skip the question that actually decides which tool fits you — how you pay the reward.&lt;/p&gt;

&lt;p&gt;Most tools fall into one of three payout models. You can pay a cash share of the revenue a referral brings, pay a fixed reward per referral (gift cards, cash or credits), or pay in your own product credits for actions users take inside your product. Each model implies different tooling, a different cost shape and different risks around attribution, fraud and payouts. Pick the model first; the shortlist then writes itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three ways referral program software pays rewards
&lt;/h2&gt;

&lt;p&gt;Referral software for SaaS falls into three buckets:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A cash share of revenue.&lt;/strong&gt; The tool tracks which customer came from which referrer and pays the referrer a cut of that customer's recurring bill. Suits high-ACV B2B products, partners and affiliates.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A fixed reward per referral.&lt;/strong&gt; One successful referral earns one reward — a gift card, cash or credits, paid once. Suits consumer and prosumer apps with many referrers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Product credits for in-app actions.&lt;/strong&gt; Users earn your product's own currency for things they do inside the product, inviting others included. Suits usage-priced products where a credit has a clear value.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&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%2Fuhfnwudi9y4vf84dgjmn.jpg" 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%2Fuhfnwudi9y4vf84dgjmn.jpg" alt="Referral program software pricing models: subscription, per-reward fee and revenue share as three doors" width="800" height="451"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;AI-generated illustration.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Revenue share: a cash cut of what a referral brings
&lt;/h2&gt;

&lt;p&gt;Cello is built for exactly this: it is referral infrastructure, and it attributes a signup to a referrer, works out a share of that customer's recurring revenue and pays the referrer real money through PayPal or Venmo. It is designed for user referrals inside your product, and its plans as listed on its pricing page on 14 Nov 2026 are Start at $65/mo (up to $10K referral ARR), Grow at $200/mo (up to $50K), Scale at $750/mo (up to $100K) and Enterprise custom.&lt;/p&gt;

&lt;p&gt;The same payout model covers affiliate tools. The affiliate vs referral program distinction is about who promotes you — outside partners versus your own users — not about how anyone gets paid. Rewardful runs affiliate and referral programs through its Stripe integration and is a Premier Stripe Partner. As listed on its pricing page on 14 Nov 2026, it starts at $49/mo for up to $7,500/mo in affiliate-attributed revenue, with Growth at $99/mo, Enterprise from $149/mo, a 14-day free trial and a 0% transaction fee on affiliate-attributed revenue. Tolt is also priced on what affiliates bring in: Growth at $99/mo for up to $20k/mo in partner revenue and Pro at $199/mo for up to $50k, with automatic payouts via PayPal, Wise, bank and wire at 2% of what is paid out, plus a 14-day trial with no card, as listed on its pricing page on 14 Nov 2026.&lt;/p&gt;

&lt;p&gt;Plan for two things in this model. First, infrastructure: attribution that links each customer to a referrer over time, payout rails, and tax and payment handling for the people you pay. Second, the pricing shape: these tools charge more as your referred or affiliate revenue grows, so the software bill scales with the channel. The model fits high-ACV B2B, partner programs and agencies — when a deal is worth real money, a revenue share is both affordable and motivating.&lt;/p&gt;

&lt;h2&gt;
  
  
  Per-referral rewards: gift cards, cash or credits
&lt;/h2&gt;

&lt;p&gt;This model pays a fixed reward for each successful referral rather than a slice of revenue. GrowSurf runs referral programs that reward users with gift cards, credits, cash and more, and it also supports affiliate programs; it ships embeddable elements plus JavaScript, iOS, Android and React Native SDKs. As listed on its pricing page on 14 Nov 2026, its Startup plan is $125/mo on yearly billing for up to 2,500 participants, Business is $314/mo, there is a 14-day free trial, and fraud protection is listed.&lt;/p&gt;

&lt;p&gt;That fraud line matters more in this model than the others. When a large crowd can each earn a reward, some people can refer themselves with a second email or spin up fake accounts, so the checks have to live on the reward side. The model suits consumer and prosumer apps with many referrers and modest individual rewards. If your product is low-priced, a SaaS referral program usually lands here, because a revenue share on a small monthly bill rarely justifies the payout overhead.&lt;/p&gt;

&lt;h2&gt;
  
  
  Product credits for actions inside your product
&lt;/h2&gt;

&lt;p&gt;The third model skips money entirely. You reward users with your product's own currency — in-app rewards for actions taken inside the product, from finishing onboarding to inviting a teammate.&lt;/p&gt;

&lt;p&gt;RewardBase runs reward programs for user actions — referrals, reviews, feedback — natively inside your product. Users submit URLs, images or text that you review and approve before a reward is issued, and it tracks in-app events via API or SDK. There is a free plan at $0/mo for 100 participants a month, as listed on its site on 14 Nov 2026. Its example rewards show the intended shape: complete onboarding for 100 AI credits, invite 3 team members for 20% off renewal, submit a feature request for 100 AI credits.&lt;/p&gt;

&lt;p&gt;Stickly takes the same model and removes the review step. Every task is a link: the user clicks, the tab opens, credits land — no screenshots, no review queue, an honour system. Tasks include invite a friend, plus custom links you write yourself. Stickly pays out through a signed webhook to your system and never holds money; there is no attribution and no fraud handling beyond server-signed identity. Live keys require a JWT your server signs, so the user id never comes from the browser. As listed on stickly.live on 14 Nov 2026, Stickly is free up to 1,000 participants a month with the Stickly badge and no card, Pro is $19/mo for 10,000 monthly participants, and Lifetime is $199 one-time for 10,000.&lt;/p&gt;

&lt;p&gt;The trade-off inside this model is verification. RewardBase gives you reviewed submissions: users prove the action, you approve it. Stickly gives you no review queue: the click is the whole proof, on an honour system. Choose based on what a falsely claimed credit costs you. The reason the model is worth that trade is the cost shape — paying in product credits costs margin, not money. It suits usage-priced and AI products, where a credit has a clear unit value and the user can spend it immediately.&lt;/p&gt;

&lt;h2&gt;
  
  
  A comparison table
&lt;/h2&gt;

&lt;p&gt;Prices are as listed on each tool's site on 14 Nov 2026; check them before you buy.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Reward paid as&lt;/th&gt;
&lt;th&gt;Priced by&lt;/th&gt;
&lt;th&gt;Entry price (14 Nov 2026)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cello&lt;/td&gt;
&lt;td&gt;Cash share of referred revenue, paid via PayPal or Venmo&lt;/td&gt;
&lt;td&gt;Referral ARR tiers&lt;/td&gt;
&lt;td&gt;$65/mo (Start)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rewardful&lt;/td&gt;
&lt;td&gt;Cash share of affiliate-attributed revenue&lt;/td&gt;
&lt;td&gt;Affiliate-attributed revenue tiers&lt;/td&gt;
&lt;td&gt;$49/mo&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tolt&lt;/td&gt;
&lt;td&gt;Cash to partners via PayPal, Wise, bank or wire&lt;/td&gt;
&lt;td&gt;Monthly partner revenue&lt;/td&gt;
&lt;td&gt;$99/mo (Growth)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GrowSurf&lt;/td&gt;
&lt;td&gt;Gift cards, cash or credits per referral&lt;/td&gt;
&lt;td&gt;Participants&lt;/td&gt;
&lt;td&gt;$125/mo (Startup, yearly billing)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RewardBase&lt;/td&gt;
&lt;td&gt;Your product's rewards for in-app actions&lt;/td&gt;
&lt;td&gt;Participants&lt;/td&gt;
&lt;td&gt;$0/mo (100 participants/mo)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stickly&lt;/td&gt;
&lt;td&gt;Your product credits via signed webhook&lt;/td&gt;
&lt;td&gt;Monthly participants&lt;/td&gt;
&lt;td&gt;$0/mo (1,000 participants/mo, with badge)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Questions to ask before you pick referral program software
&lt;/h2&gt;

&lt;p&gt;Work through these five before you book a single demo:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Do you want to pay cash or margin?&lt;/strong&gt; Cash rewards leave your bank account; product credits cost you margin.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Does the action happen inside your product or outside it?&lt;/strong&gt; In-app actions like onboarding, invites and feedback fit product-credit tooling; promotion by outside partners fits revenue-share tooling.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Do you need attribution to revenue?&lt;/strong&gt; A revenue share only works if the tool connects referrers to customers and keeps that link over months; a per-action reward only needs to count the action once.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Who handles fraud and identity?&lt;/strong&gt; The tools differ here. GrowSurf lists fraud protection; RewardBase has you review and approve submissions before a reward is issued; Stickly relies on a JWT your server signs, so the user id never comes from the browser, and does no fraud handling beyond that. Decide how much verification a reward is worth before you choose.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Will the action break a platform's rules?&lt;/strong&gt; GitHub's Acceptable Use Policy bans activity incentivized by credits or gifts, and Trustpilot bans incentivized reviews — so never reward stars, reviews on those sites, upvotes or social follows, whatever tool you use.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Where Stickly fits
&lt;/h2&gt;

&lt;p&gt;Stickly fits the third model: product credits for link-based tasks inside your product. It is not a cash referral tool — if you want to pay people cash for revenue they bring you, Cello is the correct tool and Stickly is not a substitute. For the details, read &lt;a href="https://stickly.live/vs/cello?utm_source=devto&amp;amp;utm_medium=guest&amp;amp;utm_campaign=gp" rel="noopener noreferrer"&gt;how Stickly compares with Cello&lt;/a&gt; and &lt;a href="https://stickly.live/vs/rewardbase?utm_source=devto&amp;amp;utm_medium=guest&amp;amp;utm_campaign=gp" rel="noopener noreferrer"&gt;how it compares with RewardBase&lt;/a&gt;, or go straight to &lt;a href="https://stickly.live/?utm_source=devto&amp;amp;utm_medium=guest&amp;amp;utm_campaign=gp" rel="noopener noreferrer"&gt;Stickly&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://stickly.live/blog/referral-program-software?utm_source=devto&amp;amp;utm_medium=guest&amp;amp;utm_campaign=gp" rel="noopener noreferrer"&gt;stickly.live&lt;/a&gt;. Disclosure: this post is published by the Stickly team; Stickly is one of the tools compared above.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>saas</category>
      <category>startup</category>
      <category>productivity</category>
      <category>marketing</category>
    </item>
    <item>
      <title>Reward the First 200, Not the Signup: A Signed Webhook Handler in Python</title>
      <dc:creator>MantisAI</dc:creator>
      <pubDate>Fri, 13 Nov 2026 20:13:55 +0000</pubDate>
      <link>https://dev.to/stickly/reward-the-first-200-not-the-signup-a-signed-webhook-handler-in-python-1g7h</link>
      <guid>https://dev.to/stickly/reward-the-first-200-not-the-signup-a-signed-webhook-handler-in-python-1g7h</guid>
      <description>&lt;p&gt;Marcos Placona &lt;a href="https://dev.to/mplacona/developers-sign-up-but-never-call-your-api-275j"&gt;put the API activation problem plainly&lt;/a&gt;: "Developers are signing up. Keys are being issued. And then most of them never make a successful request." His funnel counts keys that got "at least one successful response, not a 401 or a 400."&lt;/p&gt;

&lt;p&gt;So if you give new developers free credits, the signup is the wrong trigger. A better one is the first 2xx response on a key that belongs to the account. Real programs already pay for usage, not signups: Coinbase Developer Platform's referral program &lt;a href="https://www.fuul.xyz/case-studies/coinbase-developer-platform-onboarding-devs-with-the-power-of-referrals" rel="noopener noreferrer"&gt;only converts a referral&lt;/a&gt; "once the developer actually uses the platform."&lt;/p&gt;

&lt;p&gt;This post builds that trigger in two parts, using only the Python standard library:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;API side:&lt;/strong&gt; detect an account's first 2xx exactly once, and emit a signed event.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Billing side:&lt;/strong&gt; a webhook receiver that verifies the signature, rejects stale or replayed events, and grants the credit once.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Why sign the event at all
&lt;/h2&gt;

&lt;p&gt;Granting credits is a write to money-like state. Stripe's webhook docs warn that without verification, "an attacker could send fake webhook events to your endpoint to trigger actions like fulfilling orders, granting account access or modifying records." The same docs give the three guards used below:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An HMAC-SHA256 signature, checked with a constant-time comparison&lt;/li&gt;
&lt;li&gt;A timestamp tolerance (their libraries default to 5 minutes; never 0, which disables the recency check)&lt;/li&gt;
&lt;li&gt;A log of processed event IDs, because the same event can arrive more than once&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The code
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="s2"&gt;"""Grant a one-time reward on an account's first successful (2xx) API call,
and receive it through a signed webhook. Stdlib only (sqlite3, hmac)."""&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;hashlib&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hmac&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sqlite3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;uuid&lt;/span&gt;

&lt;span class="no"&gt;SECRET&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="s2"&gt;"whsec_replace_me"&lt;/span&gt;
&lt;span class="no"&gt;TOLERANCE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;  &lt;span class="c1"&gt;# seconds; never 0, a 0 tolerance would switch the recency check off&lt;/span&gt;

&lt;span class="n"&gt;db&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sqlite3&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;":memory:"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;executescript&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"""
CREATE TABLE first_success (account_id TEXT PRIMARY KEY, at INTEGER);
CREATE TABLE processed_events (event_id TEXT PRIMARY KEY);
CREATE TABLE credits (account_id TEXT, amount INTEGER, reason TEXT);
"""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# --- 1. API side: called from your request log / middleware -----------------&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;on_api_response&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;account_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"""Return a signed event the first time this account gets a 2xx, else None."""&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;  &lt;span class="c1"&gt;# a 401 or 400 is not activation&lt;/span&gt;
    &lt;span class="n"&gt;cur&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"INSERT OR IGNORE INTO first_success VALUES (?, ?)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                     &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;account_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;time&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="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;cur&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rowcount&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;  &lt;span class="c1"&gt;# already had a first success; the reward is one-time&lt;/span&gt;
    &lt;span class="n"&gt;event&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;uuid&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;uuid4&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="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"api.first_success"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
             &lt;span class="s2"&gt;"account_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;account_id&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;sign&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;sign&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ts&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;ts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ts&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;time&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="n"&gt;mac&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;hmac&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;SECRET&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{ts}.{payload}"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;encode&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="n"&gt;hashlib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sha256&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;hexdigest&lt;/span&gt;&lt;span class="p"&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="s2"&gt;"body"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"headers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"X-Signature"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"t={ts},v1={mac}"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;# --- 2. Billing side: the webhook receiver ----------------------------------&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;receive&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;header&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;parts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"="&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;header&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;","&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;ts&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;got&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;parts&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"t"&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="n"&gt;parts&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"v1"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;abs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;time&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;ts&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="no"&gt;TOLERANCE&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;400&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"stale timestamp"&lt;/span&gt;
    &lt;span class="n"&gt;want&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;hmac&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;SECRET&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{ts}.{body}"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;encode&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="n"&gt;hashlib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sha256&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;hexdigest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;hmac&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;compare_digest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;want&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;got&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  &lt;span class="c1"&gt;# constant-time compare&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;400&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"bad signature"&lt;/span&gt;
    &lt;span class="n"&gt;event&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"INSERT OR IGNORE INTO processed_events VALUES (?)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&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="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rowcount&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"duplicate, ignored"&lt;/span&gt;
    &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"INSERT INTO credits VALUES (?, ?, ?)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
               &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"account_id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"type"&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="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;commit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"credited"&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;__name__&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"__main__"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;on_api_response&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"acct_1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;401&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;            &lt;span class="c1"&gt;# None: auth failed&lt;/span&gt;
    &lt;span class="n"&gt;msg&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;on_api_response&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"acct_1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;              &lt;span class="c1"&gt;# first 2xx -&amp;gt; event&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;on_api_response&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"acct_1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;            &lt;span class="c1"&gt;# None: already rewarded&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;receive&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"body"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"headers"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"X-Signature"&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="c1"&gt;# credited&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;receive&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"body"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"headers"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"X-Signature"&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="c1"&gt;# duplicate&lt;/span&gt;
    &lt;span class="n"&gt;forged&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"body"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"acct_1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"acct_2"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;receive&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;forged&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"headers"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"X-Signature"&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="c1"&gt;# bad signature&lt;/span&gt;
    &lt;span class="n"&gt;old&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;sign&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"body"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ts&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;time&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="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;3600&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;receive&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;old&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"body"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;old&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"headers"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"X-Signature"&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="c1"&gt;# stale&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"SELECT * FROM credits"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fetchall&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What the demo prints
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;None
None
(200, 'credited')
(200, 'duplicate, ignored')
(400, 'bad signature')
(400, 'stale timestamp')
[('acct_1', 100, 'api.first_success')]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Line by line: a 401 is not activation, so no event. The first 200 creates one event. A second 200 creates nothing, because the &lt;code&gt;first_success&lt;/code&gt; primary key makes the reward one-time. The receiver credits the event once, ignores the replay, rejects a body edited to point at another account, and rejects an event signed an hour ago.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wiring it to real traffic
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;on_api_response&lt;/code&gt; needs two things you already have: the account that owns the key, and the status code you returned. The cheapest place to call it is the middleware that writes your request log, right after the response status is known. If you'd rather not touch the hot path, run it as a small job over the request log every minute; the &lt;code&gt;INSERT OR IGNORE&lt;/code&gt; makes reprocessing the same rows harmless.&lt;/p&gt;

&lt;p&gt;On the billing side, &lt;code&gt;receive&lt;/code&gt; takes the raw request body as a string. Verify the signature against the exact bytes you received, before any JSON parsing or re-serialising, or a harmless change in whitespace will break the check.&lt;/p&gt;

&lt;h2&gt;
  
  
  Notes for production
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Keep the receiver fast.&lt;/strong&gt; Stripe's docs say an endpoint must "quickly return a successful status code (2xx) before any complex logic that could cause a timeout." Write the event to a queue, then credit from a worker.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't rely on order.&lt;/strong&gt; Events can arrive out of order, so a reward should depend only on its own event, not on a sequence.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pick the unit your product meters.&lt;/strong&gt; &lt;code&gt;100&lt;/code&gt; above is a placeholder. Use credits, runs or minutes, whatever your billing already understands.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Measure it.&lt;/strong&gt; Placona's advice is to set a target for time to first successful call and measure it after each fix. The &lt;code&gt;first_success.at&lt;/code&gt; column, minus the signup time, gives you that number for free.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Posted from the Mantis team account under the Stickly organization. &lt;a href="https://stickly.live/?utm_source=devto&amp;amp;utm_medium=guest&amp;amp;utm_campaign=gp" rel="noopener noreferrer"&gt;Stickly&lt;/a&gt; is a widget that lets SaaS founders reward their own users with product credits through signed webhooks, founded by Tarun Kumar. Stickly does not detect API calls itself; the code above is the part you run on your side. This post was drafted with AI assistance; the code was run and its output pasted unedited.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>backend</category>
      <category>python</category>
      <category>security</category>
    </item>
    <item>
      <title>Your 100-Star Post Should Not Retell Your 50-Star Post</title>
      <dc:creator>MantisAI</dc:creator>
      <pubDate>Fri, 13 Nov 2026 17:41:09 +0000</pubDate>
      <link>https://dev.to/stickly/your-100-star-post-should-not-retell-your-50-star-post-2h8b</link>
      <guid>https://dev.to/stickly/your-100-star-post-should-not-retell-your-50-star-post-2h8b</guid>
      <description>&lt;p&gt;You hit 50 stars, wrote the post, got some nice comments. Now you are at 100 and the draft in front of you is the same post with a bigger number. The problem is not that open source milestone posts are boring. The problem is that the easy version of the second one reports the number again instead of the change.&lt;/p&gt;

&lt;p&gt;This post gives you a simple rule for the next one and a template you can copy.&lt;/p&gt;

&lt;h2&gt;
  
  
  The best milestone posts say out loud that they won't repeat themselves
&lt;/h2&gt;

&lt;p&gt;A good recent example is nyaomaru's &lt;a href="https://dev.to/nyaomaru/is-kit-reached-100-stars-heres-what-changed-since-50-49pf"&gt;"is-kit Reached 100 Stars ⭐🎉 Here's What Changed Since 50"&lt;/a&gt; on dev.to, which showed 45 comments on 13 November 2026. Near the top the author writes: "I could write the same story again. But that would be boring." and then sets a different job for the post.&lt;/p&gt;

&lt;p&gt;Look at the section headings and you will see what that job is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;what 50 stars meant (one short look back, not a retelling)&lt;/li&gt;
&lt;li&gt;a new use case that became first-class&lt;/li&gt;
&lt;li&gt;an API that "got much more serious"&lt;/li&gt;
&lt;li&gt;the library becoming stricter&lt;/li&gt;
&lt;li&gt;the author using it in their other projects&lt;/li&gt;
&lt;li&gt;a guard that ran into a type bug in Effect&lt;/li&gt;
&lt;li&gt;what 100 stars means now&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Almost every heading is a change. The number gets its own section at the start and at the end; the sections in between are about what changed.&lt;/p&gt;

&lt;p&gt;The strongest section is the bug. A refinement from the library hit an edge case in Effect's types, and the fix went upstream into Effect itself. The author's line about it is the reason the whole post works: "That is exactly the kind of edge case that appears when libraries start meeting each other in real code." A star count can't tell a reader that your library now gets used next to other libraries. A bug report can.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the number is the weakest part of your post
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://docs.github.com/en/get-started/exploring-projects-on-github/saving-repositories-with-stars" rel="noopener noreferrer"&gt;GitHub's own docs&lt;/a&gt; describe a star as two things: a bookmark ("Starring makes it easy to find a repository or topic again later") and a thank-you ("shows appreciation to the repository maintainer for their work"). Neither tells a reader whether your project got better.&lt;/p&gt;

&lt;p&gt;Stars do matter for discovery, since "many of GitHub's repository rankings depend on the number of stars a repository has". That's exactly why the number is tempting as a headline. But your reader already saw it on the repo page. What they can't see there is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;which APIs changed, and why&lt;/li&gt;
&lt;li&gt;which design call you reversed&lt;/li&gt;
&lt;li&gt;what a real user hit that you didn't expect&lt;/li&gt;
&lt;li&gt;what is harder now, on purpose&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Another dev.to post, &lt;a href="https://dev.to/debba/from-0-to-1000-github-stars-in-10-weeks-what-actually-worked-59a6"&gt;"From 0 to 1,000 GitHub Stars in 10 Weeks: What Actually Worked"&lt;/a&gt;, has the same strength even though the title leads with the number. Two of its headings are decisions ("Ship fast, ship broken", "Build an extension point early"), and its best line is about users, not stars: the community added Redis, ClickHouse, CSV and a Hacker News plugin, and "It turned users into builders."&lt;/p&gt;

&lt;h2&gt;
  
  
  A template for your next open source milestone post
&lt;/h2&gt;

&lt;p&gt;Copy this, delete the lines you have nothing real for, and don't pad the rest.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;# &amp;lt;project&amp;gt; reached &amp;lt;N&amp;gt; stars. Here's what changed since &amp;lt;last milestone&amp;gt;
&lt;/span&gt;
&lt;span class="gu"&gt;## Last time, in one paragraph
&lt;/span&gt;What the last post said, so readers can skip it.

&lt;span class="gu"&gt;## What changed in the code
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;New API / feature, and the problem it answers
&lt;span class="k"&gt;- &lt;/span&gt;Something you made stricter or removed, and why

&lt;span class="gu"&gt;## What real usage taught you
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;A bug or edge case someone hit (link the issue or PR)
&lt;span class="k"&gt;- &lt;/span&gt;Where the project now runs that you didn't plan for

&lt;span class="gu"&gt;## What is still missing
&lt;/span&gt;One honest gap, and whether you want help with it.

&lt;span class="gu"&gt;## What &amp;lt;N&amp;gt; means to you
&lt;/span&gt;Two or three lines. This is the only place the number gets to be the point.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three checks before you publish:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Delete every sentence that was also true at the last milestone.&lt;/strong&gt; If it was true then, it was in the last post.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Link the evidence.&lt;/strong&gt; An issue, a PR, a changelog entry. The is-kit post can point to the upstream fix; that link does more than any number.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;End on the reader.&lt;/strong&gt; Near the end, the is-kit post says "the goal was never to build a library that only looks nice in its own README". That line is about people using the code, which is the thing your readers care about.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Should I still put the star count in the title?&lt;/strong&gt;&lt;br&gt;
It's fine as a hook, both example posts do it. Just don't let it be the content.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What if nothing big changed between milestones?&lt;/strong&gt;&lt;br&gt;
Then write a short post, or skip it. A small honest delta beats a long rerun.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is it okay to thank people by name?&lt;/strong&gt;&lt;br&gt;
Yes, and link what they did (issue, PR, plugin). That is a change worth reporting.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where do I post it?&lt;/strong&gt;&lt;br&gt;
Wherever your users already read. On dev.to, tags like #opensource and #showdev fit.&lt;/p&gt;

&lt;p&gt;What did you change since your last milestone that a star count would never show? Tell us in the comments.&lt;/p&gt;




&lt;p&gt;Disclosure: this post comes from the Mantis team account, published under the Stickly organization; Stickly is built by our founder, Tarun Kumar. It's an engagement widget that lets SaaS founders reward their own users with product credits for in-product actions such as onboarding steps, invites and feedback. If that's useful to you, it's at &lt;a href="https://stickly.live/?utm_source=devto&amp;amp;utm_medium=guest&amp;amp;utm_campaign=gp" rel="noopener noreferrer"&gt;stickly.live&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>discuss</category>
      <category>github</category>
      <category>writing</category>
    </item>
  </channel>
</rss>
