| I highly recommend everyone to give htmx or datastar a try, especially if your main experience is react or nextjs. We recently rewrote a half-million LOC codebase from react to datastar, with a detour through htmx first, and the results are staggering. First page load is 20KB down from a 750KB js bundle. 1 network request vs 40+. Total load time 0.1 seconds down from 2 seconds of spinners. Page refresh is so fast, the browser doesn’t even flash - there’s no massive js bundle to parse, so it can start rendering instantly. But the most staggering result is that in-document navigation over SSE achieves up to 5000:1 compression ratio for network requests within the Brotli compression window. Yes, 5000:1, you read that right. When changing server state we rerender the entire page, like an immediate-mode game engine, and push it to the client over an SSE “fat morph”, in about 100 bytes. It’s so fast and so much more stable, our users are literally having fun. With a medical device. And this ends up ~50% less code to maintain for a VASTLY superior UIX. You are really missing out if you don’t learn how this works. It can give you a significant competitive edge if you care enough to try. Edit: Big BIG thanks to bigskysoftware and the datastar team for making the web a sane place again. You really deserve all the props. |
Makes multiplayer out of the box over large datasets trivial. See these demos if you don't believe me [1][2] (open them in multiple tabs and have fun)
[1] https://checkboxes.andersmurphy.com
[2] https://example.andersmurphy.com