
tRPC
End-to-end typesafe APIs. Full autocomplete from backend to frontend, no codegen.
In plain English
Like having a menu where every dish is guaranteed to exist. Normally, your website has to guess what the kitchen can make. With tRPC, the menu updates automatically — if the kitchen adds a new dish, your website instantly knows about it.
Real-world example
You're building a project management tool. When you type 'project.' in your frontend code, it automatically shows you every option: project.create, project.list, project.delete. No guessing, no typos, no broken features.
Where this fits in your project
This replaces REST APIs with type-safe function calls. Your frontend calls your backend like it's a local function.
When to use this
When you're building a full-stack TypeScript app and want your frontend to have full autocomplete for your backend API — no API documentation needed.
The situation
You're building a Next.js or React app with a custom backend and you're tired of manually keeping API types in sync.
Good for
- + Full-stack TypeScript apps
- + Next.js projects
- + Teams that want zero API drift
Not ideal for
- - Public APIs others will consume
- - Non-TypeScript backends
- - Simple apps that don't need a custom API
Getting started
Follow trpc.io/docs/quickstart — it scaffolds a full Next.js + tRPC setup.