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

I'm just curious if anyone is using unpoly instead of HTMX?

I know that HTMX has a much larger userbase, its main dev is well known and beloved, and the landing page doesn't look web 1.0

With that said, unpoly appears to have a similar feature set and one feature that HTMX doesn't: The ability to create modals without loading a new page.




I use it for a rewrite I'm doing because tracking state on both back- and front-end got too cumbersome.

I'm using Django, and a big positive of using unpoly is that I can write views like a traditional Django application and have a reactive frontend.

It does mean however that heavy pages impact front-end reactivity. So if there's only one tiny element that needs to be updated on the front-end, that takes more time than if the backend would only have to return a template partial (htmx) or some JSON (alpine).

Also, the documentation is really a reference. You need it read it front to back a few times to understand unpoly's capabilities.

It's strange that there are so few tutorials about it, because it's been around for a while already, it really has its use and it is still under active development.


How does it work with Javascript deactivated? In theory it should work that way, isn't it?


I'm using twinspark.js: https://twinspark.js.org/

It has "actions" that bridge a need for some client-side interactivity, without resorting to write lots and lots of JS. I have some interactive stuff that don't touch server. Also it's pretty easy to add more actions when needed.

And if I need to do something really complex, I can just go and read its source code. Which is really hard to do with unpoly and its really complicated OOP style.


Yes, using unpoly, I conclused the way updates work in unpoly to be easier to work with, less need for lots of special endpoints for every kind of interaction than in htmx. But haven't really tried htmx much.




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

Search: