I think you are looking for https://ts-rest.com/
If someone has tried both, can anyone share how it compares with tRPC[0]?
[0] https://trpc.io/
That being said, I am actually slowly migrating off ts-rest and adopting @effect/schema and @effect/platform/HttpApi, I foresee this being the direction the typescript ecosystem heads in over the next few years. However, the APIs are not stable yet and it has a bit of a learning curve, so would not adopt lightly