News for hackers. Stuff that matters.
Re:HonoJS: Small, simple, and ultrafast web framework for th... by sqwxl on Tuesday April 16, 2024 @04:05PM (#40056524)
We are using a similar stack. I assume your client is located in the same repo as your server? That's a no-go for us, so we're planning on using the OpenAPI spec to generate a type-safe frontend client. I kind of wish it was as easy as using the RPC middleware, though.
Re:HonoJS: Small, simple, and ultrafast web framework for th... by soulchild77 on Wednesday April 17, 2024 @02:03AM (#40061009)
In cases where the client needs to stay separate, we have had a good experience with Orval[1] to generate a fully-typed @tanstack/query client from our OpenAPI spec.

[1] https://orval.dev/