News for hackers. Stuff that matters.
Re:Show HN: Bhvr, a Bun and Hono and Vite and React Starter by josephg on Monday April 28, 2025 @04:05AM (#43818793)
In what way is Hono better than Koa? Any package can have zero dependencies if you just inline / bundle them in your package.
Re:Show HN: Bhvr, a Bun and Hono and Vite and React Starter by Wazako on Monday April 28, 2025 @04:43AM (#43819026)
It was designed by cloduflare for serverless use. There's no dependency on node, as cloudflare is based on web standards, so it was designed around warper for browser-native js modules (Request, crypto, ... hence the low dependency), which is why it integrates well with bun and deno.
Re:Show HN: Bhvr, a Bun and Hono and Vite and React Starter by hombre_fatal on Monday April 28, 2025 @08:25AM (#43820699)
Trivial dependencies should be inlined. Consider leftPad or isEven.

Or these Koa deps:

- https://github.com/isaacs/inherits/blob/main/inherits.js

- https://github.com/component/toidentifier/blob/master/index....

When you're building a web server library, you need to care about supply chain attacks because you're the one exposing people to them.

Anyways, that's beside the point. Hono is what Koa should have been if Koa wasn't frozen 10 years ago: a simple `res = await handle(req)` abstraction that works everywhere including edge workers.