<?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: Kushagra kartikey suman</title>
    <description>The latest articles on DEV Community by Kushagra kartikey suman (@bountydesk).</description>
    <link>https://dev.to/bountydesk</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3967301%2F0476d9aa-86d9-4fde-8982-e3481bb1cbe2.png</url>
      <title>DEV Community: Kushagra kartikey suman</title>
      <link>https://dev.to/bountydesk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bountydesk"/>
    <language>en</language>
    <item>
      <title>I shipped a SaaS in 5 days at 19 with Next.js 16, Supabase, and Paddle - here's the whole stack</title>
      <dc:creator>Kushagra kartikey suman</dc:creator>
      <pubDate>Thu, 04 Jun 2026 01:20:03 +0000</pubDate>
      <link>https://dev.to/bountydesk/i-shipped-a-saas-in-5-days-at-19-with-nextjs-16-supabase-and-paddle-heres-the-whole-stack-g6j</link>
      <guid>https://dev.to/bountydesk/i-shipped-a-saas-in-5-days-at-19-with-nextjs-16-supabase-and-paddle-heres-the-whole-stack-g6j</guid>
      <description>&lt;p&gt;I'm a 19-year-old solo developer who just shipped my first SaaS in 5 days. It's live at &lt;a href="https://bountydesk.vercel.app" rel="noopener noreferrer"&gt;https://bountydesk.vercel.app&lt;/a&gt; and open source on &lt;a href="https://github.com/kushagra1607/bountydesk" rel="noopener noreferrer"&gt;https://github.com/kushagra1607/bountydesk&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is a no-BS technical breakdown of the stack, every architectural decision, what worked, and what I'd do differently.&lt;/p&gt;

&lt;h2&gt;
  
  
  The product (1-minute context)
&lt;/h2&gt;

&lt;p&gt;BountyDesk is a submission tracker + Markdown report builder for bug bounty hunters. Free tier; $7/mo Pro. The stack is what this post is about.&lt;/p&gt;

&lt;h2&gt;
  
  
  The full stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; Next.js 16 (App Router, Server Actions, Node.js runtime)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Styling:&lt;/strong&gt; Tailwind v4&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auth + DB:&lt;/strong&gt; Supabase (Postgres + RLS + Auth)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Billing:&lt;/strong&gt; Paddle (Merchant of Record - handles tax in 100+ countries)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Analytics:&lt;/strong&gt; PostHog (self-host or cloud, both work)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hosting:&lt;/strong&gt; Vercel&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Monthly cost to run: ~$0. All free tiers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture decisions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Supabase RLS for everything
&lt;/h3&gt;

&lt;p&gt;Every table (submissions, programs, profiles) has Row-Level Security enabled. The policy shape:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="n"&gt;policy&lt;/span&gt; &lt;span class="nv"&gt;"own rows"&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="k"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;submissions&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;all&lt;/span&gt; &lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;uid&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;user_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
       &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="k"&gt;check&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;uid&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;user_id&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A user cannot read or write another user's data, ever, at the database level. Not just app-layer enforcement - Postgres itself blocks it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gotcha I hit:&lt;/strong&gt; my initial &lt;code&gt;profiles&lt;/code&gt; table allowed user UPDATE without column restriction. Any user could run &lt;code&gt;UPDATE profiles SET plan='pro' WHERE id=auth.uid()&lt;/code&gt; from their browser console - instant free Pro. Caught it in pre-launch audit. Fixed by revoking UPDATE entirely from the &lt;code&gt;authenticated&lt;/code&gt; role; only the Paddle webhook (service_role) can write.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Paddle as Merchant of Record
&lt;/h3&gt;

&lt;p&gt;I'm in India. Selling globally means VAT in 27 EU countries, GST in Australia, etc. &lt;strong&gt;Paddle is a Merchant of Record&lt;/strong&gt; - they take legal/tax responsibility. I just receive a payout in INR.&lt;/p&gt;

