3 ms·
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
by mansarip 2y ago
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/eb11b66e7dc65cee988155275a17a119 https://gist.github.com/mansarip/eb11b66e7dc65cee988155275a1...
Anyway I'm still cautious about putting this Hono + htmx stack into production use.
- throwitaway1123 2y ago> 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 https://hono.dev/guides/jsx-dom [2] https://github.com/honojs/middleware/tree/main/packages/esbuild-transpiler https://github.com/honojs/middleware/tree/main/packages/esbu...
- mb2100 2y agoHono 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.
- dhucerbin 2y agoMay I interest you in hwy.dev?
- willsmith72 2y agohono and remix are a dream combo