What problem does it solve?
It prevents brittle, schema-mismatched, and hard-to-maintain API code by enforcing end-to-end type safety across tRPC procedures, inputs, and React data access patterns.
Core Features & Use Cases
- Zod-powered input validation on every procedure to ensure runtime safety that matches TypeScript types.
- Feature-based router organization so the API grows by domain (e.g., userRouter, postRouter) instead of becoming a monolith.
- Correct client/server integration using tRPC v11 patterns with SuperJSON transformation, batching, and React Query-powered hooks.
- Use of authorization procedure levels (public/protected/admin) with middleware for consistent auth enforcement.
Quick Start
Ask: "Use the trpc skill to outline how to structure my server routers with Zod inputs, add a protected procedure with middleware auth, and wire the typed client hooks in my Next.js app."