← cd ../blog
cat ./blog/end-to-end-types-with-trpc.md
Why end-to-end types changed how I build
June 18, 20265 min read
#TypeScript#tRPC#DX
For years I treated the network boundary as a place where types went to die. You'd carefully model your backend, serialize to JSON, and then re-declare everything again on the client — hoping the two halves stayed in sync.tRPC flipped that for me. By inferring the client from the server router, a rename on the backend becomes a compile error on the frontend. The feedback loop tightens from 'find out in QA' to 'find out while typing'.The real win isn't fewer bugs, though that's nice. It's the confidence to refactor. When the type system has your back across the whole stack, you stop being afraid of moving things around.If you're starting a new project on a single team, give it a weekend. The DX is hard to give up once you've felt it.