&lt;p&gt;Fee: 5% + $0.50 per transaction. On a $7/mo subscription, I see ~$6.15 in my Paddle balance, ~$6.00 after Payoneer FX → INR.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Webhook signature verification
&lt;/h3&gt;

&lt;p&gt;The webhook handler verifies the Paddle HMAC signature on the &lt;strong&gt;raw body&lt;/strong&gt; (before any parsing):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;signature&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;paddle-signature&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&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="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;text&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

&lt;span class="k"&gt;try&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;event&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;getPaddle&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nx"&gt;webhooks&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;unmarshal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;secret&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;signature&lt;/span&gt;
  &lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;NextResponse&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;bad signature&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;400&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;If you parse the body first (&lt;code&gt;request.json()&lt;/code&gt;), Node mutates whitespace and signature check fails. Always read raw text first.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. PostHog → Slack for real-time alerts
&lt;/h3&gt;

&lt;p&gt;PostHog has CDP (Customer Data Platform) functions that fire actions on event matches. I have three:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;user_signed_up&lt;/code&gt; → Slack: "New signup!"&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;upgrade_checkout_opened&lt;/code&gt; → Slack: "Upgrade clicked!"&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;subscription_activated&lt;/code&gt; (fired server-side from the Paddle webhook) → Slack: "PAYMENT RECEIVED!"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I literally know the moment a customer pays before Paddle even shows it in their dashboard.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. AGPL-3.0 license
&lt;/h3&gt;

&lt;p&gt;Open source with a viral copyleft. If someone forks the code, modifies it, and runs it as a competing SaaS, they must open-source their changes too. Same license PostHog, Plausible, and Cal.com use.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd do differently
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Start the HN account age clock 30 days BEFORE launch.&lt;/strong&gt; HN auto-flags new-account Show HN posts. Learned this the hard way.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build distribution while you build the product.&lt;/strong&gt; I shipped the code in 5 days but spent 0 days on Twitter or community. By launch day I had no audience to broadcast to.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Get a real domain.&lt;/strong&gt; vercel.app subdomain looks indie-ish. ~$10/year for &lt;code&gt;bountydesk.com&lt;/code&gt; would have signaled "real product."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open source from day 1, not day 30.&lt;/strong&gt; Stars and contributions compound.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What I'd repeat
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Paddle.&lt;/strong&gt; Selling globally on day 1 with no compliance burden is magical.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Supabase RLS.&lt;/strong&gt; Catches what app-layer code forgets.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PostHog + Slack alerts.&lt;/strong&gt; Real-time visibility into every conversion.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vercel free tier.&lt;/strong&gt; Zero deploy friction.&lt;/li&gt;
&lt;/ol&gt;

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

&lt;p&gt;All ~70 source files on GitHub: &lt;a href="https://github.com/kushagra1607/bountydesk" rel="noopener noreferrer"&gt;https://github.com/kushagra1607/bountydesk&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Interesting files:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;src/app/api/paddle/webhook/route.ts&lt;/code&gt; - webhook + signature verification&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;src/lib/supabase/admin.ts&lt;/code&gt; - server-only service-role client&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;supabase/schema.sql&lt;/code&gt; - full schema with RLS policies&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;src/components/ReportBuilder.tsx&lt;/code&gt; - the report generator&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Live: &lt;a href="https://bountydesk.vercel.app" rel="noopener noreferrer"&gt;https://bountydesk.vercel.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sign up, log a fake submission, tell me what sucks. I respond to all DMs/comments.&lt;/p&gt;

&lt;p&gt;— Kushagra (&lt;a href="https://x.com/bountydesk" rel="noopener noreferrer"&gt;@bountydesk on X&lt;/a&gt;)&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>nextjs</category>
      <category>supabase</category>
      <category>indiehackers</category>
    </item>
  </channel>
</rss>
