tRPC: Better than REST GraphQL?
summary
Claim: tRPC gives end to end TypeScript types without schemas or code generation and it actually proves it. Demo uses Next.js and React Query integration, shows refactor from postId to id with immediate compiler errors, demonstrates HTTP batch link combining three HTTP calls into one, and shows optimistic updates and backend-to-frontend autocompletion. Intended for single teams and internal BFF-style APIs, works in web and React Native, and repository links and a demo repo are provided.
AI-written summary · about
chapters (10)
- 0:00Welcome
- 0:52What is tRPC
- 2:17Key features
- 3:29tRPC vs gRPC REST GraphQL
- 5:16tRPC in architecture
- 6:50Live demo: type-safe refactor
- 8:12tRPC with React Query
- 9:37HTTP batching & middleware
- 10:40Demo: HTTP batching
- 11:24Use cases & summary
related talks
13mMaking typesafe APIs easy with tRPC
34mGraphQL, tRPC, and your tech tool box
05mFull-stack & Typesafe React (+Native) Apps with tRPC.io
27mTake a rest from REST
26mThe hidden framework revolution: the comeback of RPC
28mRapid Fullstack Development with Nuxt 3 and tRPC
34mThe API Evolution
27mWeb applications of the future with TypeScript and GraphQL
