AI SaaS Kit

Your AI SaaS, minus the first ten weeks.

A production-grade Next.js 16 starter with auth, multi-tenant workspaces, Stripe billing, usage metering, and streaming AI chat wired to 19 providers. Clone it, add your keys, and spend your time on the product only you can build.

Next.js 16React 19TypeScript 5Tailwind 4AI SDK 6better-authDrizzle + PostgresStripe
$87.00one-time

Unlimited machines. Yours forever.

Try the live demo first →

The ten weeks you'd build anyway

Before an AI SaaS can take its first signup, somebody has to build the plumbing. None of it is your product. All of it is your problem.

  • Sign-up, email verification, password reset, OAuth
  • Workspaces, invites, member roles
  • Stripe checkout, webhooks, plan switching, billing portal
  • Token metering, monthly caps, rate limiting
  • Streaming chat UI with conversation history
  • Admin tools: suspensions, plan overrides, maintenance mode

# what ships

Everything in the box

auth

$ auth

Authentication

Email/password with verification, password reset, magic-link sign-in, Google and GitHub OAuth, session management, and admin impersonation for support.

workspaces

$ workspaces

Multi-tenant workspaces

Every user gets a workspace on signup. Invite by email, assign roles, accept-invite flow, rename, leave, delete. All wired.

ai-chat

$ ai-chat

AI chat & streaming

Streaming chat on Vercel AI SDK 6 with persistent history, auto-generated titles, per-workspace system prompts, and 19 pre-wired providers: OpenAI, Anthropic, Google, Groq, Bedrock, Vertex, even local Ollama. Swap models with an env var. Select any message to quote it in your reply, and watch a live context-window meter break down token use and cost — with owner/admin toggles to show or hide tool calls and the meter per workspace.

agent-tools

$ agent-tools

Agent tools

Calculator, SSRF-protected data fetch, and web search with three pluggable backends (Tavily, Exa, Firecrawl). Gated by plan, extensible by design.

billing

$ billing

Stripe subscription billing

Three plan tiers for your customers, checkout, in-place plan switching, billing portal, and webhook handling. The whole revenue pipeline.

metering

$ metering

Metering & rate limits

Per-message token tracking, monthly caps by plan, soft warnings at 80%, and per-workspace sliding-window rate limiting on Upstash Redis.

admin

$ admin

Admin portal

Analytics, user suspension, plan overrides, maintenance mode, and user impersonation with a visible banner.

theme

$ theme

Visual theme customizer

Rebrand the whole app from an admin UI — no code, no redeploy. A super-admin tunes color palettes (primary/secondary/tertiary, light + dark), corner radius, shadows, and the shell background (solid, gradient, or image with a glass tint), plus component effects like hover/active states, button ripple, and frosted-glass surfaces. A live preview renders real components grouped by where they appear, and a saved theme applies across every workspace instantly.

email

$ email

Transactional email

Seven templates (verification, password reset, magic link, usage warnings, subscription confirmations, email change, workspace invites) on Resend, with a console fallback in dev.

# install

One command. Then just add your keys.

$ npx create-stackblaze-app my-saas

  • Auth, OAuth, email verification
  • Stripe billing & webhooks
  • Multi-tenant workspaces
  • Admin dashboard & analytics
  • AI chat, 19 providers
  • 153 automated tests

Ready in under 2 minutes.

01Scaffoldnpx create-stackblaze-app
02Add .envDrop in your API keys
03DeployVercel, Railway, anywhere

What you're not building

The price isn't the cost. The build is. Every week spent on plumbing is a week your actual product doesn't exist.

Auth + multi-tenant workspaces~2 weeks
Billing, metering & rate limiting~3 weeks
Streaming AI chat + provider layer~2 weeks
Admin portal~1 week
UI component library~1 week
Schema, migrations & test suite~2 weeks
Total replaced10–12 weeks of typical senior-engineering effort
20app pages
9API routes
19AI providers
14database tables
45components
153automated tests

What's not in the box

  • Audit logs
  • Scheduled / background jobs
  • Public API endpoints for your end users
  • Advanced analytics dashboards

If you need these, you'll build them yourself, on a foundation that's already tested.

Friday: buy. Saturday: keys in .env. Sunday: first signup.

One-time purchase. License key by email within minutes. Yours forever.

$87.00one-time

Unlimited machines. Yours forever.

Try the live demo first →
← Back to all templates