T3 Stack · Concept
tRPC
tRPC lets you define typed backend procedures and call them from the frontend without API code generation. Input validation, router types, autocomplete, and React Query hooks connect the server and client.
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
ZodReact QueryhttpBatchLinkloggerLinksuperjsoncreateInnerTRPCContextcreateTRPCContextAppRouter