tRPC lets you build type-safe APIs without REST endpoints or schemas. Define procedures (functions) in TypeScript on the server, call them directly from the frontend with full type inference. No API documentation needed, types are the contract. Used in modern full-stack apps (Next.js, SvelteKit, etc.) for developer ergonomics and type safety. Takes 2-3 weeks to master. Sits between REST (verbose, type-unsafe) and GraphQL (powerful, complex) as the pragmatic TypeScript-only option.
tRPC (TypeScript Remote Procedure Call) is a framework for building end-to-end type-safe APIs. You define server-side functions (procedures) in TypeScript, and tRPC generates a strongly-typed client for your frontend. Call server functions directly from your frontend with full autocomplete and type checking, no REST endpoints, no API documentation, no serialization gaps. tRPC is ideal for full-stack TypeScript apps (Next.js, SvelteKit, Remix). The backend and frontend share the same types, so changes propagate automatically.
| 地区 | 初级 | 中级 | 高级 |
|---|---|---|---|
| USA | $88k | $145k | $200k |
| UK | $50k | $88k | $130k |
| EU | $54k | — | $135k |
| CANADA | $80k | — | $180k |
做一下职业匹配,我们会推荐合适的方向。
找到最适合我的技能 →在 2,536 个职业中进行技能匹配。免费,约 2 分钟。
免费做职业匹配 →