News for hackers. Stuff that matters.
Re:Show HN: Bhvr, a Bun and Hono and Vite and React Starter by flashblaze on Sunday April 27, 2025 @09:42AM (#43811858)
Using Hono RPC would immensely help this. I'm using a similar kind of setup for my upcoming micro SaaS and the API integration has been a breeze

https://hono.dev/docs/guides/rpc

Re:Show HN: Bhvr, a Bun and Hono and Vite and React Starter by stevedsimkins on Sunday April 27, 2025 @09:59AM (#43811982)
Thanks for the rec! Definitely gonna check this out
Re:Show HN: Bhvr, a Bun and Hono and Vite and React Starter by easygenes on Sunday April 27, 2025 @10:52AM (#43812355)
For about a year Hono has had mature RPC. So bhvr has a type-safe RPC story without tRPC: export your AppType, import it in the browser, and hono/client gives you fully-inferred calls plus Zod-backed validation — in a ~3 kB helper instead of tRPC’s heavier client and adapters.

You still won’t get auto-generated hooks or WebSocket subscriptions, but for plain REST/JSON the old “hand-rolled fetch” drawback is gone, leaving only edge cases like hooks, real-time, and IDE scalability as the remaining trade-offs.

Re:Show HN: Bhvr, a Bun and Hono and Vite and React Starter by krashidov on Sunday April 27, 2025 @08:31PM (#43816390)
Hmm do you know how it compares to https://trpc.io/ ?
Re:Show HN: Bhvr, a Bun and Hono and Vite and React Starter by flashblaze on Sunday April 27, 2025 @11:58PM (#43817392)
I haven't worked with trpc, but looking at the docs everything looks to be pretty tightly coupled together In Hono RPC, you just have to replace the fetch api call with the RPC client and you're good to go