hono icon indicating copy to clipboard operation
hono copied to clipboard

Hono immediately need a good Validator built in Rust to compete with Encore

Open vinay-khatri opened this issue 9 months ago • 3 comments

What is the feature you are proposing?

I am working on a pretty big project and we chose Hono.js for fast development but now we are regretting it considering how incapable the Hono Validator is. We also tried zod validator with hono and found it much slower on large payloads. Request data validation is critical for any enterprise level business and we are considering migrating our code to Encore due to this reason. I really want Hono to compete with market and succeed as it one of the easiest framework to work with.

vinay-khatri avatar Mar 21 '25 13:03 vinay-khatri

Hi @vinay-khatri , there is already a discussion on this here I believe: https://github.com/honojs/hono/issues/3869 Perhaps you can join us there? Please also let us know if you tried https://github.com/rhinobase/hono-openapi

flipvh avatar Mar 21 '25 14:03 flipvh

Hi @vinay-khatri In addition to zod, Hono also provides validators based on standard schema (e.g. valibot).

For more information https://github.com/honojs/middleware/tree/main/packages/standard-validator

EdamAme-x avatar Mar 21 '25 15:03 EdamAme-x