Backend
tRPC
Integrate Rivet with tRPC for end-to-end type-safe APIs
tRPC provides end-to-end type safety for your APIs. Rivet integrates seamlessly with tRPC, allowing you to create type-safe procedures that call Rivet Actors.
View Example on GitHub
Check out the complete example
Installation
Install tRPC alongside Rivet:
Command Line
Basic Setup
Create Your Registry
Set up your Rivet Actors:
TypeScript
Create tRPC Router
Create your tRPC router that uses Rivet:
TypeScript
Frontend Client
Create a type-safe tRPC client:
TypeScript