Skip to content
masterclass Buddy

T3 Stack · Concept

Router

tRPC lets a TypeScript frontend call backend procedures with end-to-end type safety. Routers group procedures, while validators and inferred types help catch incorrect inputs before runtime.

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
  • Next.js
  • TypeScript
  • Zod
  • React Query
  • Prisma
  • superjson
  • httpBatchLink
  • appRouter

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