Skip to content
masterclass Buddy

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.

Subscribe
  • createTRPCRouter
  • publicProcedure
  • Prisma
  • TypeScript
  • Next.js

Source: tRPC • Create T3 App. Checked 2026-11-03.