News for hackers. Stuff that matters.
Re:TRPC: End-to-end typesafe APIs made easy by vander_elst on Friday May 06, 2022 @01:56PM (#31288039)
How does this compare to gRPC? That the wire protocol is actually http+json instead of binary? I wasn't able to find much on their website
Re:TRPC: End-to-end typesafe APIs made easy by sachinraja on Friday May 06, 2022 @05:52PM (#31289945)
tRPC offers typesafety across your frontend and backend without needing to generate any code. This makes it so updates in your backend "router" are immediately reflected in your frontend code. You can't use gRPC with TypeScript without codegen. tRPC may be more familiar to TS/Node.js devs too.