News for hackers. Stuff that matters.
Re:Building a Single-Page App with Htmx by swyx on Monday October 07, 2024 @01:25PM (#41768465)
> morphdom-swap

this https://github.com/bigskysoftware/htmx-extensions/tree/main/... with 159 stars is a basic tool of htmx? is this the community consensus?

Re:Building a Single-Page App with Htmx by jdiff on Monday October 07, 2024 @01:43PM (#41768719)
No. Morph swaps[0] are the basic tool of htmx. Morphdom-swap is simply the one that works for my usecase.

[0] https://htmx.org/docs/#morphing

Re:Building a Single-Page App with Htmx by jonathrg on Monday October 07, 2024 @04:48PM (#41770886)
Parts of htmx were yoinked out of the core library into an extensions repo relatively recently, as part of htmx 2.0. That might explain the relatively lower number of stars. More important than github stars is that it is indeed part of the htmx project and is documented here https://htmx.org/extensions/
Re:Building a Single-Page App with Htmx by throwitaway1123 on Monday October 07, 2024 @05:30PM (#41771266)
The htmx author maintains his own swapping library which has more stars (although I wouldn't judge a project solely based on Github stars): https://github.com/bigskysoftware/idiomorph?tab=readme-ov-fi...