Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Glad to hear that ultimately you don't hate htmx or the people that use it.

htmx is a good choice for some types of applications:

https://htmx.org/essays/a-real-world-react-to-htmx-port/

it isn't right for everything, as I try to outline here:

https://htmx.org/essays/when-to-use-hypermedia/

i think i've been open and honest about when the hypermedia approach is appropriate and when it isn't and I've been open about posting bad experiences with the library:

https://htmx.org/essays/#on-the-other-hand

populist or not, i think the htmx website holds up pretty well when compared with other libraries/frameworks with respect to honestly outlining its pros and cons



Just out of curiosity, do you know of any hypermedia/hateoas open source repositories that you'd recommend as good example implementations?

The best I've found is the github v3 API but it would be nice to review different approaches.


Here's some hypermedia apps that I've made (caveat I use HTMF -- html-form on npm -- that is similar to HTMX but is simpler and stays closer to the native HTML):

An offline first MPA:

https://github.com/jon49/WeightTracker https://weight.jnyman.com/web/

A progressively enhanced from no JS needed to JS with HTMF and web components to make it work a little nicer to partial offline support:

https://github.com/jon49/cash

This uses C# to progressively enhance the website:

https://github.com/jon49/MealPlanner

This is like the weight tracker app but is a soccer game tracking app. The game play is much more complex then anything I've made in the other apps, I almost used a micro front end for that page, but it works fine with hypermedia. It also is a SPA as the page is always the same page using hf-select (works the same as hx-select). I'll be removing the SPA part as it is really unnecessary. I just added it originally because I didn't like the code calling the service worker code on every page. I've since made it so the service worker is under 100 bytes and then calls in the other code using importScripts.

https://github.com/jon49/Soccer

I hope you find those examples useful. Hit me up if you have any questions on github.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: