Everything an SPFN backend runs on: the HTTP server, the typed route DSL, Drizzle data access, codegen, validated env, background jobs, events, cache, and the Next.js RPC client. The only required package — everything else is opt-in.
HTTP server entry point — config builder and lifecycle.
Type-safe route DSL and router composition.
Type-safe PostgreSQL data access on Drizzle ORM.
Type-safe Next.js RPC client and proxy.
Route-map generation and custom generators.
Schema-validated environment variable management.
The kernel's own validated env config.
Serializable HTTP/DB error classes, cross-boundary.
Error handling, request logging, proxy-guard, rate limiting.
Decoupled pub/sub events and SSE streaming.
pg-boss background jobs, typed payloads.
Singleton Valkey/Redis connection, graceful-degrading.
Zero-dependency structured logger, child loggers.
Safe outbound requests — SSRF-hardened safeFetch.