|
|
|
|
|
by soulchild77
794 days ago
|
|
I created a pet project (REST API) with Hono and I'm seriously considering using it for future projects instead of what has been my go-to stack for years (Express, lately with Zodios). Hono's middlewares, especially zod-openapi[1] and @scalar/hono-api-reference[2], make it really easy to define your REST endpoints once and get full typesafe routes with request/response validation, an automatic OpenAPI spec, a beautiful OpenAPI browser and you can even reuse the typings in your frontend with Hono's RPC[3] middleware, essentially giving you end-to-end type-safety without any code-generation. Its maintainer yusukebe is a really nice guy who is always being helpful and very active. I want Hono to become the modern successor of Express. :) [1] https://hono.dev/snippets/zod-openapi [2] https://www.npmjs.com/package/@scalar/hono-api-reference [3] https://hono.dev/guides/rpc |
|
> beautiful OpenAPI browser
> end-to-end type-safety without any code-generation
That's a great sales pitch - I'd looked at Hono before but now I've opened all the links you mentioned and will try it out.