Runtime & App
Bun + Next.js 16 + TypeScript
High throughput with modern App Router primitives and strict typing across boundaries.
Architecture Ledger
Every package was picked for a reason. This page breaks down each layer — runtime, data, AI, billing, and observability — along with the tradeoffs you should know before you ship.
Bun + Next.js 16 + TypeScript
High throughput with modern App Router primitives and strict typing across boundaries.
PostgreSQL 17 + Drizzle ORM + Redis
Durable relational core with type-safe access and low-latency caching/rate limiting.
Vercel AI SDK + Groq/OpenAI
Provider flexibility, stream orchestration, and fast fallback options for reliability.
Qdrant + Neo4j
Vector similarity plus relationship modeling for richer context and long-horizon retrieval.
BullMQ + Docker + OpenTelemetry
Background execution, reproducible environments, and traceable production behavior.
Stripe + Better Auth
Secure subscription lifecycle and identity controls for usage-gated products.
Tradeoff
Higher setup complexity, but stronger retrieval quality for connected knowledge domains.
Tradeoff
Faster local loops while preserving compatibility with mature TypeScript workflows.
Tradeoff
Slight orchestration overhead for better latency/cost control and failover safety.
Practical result
The stack is engineered so teams can keep momentum: reliable persistence, flexible model routing, and production instrumentation are solved together instead of patched in as separate projects.