tRPC

A TypeScript framework that lets a frontend call backend procedures with full type safety by sharing the server’s types, with no code generation.

In more detail

The server defines a router of procedures and exports only its type, AppRouter. The client imports that type and TypeScript checks every call’s input and output. Because it depends on the TypeScript compiler, tRPC suits internal full-stack TypeScript monorepos rather than public APIs used from other languages.

Related terms

Taught in

References