T3 Stack · Concept
OpenAPI generation
tRPC lets you build type-safe APIs with TypeScript. The frontend can call backend procedures with inferred types, type checking, and auto-completion, without generated API code or runtime bloat.
Last updated
Syntax
createTRPCRouter({ procedureName: publicProcedure.input(schema).query(({ ctx, input }) => { ... }) })In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
TypeScriptAPI routerprocedurepublicProcedurePrismaNext.js