What problem does it solve? It standardizes how developers create and modify tRPC routers in the apps/server codebase, preventing inconsistent error handling, scattered model instantiation, and ad-hoc response shapes across API endpoints. ## Core Features & Use Cases - Middleware-Based Model Injection: Enforces injecting database models into the tRPC context via middleware instead of constructing models inside every procedure. - Standardized Procedure Patterns: Provides query and mutation templates with zod input validation, TRPCError handling, and consistent { data, success } return shapes. - Aggregated Detail Endpoints: Shows how to build a single detail procedure that fetches related data in parallel with Promise.all to avoid N sequential client requests. - Use Case: When adding a new task domain endpoint under apps/server/src/routers/lambda, follow this guide to wire models through serverDatabase middleware, validate inputs with zod schemas, and return uniform responses. ## Quick Start Create a new tRPC router for the task domain following the trpc-router conventions with middleware-injected models and zod-validated procedures.