The AI-Native SaaS Starter
A minimalist foundation for 2026. Next.js 16, Server Actions, and a unique Blueprint Architecture designed for AI code generation.
AI Coding Context
AI Context
Hi! I am using the BuildSmiths StarterKit. Here is my context:
Stack
- Next.js 16
- Postgres (pg - raw SQL)
- Tailwind v4
- Shadcn UI
- NextAuth v4
Feature Blueprints
- Stripe BillingSubscription tiers and webhooks.
- Google AuthProduction OAuth configuration.
- AI SDKIntegration for LLM features.
Quickstart Guide
Everything you need to run locally is included.
# 1. Clone & Enter
git clone https://github.com/buildsmiths/buildsmiths-nextjs-postgres-stripe.git my-saas
cd my-saas
# 2. Install & Configure
npm install
cp .env.example .env.local
# 3. Initialize Database (ensure Postgres is running)
npm run db:schema
npm run db:seed # Optional: Adds test users
# 4. Start Development
npm run dev
The Blueprint Architecture
We don't just give you code; we give you the instructions to build it with AI. Found in blueprints/features/, these markdown specs are designed to be fed into Copilot or Cursor.
Omni-Model AI Chat
blueprints/features/ai-sdk.mdStandardized Vercel AI SDK setup using OpenRouter. Switch between Claude 3.5 and GPT-4o via env vars without touching code.
Zero-Dependency Queue
blueprints/features/async-jobs.mdA reliable Postgres-backed job queue for background tasks (emails, data processing) without adding Redis complexity.
Codebase Structure
- app/Next.js App Router
- blueprints/Feature specs (MD)
- components/React UI & Logic
- db/SQL migrations
- lib/Core logic
- scripts/DB management
- tests/Vitest suite
What's Included
- ✅ NextAuth v4 pre-configured security
- ✅ Postgres Schema for Users & Subs
- ✅ Stripe Integration (Optional)
- ✅ Dashboard UI (Shadcn/Tailwind)
- ✅ Vitest suite with in-memory DB