News for hackers. Stuff that matters.
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.