AI summary by TwinMind
Do I even need this anymore?
Theo - t3․gg
5m 40s
tRPC Library Overview and Adoption
- tRPC gaining massive popularity through YouTube videos, Twitter drama (tRPC vs GraphQL)
- Speaker using tRPC for 1.5 years, early adopter and advocate
- Library simplifies development like Tailwind CSS did
- Initial skepticism about simplicity, concerns about scaling and enterprise use
- Now confirmed production-ready after 1.5 years of shipping
Sponsor Integration - Highlight.io
- Monitoring platform for front-end and back-end, recently open-sourced
- Provides tRPC bindings that directly attach to tRPC
- Offers exact tRPC query debugging information when issues occur
- Includes setup guides for tRPC integration
Code Migration Case Study - Ping Application
- Migrated from individual API endpoints to tRPC
- Previous setup: separate client/server matching pairs
- Server-side API endpoints in source/pages/API
- Client-side fetch calls with formatting
- Built reusable hooks
- Problem: type/shape changes on one side wouldn't reflect on other side
- Post-migration: most files haven't needed changes in 1.5 years
- Significantly faster iteration, bug fixes, problem handling
Historical Context and Development Journey
- Speaker initially considered GraphQL but avoided time investment
- Previous experience at Twitch influenced decisions
- Created proposal 2 years ago for code generation hook
- Frontend hook "use backend" concept
- Compile-time generation of react useQuery and fetch calls
- Generated endpoints on Next.js API side
- Goal: rapid backend call stubbing from frontend code
- Showed concept to Tanner Linsley, who recommended Blitz
- July proposal → September company migration (2 months)
tRPC Growth and Ecosystem
- npm installs now beating Remix numbers
- Create T3 App launched as companion project
- Boilerplate with best practices
- Covers auth management, Prisma connection, Tailwind setup
- Checkbox selection for components (TypeScript + Next.js mandatory)
- Demonstrates best practice integration patterns
Developer Experience Benefits
- Magical speed with proper setup
- Auth built into context (ctx.auth.user)
- Prisma contained within tRPC ecosystem
- Full-stack environment with auto-completion
- Removes multiple problem dimensions from development
- Fundamental change to development approach
- Direct return/call between backend and frontend with no intermediary layer
