Hi! I'm curious how cal.com handles the public API? Was looking at how to acheive that with trpc and found your wonderful repo in the trpc docs but didn't find how y'all handle the public API part
z
zomars
12/21/2022, 6:06 PM
Thanks for the interest @Vinay Sateesh as for now the public API is not open source and it is reserved for enterprise customers. Although I would gladly answer any questions about it given the time.
v
Vinay Sateesh
12/22/2022, 7:57 AM
Yeah I'm just curious how you built it! Like the tech stack or whatever. I found a repo for trpc openApi support but I can't tell if it's the best choice or what else to use
z
zomars
12/22/2022, 5:43 PM
We're planning into adopting trpc open-api in the near future but right now it is only a next.js app that only uses api endpoints.
v
Vinay Sateesh
12/22/2022, 6:23 PM
Ah I see. So do you rewrite whatever is already a trpc procedure all over again? If it's a separate nextjs app that is
z
zomars
12/22/2022, 6:29 PM
Most endpoints are basic CRUDs but for the complex logic like bookings with reuse the same logic in both trpc and public API
zomars
12/22/2022, 6:29 PM
We're striving to make tRPC the source of truth tho
v
Vinay Sateesh
12/23/2022, 12:45 AM
I see! Alright thank you for answering me 🙂 I'm gonna try out trpc openapi myself