Integrating oRPC with Effect and Handling Logging Differences
Effect with oRPC?
I have an oRPC api that I want to add as much Effect to as possible. (If you're not familiar oRPC is basically tRPC but also automatically creates an openapi api with great docs powered by Scalar.
oRPC can work with any number of web servers that they integrate with (Elysia, Hono, Next etc) or use it's own web server. I don't see an Effect integration from them yet though which isn't surprising. Do we know of a way to get orpc to play nice with effect http?
Right now I'm using Bun.serve with oRPC and Effect and its working nice however for some reason when I call
I know bun has its own rpc library but can it also automatically create an open api endpoint for the same handler and also provide a really nice api docs browser similar to Scalar?
Thanks!
I have an oRPC api that I want to add as much Effect to as possible. (If you're not familiar oRPC is basically tRPC but also automatically creates an openapi api with great docs powered by Scalar.
oRPC can work with any number of web servers that they integrate with (Elysia, Hono, Next etc) or use it's own web server. I don't see an Effect integration from them yet though which isn't surprising. Do we know of a way to get orpc to play nice with effect http?
Right now I'm using Bun.serve with oRPC and Effect and its working nice however for some reason when I call
Effect.log inside the orpc handler I see the log but it usually has the default log formatter and the logs look different than the rest of my app. I know bun has its own rpc library but can it also automatically create an open api endpoint for the same handler and also provide a really nice api docs browser similar to Scalar?
Thanks!
