News for hackers. Stuff that matters.
Re:HonoJS: Small, simple, and ultrafast web framework for th... by mansarip on Tuesday April 16, 2024 @12:50AM (#40048478)
Recently, I've been looking for a suitable stack for another pet project. Personally my go-to stack is Remix.

But I want to use a server other than the default provided by Remix, i.e minimal Express. So, I found Hono. It looks interesting because it can run on many runtimes, and this time I want to try using Bun.

After researching Hono, it turns out it can render JSX directly from the server, which piqued my interest. Then I tried to make the JSX interactive, and finally, I used htmx. Lol.

And just yesterday, after spending hours I found a way to use PDFKit with Hono (Bun runtime), so I created a gist for reference:

https://gist.github.com/mansarip/eb11b66e7dc65cee988155275a1...

Anyway I'm still cautious about putting this Hono + htmx stack into production use.

Re:HonoJS: Small, simple, and ultrafast web framework for th... by throwitaway1123 on Tuesday April 16, 2024 @01:13AM (#40048580)
> After researching Hono, it turns out it can render JSX directly from the server, which piqued my interest. Then I tried to make the JSX interactive, and finally, I used htmx. Lol.

HTMX is fine if you want to avoid writing client side JS, but Hono did add support for client components in version 4 [1]. There's even an esbuild middleware that can transpile TS/TSX files on the fly (the Deno framework Fresh uses a similar technique) [2].

[1] https://hono.dev/guides/jsx-dom

[2] https://github.com/honojs/middleware/tree/main/packages/esbu...

Re:HonoJS: Small, simple, and ultrafast web framework for th... by mb2100 on Wednesday April 17, 2024 @08:48AM (#40063884)
Hono client components are interesting. But I couldn't find any docs on how it's implemented and how that implementation compares to React/Preact/Solid etc.
Re:HonoJS: Small, simple, and ultrafast web framework for th... by dhucerbin on Tuesday April 16, 2024 @04:21PM (#40056688)
May I interest you in hwy.dev?
Re:HonoJS: Small, simple, and ultrafast web framework for th... by willsmith72 on Tuesday April 16, 2024 @06:58PM (#40058353)
hono and remix are a dream combo