AUTHENTICATION
Email OTP sign-in. No passwords.
Better Auth with magic codes, protected route trees, SSR session forwarding, and cross-subdomain cookies.
A full-stack monorepo starter with email OTP auth, token-based billing, AI generation studio, media storage, and admin tooling — all wired up.
What's included
Six core systems, pre-wired and tested.
AUTHENTICATION
Better Auth with magic codes, protected route trees, SSR session forwarding, and cross-subdomain cookies.
AI STUDIO
Provider-agnostic AI workspace with structured extraction, media generation, and similarity search.
TOKEN BILLING
Multi-plan billing with Polar and Payture, token economy, credit grants, and entitlement policies.
MEDIA STORAGE
S3-compatible storage with signed uploads, avatar management, and a generated media gallery tied to user accounts.
ADMIN PANEL
Separate admin app with role-based access, token grants, provider sync, and lifecycle management.
TYPE-SAFE MONOREPO
tRPC + Zod from client to database. Shared packages for auth, UI, config, and database schema.
AI Studio
Every operation tracks tokens, persists output, and respects your billing entitlements.
Multi-turn conversations with configurable system prompts, model selection, and live token tracking. Every response is metered against your balance.
Run typed recipes that return JSON. Extract entities, summaries, and classifications from any source text.
Generate visuals with DALL-E or Sora. Every asset is stored to your account and browsable in the media gallery.
Embed text into vectors and search by similarity. Profile-based configs control chunking and charge rates.
Every AI call is logged with provider, model, token cost, and timestamp. Full audit trail per user.
How it works
01
PublicVisitors arrive at the marketing page. No sign-in required to explore features and pricing.
02
Email OTPClick sign in, enter an email, and get a six-digit code. No password form anywhere in the flow.
03
ProtectedVerified code authenticates the session. Dashboard, AI studio, billing, and media are all unlocked.
Fork the repo, configure your providers, and deploy a complete SaaS in minutes.