Discussion on HttpApi Design: Imperative vs Declarative Patterns

I want to raise some points I saw on twitter and agree with:

https://x.com/samgoodwin89/status/1952532489995718948

why is the HttpApi defined in the imperative builder pattern, perhaps it would be more user friendly in a declarative pattern as shown in tweet? Is it more effect’ive?

I am currently trying to migrate Hono services to effect platform while having no effect experience and it’s quite difficult
sam (@samgoodwin89)
Could @EffectTS_ 's HTTP API look like this instead?
Preview image

X

8/5/25, 12:49 AM

Was this page helpful?