T
tRPC

❓-help

Using trpc backend across multiple seperate front ends

EEmma1281212/4/2023
I want to create a nodejs backend with trpc to expose some api endpoints. This will then be called across multiple different frontend react apps. How do I ensure type safety if they are in different repos?
Nnlucas12/4/2023
You can build a client package with the types distributed in, or use trpc-openapi to help generate clients But in general trpc is at its best in a monorepo

Looking for more? Join the community!