
Book Four/Completes the Stack
The AI Backend in Dart
The Server Every AI App Needs
Your AI app's provider key is sitting inside the app right now — and a stranger can drain it in minutes. This book moves the intelligence server-side in Dart: a streaming key-proxy, RAG over private data, auth, metered billing, background jobs, and deploy — the backend every real AI app needs, built end to end with Dart Frog.
$39177 pages · fixed-layout PDF · every code sample verified
Instant PDF download + read online · lifetime access · paperback coming soon
What’s inside
- Move the provider key server-side behind a clean proxy — the vulnerability, gone
- Stream tokens through your server, and give the model tools next to your data
- Postgres + pgvector RAG, per-user auth, metered billing, and background jobs
- Containerize and deploy to Fly.io / Cloud Run — plus an honest Serverpod head-to-head
Key ProxyStreaming · SSERAG · pgvectorAuth · BillingDeploy
How it’s organized
- 1Foundationsfirst server, shared types
- 2The AI Proxykey, streaming, tools
- 3KnowledgePostgres, pgvector, RAG
- 4Productionsafety, cost, auth, billing
- 5Ship & Scalejobs, observability, deploy
- 6Serverpod & Capstonethe alternative, then the whole thing




