For those of you who don't think Datastar is good enough for realtime/collaborative/multiplayer and/or think you need any of the PRO features. These three demos each run on a 5$ VPS and don't use any of the PRO features. They have all survived the front page of HN. Datastar is a fantastic piece of engineering. - https://checkboxes.andersmurphy.com/ - https://cells.andersmurphy.com/ - https://example.andersmurphy.com/…
[flagged]
Datastar: Lightweight hypermedia framework for building interactive web apps
201–210 of 298 posts
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#202This post and other posts about datastar on the hn frontpage seem unnatural to me. It's like a marketing effort to astroturf this, especially with newly created accounts interacting with this...
Trying to decide whether to merge the threads and/or which of them should 'win'...
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#203There is also https://news.ycombinator.com/item?id=45537372, which I'm trying to figure out what to do with (bear with me... edit: ok, I found a place to merge it: https://news.ycombinator.com/item?id=45536535)
Previously:
Datastar: Web Framework for the Future? - https://news.ycombinator.com/item?id=43655914 - April 2025 (155 comments)
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#204Maybe 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.…
Some people write their own websites where they blog (where Wordpress would be enough), some build shops with mostly static content that has to load fast but has no real interactivity, others build full-fledged software like Figma/Discord and for the true masters, the DOM is a prison and only coupled with GPU-accelerated computations will do.
Obviously htmx and it's siblings are nice for blogs, docs and shops. You don't build a "software" level website with it.
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#205Not sure why the community is being so hostile like use phoenix or it charges or its hostile Like no its not. This is a genuinely cool project and most parts of it is open source and it can run on any language and its interesting that they are looking at a way so that they can fund the development of it in the process as well Its their project and they are the only ones entitled to really push things the way they wan…
This is the only valid and reasonable criticism I've seen here so far, kudos to you. 299 is, indeed, inaccessible for many people. But, the devs live in places where things cost more, so its also a tiny price compared to the relative value that they provide. I do think that some sort of geo-relative pricing structure would be worth looking into, but how does one even implement something like that? Is there something…
Stripe?
You can geolocate via IP as a first pass for the frontend, check the card’s country code for the order, and then the billing/shipping/account address if it’s really that important (like when your service has different costs depending on locality).
I’m sure there are services that can handle it for you but it’s so simple to implement price discrimination to whatever threshold you want that I’ve never checked. The hard part was always figuring out the false positive/negative rate and the frontend flow when the different steps disagree on location, but those are edge cases that don’t really matter with zero marginal cost digital goods.
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#206Not sure why the community is being so hostile like use phoenix or it charges or its hostile Like no its not. This is a genuinely cool project and most parts of it is open source and it can run on any language and its interesting that they are looking at a way so that they can fund the development of it in the process as well Its their project and they are the only ones entitled to really push things the way they wan…
I cannot speak for other people, but here is where I'm coming from:
- There is no mention of Pro on the home page, I only found out about Pro after flipping through the documentation. This comes off as sleazy, like "Look at our cool open-source project", and then after they have you hooked they go "oh, if you want all all of it you gotta get Pro". - Pro is locking genuine features, not just support, video tutorials or code examples. - It is vendor lock-in, if you want to rely on any Pro feature you are now at the mercy of the maintainers. - What make the vendor lock-in particularly problematic is the fact that without Datastar your website will not work. Sure, it does suck if your CI service, test platform or whatever does not work, but as long as you can compile and deploy the code you will survive, even if you have to do it by hand. Not so with a library. - There are no examples of what your are buying. At least with the non-Pro features you can try them out for free without any commitment, but when it comes to Pro you are just taking a blind guess as to whether any of them are what you want. Compare that to the Pro examples Alpine has[1], where you can play around with them in the browser. - I don't know if you get source code, but even if you do you cannot share your improvements with anyone.
Note that I never mentioned the price. The value will vary from person to person, for some it will be unaffordable, for others it will be a great deal (e.g. freelancers who will make the money back within one gig). I got my employer to sponsor Alpine a year ago and they have given more to Alpine than what Datastar are charging for Pro.
For reference, two projects which have non-objectionable Pro versions are Alpine.js[2] and React Flow[3]. React flow even have a link to their Pro page right on the home page.
[1] https://alpinejs.dev/components [2] https://alpinejs.dev/components [3] https://reactflow.dev/pro
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#207Most web pages I try to build never look right on firefox on android.
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#208It 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…
Which is priced similar to Tailwind UI, which people are fine paying for.
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#209This post and other posts about datastar on the hn frontpage seem unnatural to me. It's like a marketing effort to astroturf this, especially with newly created accounts interacting with this...
I thought the same before I saw your comment. Several posters are new or have also posted on previous posts about Datastar (and are oddly aggressive.)
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#210I'm on the fence about signals though. They are fine for simple things like individual text form fields or opening closing a drop-down. But my backend is a Kubernetes style API server. And storing a JSON Kubernetes style resource in a signal does not work because of how Datastar implements parsing the structure into child signals. For me it would be better to just be able to turn this off.
One example where it breaks are K8s labels. They are map[string]string and the key is often hostname prefixed. E.g. example.com/label-key. Datastar can't handle these keys at all and the resulting signals are a mess.
I'm aware that I may be using signals not as intended. But something as simple as data-signals-resource="k8sJson" and then data-bind="resource.metatdata.name" is a great way to work. And it works for metadata name. But it doesn't work if any part of the path needs to be an index in a list or a label key in hostname style.
The other thing I find painful about Datastar signals are the magic about how attributes written something-something in HTML become somethingSomething in JS and all all the snake, camel etc. __modifiers. It's just error prone to work with. Not a great experience.
But overall I still stuck with it so far and am happy with the general idea of HTMX and Alpine functionalities implemented as one and using hypermedia as a general approach. Anything so I can avoid the NodeJS ecosystem really.
When a few RCs back the wire format changed, it was quite a laborious update for me, because using Fiber I can't use the Go SDK and implemented my own. But the wire format clearly changed for the better so it was worth it.
I think the developers are on to something and should keep iterating.