T3 Stack · Concept
Type inference helpers
tRPC lets you build end-to-end type-safe APIs in TypeScript. The frontend can call backend procedures with inferred types and autocomplete, without code generation or runtime bloat.
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
TypeScriptNext.jsPrismaZod