GraphQL, tRPC, and your tech tool box
summary
Claims that tRPC creates fully typesafe APIs without separate schemas or code generation by sharing TypeScript types between client and server, demonstrated with live code: greeting, getUser and updateUser procedures, using Zod validation for inputs and standard JS/TS functions for DB calls. tRPC runs over HTTP/websockets, supports incremental adoption, and currently shows 60k downloads/week while GraphQL ecosystem is much larger; tRPC v10 is in alpha and previous TypeScript limits around ~100 procedures are noted, and a client-side cache hiccup appears in the demo.
AI-written summary · about
chapters (13)
- 0:00Start
- 2:14Agenda
- 3:10Introduction to Trpc
- 4:49Goals
- 5:30Rolling Your Own Rest Api
- 6:32What Is Trpc
- 6:55What Does It Mean To Build and Consume Typesafe Apis
- 9:24Demonstration of Trpc
- 18:27Make a Mutation Procedure
- 24:31Validation
- 27:27Comparison to Graphql
- 30:44Graphql and Trpc Work over Http and Websockets
- 32:55Conclude the Talk








