<?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: Himanshu Sarvaiya</title>
    <description>The latest articles on DEV Community by Himanshu Sarvaiya (@himanshu_sarvaiya_97226e9).</description>
    <link>https://dev.to/himanshu_sarvaiya_97226e9</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%2F1640433%2F8be36cdd-f41a-4a3c-9025-183eac2a4936.jpg</url>
      <title>DEV Community: Himanshu Sarvaiya</title>
      <link>https://dev.to/himanshu_sarvaiya_97226e9</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/himanshu_sarvaiya_97226e9"/>
    <language>en</language>
    <item>
      <title>How I built an AI SaaS boilerplate in a week using vibe coding (no prior experience)</title>
      <dc:creator>Himanshu Sarvaiya</dc:creator>
      <pubDate>Mon, 16 Mar 2026 06:13:01 +0000</pubDate>
      <link>https://dev.to/himanshu_sarvaiya_97226e9/how-i-built-an-ai-saas-boilerplate-in-a-week-using-vibe-coding-no-prior-experience-2a0g</link>
      <guid>https://dev.to/himanshu_sarvaiya_97226e9/how-i-built-an-ai-saas-boilerplate-in-a-week-using-vibe-coding-no-prior-experience-2a0g</guid>
      <description>&lt;p&gt;I started this project with zero knowledge of Supabase, Stripe, auth systems, or Next.js tooling. A week later I have a fully working AI SaaS boilerplate called TokenBase. Here's how.&lt;br&gt;
What I built&lt;br&gt;
TokenBase is a Next.js 14 starter kit that gives developers everything they need to launch an AI SaaS app:&lt;/p&gt;

&lt;p&gt;Supabase auth (email, Google OAuth, magic links, password reset)&lt;br&gt;
Credit/token billing system with live balance updates&lt;br&gt;
AI chat UI powered by Groq&lt;br&gt;
Razorpay + Stripe payments&lt;br&gt;
PostHog analytics&lt;br&gt;
Full documentation&lt;/p&gt;

&lt;p&gt;How I built it (vibe coding)&lt;br&gt;
I used Cursor and Windsurf as AI coding assistants. Instead of writing code manually, I described what I wanted and let the AI build it. My job was to make decisions about what to build, not how to write every line.&lt;br&gt;
The key insight: break everything into micro-tasks. Instead of saying "build me a payment system", I said "create a Razorpay order API route that returns order ID and amount". Small, focused prompts get much better results.&lt;br&gt;
The credit system (most interesting part)&lt;br&gt;
The core feature of TokenBase is the credit billing system:&lt;/p&gt;

&lt;p&gt;New users get 100 credits automatically via a Supabase DB trigger&lt;br&gt;
Each AI message deducts 10 credits server-side before calling the AI&lt;br&gt;
If credits hit 0, the API returns a 402 and blocks the request&lt;br&gt;
Users can buy more credits via Razorpay or Stripe&lt;/p&gt;

&lt;p&gt;Live demo&lt;br&gt;
tokenbase-two.vercel.app&lt;br&gt;
If you want to skip the setup and just start building your AI product, I packaged everything into a boilerplate: himanshu0317.gumroad.com/l/qgbmfj&lt;br&gt;
Happy to answer questions about the stack or the vibe coding approach!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
