Does it make sense to use tRPC without a frontend?
This may be a stupid question, but…
I’m adding new API endpoints to an existing express application, and I’m interested in using tRPC. The problem is that it doesn’t interact with a frontend, so I question if it’s worth using tRPC in the first place. Thoughts?
Solution:Jump to solution
not necessarily, if you like the DX of trpc backend to creating the routes & procedures & testing. It makes sense to use the trpc server still. you can even just go with next, express, fastify or node
2 Replies
Solution
not necessarily, if you like the DX of trpc backend to creating the routes & procedures & testing. It makes sense to use the trpc server still. you can even just go with next, express, fastify or node
trpc main usage is typesafe communication between systems
you can easily use the vanilla client to communicate between running projects in the same monorepo