<?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: Ibtsam Rajpoot</title>
    <description>The latest articles on DEV Community by Ibtsam Rajpoot (@ibtsam_rajpoot_4b6cdf5739).</description>
    <link>https://dev.to/ibtsam_rajpoot_4b6cdf5739</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%2F3975710%2F802f16ae-e69e-4bb7-8921-d19484c00e1a.png</url>
      <title>DEV Community: Ibtsam Rajpoot</title>
      <link>https://dev.to/ibtsam_rajpoot_4b6cdf5739</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ibtsam_rajpoot_4b6cdf5739"/>
    <language>en</language>
    <item>
      <title>How I Built an AI Form Builder with Next.js 15 + Supabase + Claude API</title>
      <dc:creator>Ibtsam Rajpoot</dc:creator>
      <pubDate>Tue, 09 Jun 2026 10:12:52 +0000</pubDate>
      <link>https://dev.to/ibtsam_rajpoot_4b6cdf5739/how-i-built-an-ai-form-builder-with-nextjs-15-supabase-claude-api-2mi5</link>
      <guid>https://dev.to/ibtsam_rajpoot_4b6cdf5739/how-i-built-an-ai-form-builder-with-nextjs-15-supabase-claude-api-2mi5</guid>
      <description>&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Google Forms is free but ugly and limited. Typeform looks great but costs $29/month minimum. Building custom forms takes hours of coding.&lt;/p&gt;

&lt;p&gt;I wanted something in between — a tool where you describe what form you need, and AI builds it instantly.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;FormAI&lt;/strong&gt; — an AI-powered form builder that creates smart forms from text descriptions in 10 seconds.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Works
&lt;/h2&gt;

&lt;p&gt;You type: "Customer feedback form with star rating, comments box, and email follow-up"&lt;/p&gt;

&lt;p&gt;FormAI's AI analyzes your description and generates:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The right field types (stars, textarea, email)&lt;/li&gt;
&lt;li&gt;Validation rules (required fields, email format)&lt;/li&gt;
&lt;li&gt;Conditional logic (show follow-up questions based on rating)&lt;/li&gt;
&lt;li&gt;Professional design with your branding&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In 10 seconds. No coding.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;p&gt;Here's everything I used:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Next.js 15&lt;/strong&gt; (App Router) — framework&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TypeScript&lt;/strong&gt; — type safety&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Supabase&lt;/strong&gt; — auth, database, storage, realtime&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude API&lt;/strong&gt; — AI form generation&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tailwind CSS&lt;/strong&gt; — styling&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vercel&lt;/strong&gt; — hosting and deployment&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lemon Squeezy&lt;/strong&gt; — payment processing&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sentry&lt;/strong&gt; — error monitoring&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Google Analytics&lt;/strong&gt; — usage tracking&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Total monthly cost to run: ~$20&lt;/p&gt;

&lt;h2&gt;
  
  
  The AI Architecture
&lt;/h2&gt;

&lt;p&gt;The core of FormAI is the form generation pipeline:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;User describes the form in natural language&lt;/li&gt;
&lt;li&gt;I send the description to Claude API with a system prompt that includes form field types, validation rules, and design patterns&lt;/li&gt;
&lt;li&gt;Claude returns structured JSON with the complete form schema&lt;/li&gt;
&lt;li&gt;The frontend renders the form in a drag-and-drop editor&lt;/li&gt;
&lt;li&gt;User customizes if needed, then publishes&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The key insight: &lt;strong&gt;prompt engineering is 80% of the product quality&lt;/strong&gt;. I spent more time refining the system prompt than writing actual code.&lt;/p&gt;

&lt;p&gt;Here's a simplified version of how the AI call works:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;response&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;anthropic&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;messages&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;claude-haiku-4-5-20251001&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;max_tokens&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2048&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;system&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`You are a form builder AI. Generate a complete form 
    based on the user's description. Return JSON with fields, 
    validation rules, and conditional logic.`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;messages&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[{&lt;/span&gt; &lt;span class="na"&gt;role&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;user&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;userDescription&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;
  
  
  Supabase Setup
&lt;/h2&gt;

&lt;p&gt;Supabase handles everything on the backend:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Auth&lt;/strong&gt;: Google OAuth + email/password login&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database&lt;/strong&gt;: PostgreSQL for forms, responses, user data&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Storage&lt;/strong&gt;: File uploads in form responses&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Row Level Security&lt;/strong&gt;: Each user only sees their own forms&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The RLS policies were tricky at first but once set up, I never had to worry about authorization again. Supabase handles it at the database level.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lessons Learned
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Ship ugly, then improve&lt;/strong&gt;&lt;br&gt;
My first version looked terrible. But real users gave me feedback that shaped the product. Don't wait for perfection.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Supabase Auth + RLS saves weeks&lt;/strong&gt;&lt;br&gt;
Instead of building auth from scratch, Supabase gave me Google OAuth, email auth, and row-level security out of the box.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. AI prompt engineering &amp;gt; code&lt;/strong&gt;&lt;br&gt;
The quality of my AI-generated forms improved 10x just by improving the system prompt. The code barely changed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Next.js App Router has a learning curve&lt;/strong&gt;&lt;br&gt;
Server components, loading states, error boundaries — it's powerful but took time to understand properly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Solo founder means you do everything&lt;/strong&gt;&lt;br&gt;
Design, code, marketing, support, payments, SEO, legal. There's no "that's not my job" when you're alone.&lt;/p&gt;

&lt;h2&gt;
  
  
  My Story
&lt;/h2&gt;

&lt;p&gt;I'm a Pakistani developer working in a Korean factory on an E-9 manufacturing visa. I built FormAI at night after 10-hour shifts. No funding, no team, no CS degree.&lt;/p&gt;

&lt;p&gt;If I can ship a SaaS product from a factory dormitory in Busan, you can build something too. The tools available today (Next.js, Supabase, AI APIs) make it possible for anyone to build production software.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;p&gt;FormAI is live with a free plan:&lt;/p&gt;

&lt;p&gt;🔗 &lt;strong&gt;&lt;a href="https://tryformai.xyz" rel="noopener noreferrer"&gt;tryformai.xyz&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Free: 3 forms, 100 responses/month&lt;/li&gt;
&lt;li&gt;Pro ($19/mo): Unlimited everything&lt;/li&gt;
&lt;li&gt;49 ready-made templates included&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'd love feedback from the dev community. What would you improve? What features should I add next?&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built with ❤️ from Busan, South Korea&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>nextjs</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
