Overview
tRPC is a TypeScript-first framework for building typesafe APIs without schemas or code generation. It leverages TypeScript's inference capabilities to share types between client and server, eliminating the need for traditional API layers. This allows developers to build full-stack TypeScript applications with end-to-end type safety, catching API contract errors at build time. tRPC supports various JavaScript frameworks and runtimes, including React, Next.js, Express, Fastify, and AWS Lambda. It offers features such as automatic type safety, snappy DX with no build steps, framework agnostic compatibility, autocompletion, light bundle size with zero dependencies, and adapters for popular frameworks. tRPC enables rapid iteration and improves code quality, developer experience and speed of delivery by simplifying API development with built-in errors, typed middleware, and input validation.
