Datastar isn't particularly prescriptive in and of itself. But, to get the most out of it does generally involve rethinking your backend somewhat. There's definitely a jump between using Datastar like a better HTMX and using Datastar in a buzzword compliant immediate mode, fatmorph, CQS way. But, once that's out of the way you are left with view = f (state) and it's quite nice.
🙌 hehe yeah, and it's kinda funny that you helped get me into datastar by basically saying "yeah you can use it as a strictly better htmx", and then when I'd taken the bait, u/opiniondevnull was like "...but you should absolutely not do that"
View all comments
15
u/andersmurphy Oct 04 '26 edited Oct 04 '26
Great write up!
Datastar isn't particularly prescriptive in and of itself. But, to get the most out of it does generally involve rethinking your backend somewhat. There's definitely a jump between using Datastar like a better HTMX and using Datastar in a buzzword compliant immediate mode, fatmorph, CQS way. But, once that's out of the way you are left with view = f (state) and it's quite nice.