What problem does it solve?
This Skill provides a framework-agnostic pattern to build and consume fully type-safe APIs between server and client using tRPC, removing the need for schemas or code generation and ensuring shared types across layers.
Core Features & Use Cases
- Type-safe Routers & Procedures: Define routers, queries, mutations, and subscriptions with TypeScript types shared between server and client.
- Schema-free Typing: Share input/output types without runtime schemas or codegen, enabling rapid iteration.
- Cross-environment Support: Works in Node and browser contexts, ideal for monorepos, Next.js APIs, and microservices.
- Use Case: Build a single source of truth for API contracts in a full-stack React+Node project and evolve client/server APIs together.
Quick Start
Install core packages and scaffold a basic tRPC setup. Create a router with initTRPC, export a publicProcedure, and implement a client that calls the router endpoints.