Remix.run Logo
jauntywundrkind 7 hours ago

Very side note, but really liking seeing Elysia so close to the top on the benchmark list.

I've been using it, and pointing my LLM's to it as example code, because it's type system is so so much better than Hono's. https://elysiajs.com/

I didn't know that it was also flipping fast as frell. (Encore's benchmark is showing them as faster still, of course!)

speak_on 6 hours ago | parent | next [-]

Type system via a single schema looks similar to Hono+OpenApi+RPC, or is there a different advantage?

pier25 4 hours ago | parent [-]

Maybe I'm wrong but it seems more like Hono+Zod

speak_on 2 hours ago | parent [-]

The parts where responses have schema-consistent types (OpenApi) and the same types can be used on the client without extra work (RPC) are outside of Zod.

pier25 6 hours ago | parent | prev [-]

> because it's type system is so so much better than Hono's

Can you elaborate?

jauntywundrkind 3 hours ago | parent [-]

I wish I had a better encapsulation, a better anecdote, that shared the improvement I've felt nicely.

Elysia does have a write up on how they compare to Hono. Their sound type safety section helps show some differences: https://elysiajs.com/migrate/from-hono.html#sound-type-safet...