T3 Stack · Concept
Output parser
tRPC lets you define typed backend procedures in TypeScript and call them from the frontend. It infers router types, so calls get type checking and editor completion without generated API code.
Last updated
Syntax
createTRPCRouter({ procedureName: publicProcedure.input(schema).query(({ ctx, input }) => result) })In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
createTRPCRouterpublicProcedurePrismaTypeScriptNext.js