Earlier quoted context omitted.
not sure i think this is a good way to fund their work BUT exploring models to make open-source sustainable for the developers does seem like a good thing, no?
I have no problem with anyone charging what they would like, but I do think it should be mentioned on the homepage. It feels intentionally left off which makes me think the developers themselves aren't 100% comfortable with the model.
Datastar: Lightweight hypermedia framework for building interactive web apps
31–40 of 298 posts
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#32Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#33It isn't mentioned on the homepage, but Datastar does charge for the following features: data-animate - Animates element attributes over time. data-custom-validity - Adds custom validity to an element. data-on-raf - Runs an expression on every animation frame. data-on-resize - Runs an expression on element resize. data-persist - Persists signals in local storage. data-query-string - Syncs query string params with sig…
What a weird comment. Why bring this up unless you're just trying to make them look bad in a dishonest way? It is clearly documented on the site in multiple places. Moreover, they actively dissuade people from even buying the pro license because they are quite emphatic that most people/sites do not need any of these features. If you do need them, then it's a small price to pay for the functionality, as well as to mak…
Frankly your response seems very hostile and makes me wants to avoid them more.
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#34Maybe it is because I'm a bit too deep in the React ecosystem at this point, but once you start trying to do any reasonably complex task, this seems like it would be significantly harder to reason about. Also, unless I'm misunderstanding it, this revolves a lot around the backend returning HTML to do backend-as-frontend, which given my previous experiences with the concept, I wouldn't want to touch with a 10ft pole.…
Though, it is certainly possible to cache pages since most sites do not need persistent state - it's just ephemeral things like toggling a button, linking an input box and another caption, etc...
Though you could run the datastar js sdk from a service worker and if you've synced necessary state to browser storage, you could have your backend there.
Also, for slow connections, compression is very powerful - especially over an sse stream where there's redundant info being sent. Another comment here has links to immense demos and the compression ratios are north of 90%.
Also, slow internet is often also associated with slow devices, which cannot handle the bloat of React, css-in-js etc
Datastar VASTLY simplifies everything while sacrificing essentially nothing in the way of functionality.
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#35Earlier quoted context omitted.
not sure i think this is a good way to fund their work BUT exploring models to make open-source sustainable for the developers does seem like a good thing, no?
I have no problem with anyone charging what they would like, but I do think it should be mentioned on the homepage. It feels intentionally left off which makes me think the developers themselves aren't 100% comfortable with the model.
[1] Time-stamped it for convenience: https://youtu.be/eMIB4Bkl08U?si=IfTslvZoGXVbou0w&t=1270
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#36Earlier quoted context omitted.
I mean, that seems ugly to me, but... Makes intuitive sense and is fine actually? Is HTML a rich language in which to embed stuff like this? No. Does this clearly get the point across? Yes. [Edit: this should've actually been attached to the GP comment. I agree with the parent.]
Isn't that the whole point of hypermedia frameworks like Datastar and HTMX? It's to extend the declarativeness of HTML. If you don't like the syntax, that's your preference. But I'm curious to hear why this is "wrong". Since that's a more objective thing, we can discuss it
You have a DSL based on data-* attributes
But then some attributes get this weird syntax-ish extension
Then some of those attributes accept a Datastar expressions DSL: https://data-star.dev/guide/datastar_expressions
So you can have
data-on-click__debounce.200ms="$landingGearRetracted && @post('/launch')"
Which is just bad designRe: Datastar: Lightweight hypermedia framework for building interactive web apps
#37Does anyone have a detailed comparison of the functionality you get from Datastar versus HTMX + Alpine.js? My impression was that Datastar was trying to be a lighter weight combination of the other two.
It also sticks to web standards as closely as possible (whereas htmx is trying to propose it's api as web standards).
It also has SSE, idiomorph, and more baked in by default whereas those are optional extensions in htmx.
They're also releasing css and web component frameworks/tools soon that look VERY powerful and simple.
Datastar has the potential to completely change web development.
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#38It sounds like some form of Event Sourcing? I didn't get much technical details from the page, and the (otherwise excellent) movie.
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#39Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#40Seems pretty elegant if you are willing to give up on the type safety of TSX. I wonder if this can be combined with it somehow. An example using Fresh would be great.