starter

APP STARTER APP

Nuxt 4Hono + tRPCBetter AuthDrizzleTailwind v4Fal AIOpenRouter

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

Everything you need to launch.

Six core systems, pre-wired and tested.

AUTHENTICATION

Email OTP sign-in. No passwords.

Better Auth with magic codes, protected route trees, SSR session forwarding, and cross-subdomain cookies.

AI STUDIO

Chat, images, video, embeddings.

Provider-agnostic AI workspace with structured extraction, media generation, and similarity search.

TOKEN BILLING

Subscriptions, packs, usage ledger.

Multi-plan billing with Polar and Payture, token economy, credit grants, and entitlement policies.

MEDIA STORAGE

Upload, generate, and persist assets.

S3-compatible storage with signed uploads, avatar management, and a generated media gallery tied to user accounts.

ADMIN PANEL

Manage users, billing, and entitlements.

Separate admin app with role-based access, token grants, provider sync, and lifecycle management.

TYPE-SAFE MONOREPO

End-to-end types. Clean architecture.

tRPC + Zod from client to database. Shared packages for auth, UI, config, and database schema.

AI Studio

Five AI primitives.
One unified workspace.

Every operation tracks tokens, persists output, and respects your billing entitlements.

Provider-agnostic · OpenAI, Anthropic, and more

Chat completions
with streaming.

Multi-turn conversations with configurable system prompts, model selection, and live token tracking. Every response is metered against your balance.

{ }

Structured extraction

Run typed recipes that return JSON. Extract entities, summaries, and classifications from any source text.

Image & video generation

Generate visuals with DALL-E or Sora. Every asset is stored to your account and browsable in the media gallery.

Embeddings & similarity

Embed text into vectors and search by similarity. Profile-based configs control chunking and charge rates.

Usage tracking & ledger

Every AI call is logged with provider, model, token cost, and timestamp. Full audit trail per user.

How it works

From visitor to authenticated user in three moves.

01

Public

Browse the landing page

Visitors arrive at the marketing page. No sign-in required to explore features and pricing.

02

Email OTP

Enter email, receive code

Click sign in, enter an email, and get a six-digit code. No password form anywhere in the flow.

03

Protected

Access the full app

Verified code authenticates the session. Dashboard, AI studio, billing, and media are all unlocked.

Ready to ship?

Fork the repo, configure your providers, and deploy a complete SaaS in minutes.