AI SaaS Stack

Everything to ship an AI product with users and billing: frontend, database, auth, the model, and email.

What it is

A common, well-tested setup for an AI SaaS. Each piece does one job and they connect with little glue code, so most of your time goes into the product itself.

How it fits together

Browser
  │  (forms, chat)
  ▼
Astro app ── server routes ──► Claude API   (the AI feature, streamed)
  │                          └► Resend       (transactional email)
  ▼
Supabase  (Postgres + Auth: users, sessions, data)

The pieces

  • Astro: the site and its server endpoints.
  • Supabase: database + auth (who the user is, what they saved).
  • Claude API: the intelligence.
  • Resend: confirmations, magic links, receipts.

When to use it

Almost any “AI app with accounts.” Start with a waitlist, add auth, drop in the AI feature.

Build it

Waitlist → Auth → AI Chatbot, in that order. Each is a workflow below.