T
TanStack2mo ago
absent-sapphire

typesafe api routes

Is there any future consideration to make first party orpc like thing in tanstack echosystem. I want to utilize my server routes in typesafe way in web application. server functions are good but not scalable to mobile and other integration... it is simple to create such proxy if we have endpoint at 'api/users/invite: post` it should be like api.users.postInvite() but also params, search params and body should be typesafe....
3 Replies
stormy-gold
stormy-gold2mo ago
never say never, but for now it wont happen we recommend embedding a typesafe API like hono, elysia etc into a start server route
absent-sapphire
absent-sapphireOP2mo ago
Is there any example repo or any docs resources?
sensitive-blue
sensitive-blue2mo ago
Would love docs on how to do this

Did you find this page helpful?