122 points by stevedsimkins 1 day ago | 92 comments
pavlov 1 day ago
Right now it’s summarized as “typesafe fullstack monorepo”… But that’s so dense, it’s practically just three buzzwords together. A more realistic description of the pros and cons would be welcome.
I’ve never heard of Hono, and I’d personally need a lot more convincing to pick an unknown framework for a new app.
hombre_fatal 1 day ago
Hono is basically next gen Koa: zero dependencies and made to work in additional contexts like in CloudFlare Workers.
- Express deps: https://npmgraph.js.org/?q=express (lol)
- Hono deps: https://npmgraph.js.org/?q=hono
Node web servers are all so similar (you write ~identical code no matter which one you use) that tie-breaking on a dep diff this big is reasonable.
josephg 15 hours ago
hombre_fatal 10 hours ago
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.
Wazako 14 hours ago
nopelynopington 1 day ago
DrStartup 12 hours ago
stevedsimkins 1 day ago
johnhamlin 1 day ago
mathgeek 1 day ago
VyseofArcadia 1 day ago
Etheryte 1 day ago
pavlov 1 day ago
So the question is whether the target audience here is “people who want to build full-stack web apps” or “people who are already using the BHVR stack”.
crab_galaxy 1 day ago
If you build MERN apps, this is a template that replaces Express with Hono, Node with bun, and Webpack with Vite.
All of which are significantly faster than their counterparts. Hono can be deployed anywhere and has a much smaller bundle size than Express.
pavlov 1 day ago
pier25 1 day ago
pavlov 1 day ago
The exclusive gatekeeping messaging doesn't seem very useful. There's probably a much bigger audience for "Hey, instead of starting yet another Node project, why not try this?" rather than preaching to the already converted early adopters.
pier25 1 day ago
https://npmtrends.com/react-vs-vite-vs-webpack
Imagine someone posting a project that uses React and then someone demanding they explain what React is...
dev_l1x_be 1 day ago
pier25 1 day ago
That's fine but OP's template is clearly for devs with frontend skills. No?
zaphirplane 13 hours ago
liveafterlove 1 day ago
Works on Cloudflare, Fastly, Deno, Bun, AWS, or Node.js. The same code runs on all platforms.
How does compare to ultrajs? Or just use hono client side jsx, its pretty much like react already.
insin 17 hours ago
I've used a very similar setup for a couple of new projects which were about to default to Next.js but didn't really specifically need what Next.js does (e.g. its SSR abstractions, these were internal, client-only apps sitting behind an auth redirect) from wasting their time fighting it.
Hono also supports JSX on the backend out of the box of you want to use components as a superior alternative to string templating libraries to serve up some HTML, a middle ground of sorts if Astro (:heart:) is too much for what your app needs to do.
I haven't needed to take advantage of this yet, but if you don't need full-fat React, it can also SSR and run on the client, sort of "vanilla JSX" if you will (sorry).
molszanski 14 hours ago
I think Astro is perfect fit for majority of projects.
Ridiculously simple in use without all the next toil and issues
vlucas 8 hours ago
pier25 1 day ago