template

AI SaaS Boilerplate

Full-stack Next.js + Python starter with auth, billing, and AI baked in. Go from zero to deployed in a weekend.

What's included

  • ✓Next.js 16 frontend with App Router, TypeScript, Tailwind, shadcn/ui
  • ✓FastAPI backend with Claude API integration (streaming + batch)
  • ✓Clerk or NextAuth.js authentication with social login
  • ✓Stripe subscriptions with webhook handling and usage metering
  • ✓Redis rate limiting and response caching per plan tier
  • ✓Admin dashboard with user management and analytics
  • ✓Docker + GitHub Actions CI/CD + Vercel deployment config
  • ✓Transactional email via Resend

Code sample

python
# API route with auth + rate limiting
from fastapi import Depends
from app.auth import get_current_user
from app.ratelimit import check_rate_limit

@router.post("/ai/chat")
async def chat(
    request: ChatRequest,
    user = Depends(get_current_user),
):
    await check_rate_limit(user.plan, "chat")
    response = await claude.stream(
        model="claude-sonnet-4-6",
        messages=request.messages,
    )
    return StreamingResponse(response)
$67

Instant download · Lifetime access

Get it — $67

30-day money-back guarantee