#trpc with react native
tRPC - Move Fast and Break Nothing
Node Congress 2023
26 min
tRPC - Move Fast and Break Nothing
TRPC is a tool that simplifies API development by allowing you to call functions in the backend and have the type data inferred into the frontend without code generation. It provides type safety and auto completion when querying databases using Prisma. TRPC can be used with various frontend frameworks and has features like automatic batching and middlewares. It can be shared between repositories using a monorepo or by publishing the types as an npm package. TRPC is easy to set up compared to gRPC and provides built-in input and output validation.
Full-stack & typesafe React (+Native) apps with tRPC.io
React Advanced 2021
6 min
Full-stack & typesafe React (+Native) apps with tRPC.io
Top ContentAlex introduces tRPC, a toolkit for making end-to-end type-safe APIs easily, with auto-completion of API endpoints and inferred data from backend to frontend. tRPC works the same way in React Native and can be adopted incrementally. The example showcases backend communication with a database using queries and validators, with types inferred to the frontend and data retrieval done using Prisma ORM.