<?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: Margot</title>
    <description>The latest articles on DEV Community by Margot (@margot_orin).</description>
    <link>https://dev.to/margot_orin</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%2F4215842%2Fa50e13d5-ea27-471c-8629-44c812f91b62.png</url>
      <title>DEV Community: Margot</title>
      <link>https://dev.to/margot_orin</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/margot_orin"/>
    <language>en</language>
    <item>
      <title>How I Built a Production-Ready AI SaaS Boilerplate with Next.js 16 — Full Stack Breakdown</title>
      <dc:creator>Margot</dc:creator>
      <pubDate>Thu, 29 Oct 2026 18:02:41 +0000</pubDate>
      <link>https://dev.to/margot_orin/how-i-built-a-production-ready-ai-saas-boilerplate-with-nextjs-16-full-stack-breakdown-263e</link>
      <guid>https://dev.to/margot_orin/how-i-built-a-production-ready-ai-saas-boilerplate-with-nextjs-16-full-stack-breakdown-263e</guid>
      <description>&lt;p&gt;Every time I started a new AI SaaS project, I spent the first 2-3 weeks on the same things: authentication, Stripe integration, database setup, AI provider plumbing. Over and over.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;ShipAI&lt;/strong&gt; — a production-ready Next.js 16 boilerplate that has all of this pre-configured and ready to customize.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Stack
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Tech&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Framework&lt;/td&gt;
&lt;td&gt;Next.js 16 (App Router, TypeScript, Turbopack)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Auth&lt;/td&gt;
&lt;td&gt;NextAuth.js (Google, GitHub, email/password)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Payments&lt;/td&gt;
&lt;td&gt;Stripe (subscriptions, webhooks, customer portal)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Database&lt;/td&gt;
&lt;td&gt;Prisma + PostgreSQL&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI&lt;/td&gt;
&lt;td&gt;Vercel AI SDK v4 (OpenAI + Anthropic)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;UI&lt;/td&gt;
&lt;td&gt;Tailwind CSS + 15 shadcn/ui components&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Email&lt;/td&gt;
&lt;td&gt;Resend&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Deploy&lt;/td&gt;
&lt;td&gt;Vercel (one-click)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Pre-Built Pages
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Landing page&lt;/strong&gt; — Hero, features grid, pricing cards, testimonials, FAQ&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auth&lt;/strong&gt; — Login + register with OAuth and email/password&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dashboard&lt;/strong&gt; — Stats cards, usage charts, recent activity&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI Chat&lt;/strong&gt; — Streaming chat with model/provider selector&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Billing&lt;/strong&gt; — Plan comparison, Stripe portal integration&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Settings&lt;/strong&gt; — Profile, notifications, security tabs&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;48 files. 16 routes. Zero TypeScript errors.&lt;/p&gt;

&lt;h2&gt;
  
  
  Technical Decisions Worth Sharing
&lt;/h2&gt;

&lt;h3&gt;
  
  
  AI SDK v4 is a breaking change
&lt;/h3&gt;

&lt;p&gt;If you're upgrading from v3, heads up: &lt;code&gt;useChat&lt;/code&gt; no longer exposes &lt;code&gt;input&lt;/code&gt;, &lt;code&gt;handleInputChange&lt;/code&gt;, or &lt;code&gt;append&lt;/code&gt;. The new API uses &lt;code&gt;sendMessage&lt;/code&gt; and a transport pattern (&lt;code&gt;DefaultChatTransport&lt;/code&gt;). I spent time figuring this out so you don't have to.&lt;/p&gt;

&lt;h3&gt;
  
  
  Next.js 16 + Cache Components
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;export const dynamic = "force-dynamic"&lt;/code&gt; no longer works with Cache Components enabled. Use &lt;code&gt;connection()&lt;/code&gt; from &lt;code&gt;next/server&lt;/code&gt; plus &lt;code&gt;export const instant = false&lt;/code&gt; for dynamic server pages.&lt;/p&gt;

&lt;h3&gt;
  
  
  Stripe webhook handler needs upsert logic
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;checkout.session.completed&lt;/code&gt; can fire before the subscription record exists in your database. Always use &lt;code&gt;prisma.subscription.upsert()&lt;/code&gt; instead of separate create/update calls.&lt;/p&gt;

&lt;h3&gt;
  
  
  Prisma v5 &amp;gt; v8 for boilerplates
&lt;/h3&gt;

&lt;p&gt;Prisma v8 has a completely different CLI and is more of a platform play. For a developer-friendly boilerplate, Prisma v5 with the familiar &lt;code&gt;npx prisma generate&lt;/code&gt; workflow is the right choice.&lt;/p&gt;

&lt;h2&gt;
  
  
  What You Get
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Complete source code (48 TypeScript files)&lt;/li&gt;
&lt;li&gt;Comprehensive README + .env.example&lt;/li&gt;
&lt;li&gt;One-time purchase, unlimited projects&lt;/li&gt;
&lt;li&gt;30-day money-back guarantee&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're building AI SaaS products and want to skip the boilerplate phase:&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://margotorin.gumroad.com/l/shipai" rel="noopener noreferrer"&gt;ShipAI — $199 on Gumroad&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Happy to answer any questions about the architecture or technical decisions in the comments!&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>webdev</category>
      <category>ai</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
