SPEC 003 — AI SAAS STARTER
Metered AI billing, solved before you write a line of product code.
Streaming chat, a credit ledger, and rate limiting — the unglamorous plumbing every AI product needs, already wired to Stripe and Claude.
Streaming responses, conversation history, ready UI
Metered usage billing — reserved before the call, trued up after
Per-user rate limiting so one account can't exhaust your API budget
Every grant and consumption event logged for support & analytics
SPEC 002 — WHAT'S INCLUDED
Credits, not a fixed seat price
Users pay based on how much they actually use. Reserve-then-true-up accounting means you never let a request through you can't afford, and never overcharge for a short reply.
Streaming out of the box
The chat route streams tokens as they arrive using the Anthropic SDK — no spinner-then-dump-the-whole-answer UX.
Rate limiting with an upgrade path
Ships with an in-memory limiter for local dev, with the exact swap point marked for Upstash Redis when you deploy to multiple instances.
An audit trail for every credit
Grants and consumption are both rows in an append-only ledger — the first thing you'll want when a customer asks "where did my credits go."
Ship your AI feature, not your billing plumbing.
One license, the full source, no recurring fee for the code itself.
View pricing