Oh great, yet another front-end framework, but this one is with paid features as well. Are we seriously going to pretend this isn't getting out of hand?
Datastar: Lightweight hypermedia framework for building interactive web apps
221–230 of 298 posts
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#222Earlier quoted context omitted.
If they are charging for features, those features are a business, even if its a nonprofit business. There is also precedent for the IRS to consider it unrelated business income and to make them pay taxes on it, but that seems to be a huge grey area in US tax law.
LOL. What US tax law?
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#223What’s getting lost in the whole kerfufflw over the Pro version is that this is NOT a monetization strategy. There is no intent to hook you - in fact they go out of their way to tell your you don’t need it. And the company is a registered non-profit.
Based on their own extensive experience they know which tiny set of features are likely to appeal to a very small group of people and at the same time are likely to incur the vast majority of support burden. By keeping these features out of the core they keep the base product simple and universal.
It is in fact an innovative and fair way of (a) signaling that these features are likely footguns, (b) getting just some of their costs covered by the people who either need the most support or are getting so much value from Datastar that they’re paying, (c) thereby freeing up their time to spend on the larger community.
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#224Manage all state in the server?
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#225Are we back to asp.net webforms? Manage all state in the server?
Sending chunks of html from the backend and updating only parts of the page is what webforms did 20ish years ago.
I'm trying to figure out what the appeal is here?
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#226It 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…
I tried Datastar and it was great, then I saw this kind of move and it turned me down immediately. I don't believe it is the right way to play. A Pro support would have been better. Plus the fact that the licensing prevent to use the Datastar Pro in any kind of open-source project. Very strange move.
Here's how you replace the URL without a page refresh:
function processAjaxData(response, urlPath){
document.getElementById("content").innerHTML = response.html;
document.title = response.pageTitle;
window.history.pushState({"html":response.html,"pageTitle":response.pageTitle},"", urlPath);
}
Similar snippets for the other few and you have successfully avoided helping fund the framework!Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#227Related ongoing thread: I switched from Htmx to Datastar - https://news.ycombinator.com/item?id=45536000 - Oct 2025 (223 comments) There 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.ycombinat…
Question also: do you somehow keep a "mental catalogue" of related articles or do you use some tool to find these?
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#228Maybe 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.…
"this revolves a lot around the backend returning HTML" → This is the way the Web used to work in the era of 56kbps modems (also, with ten levels of " " for layout).
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#229Earlier quoted context omitted.
I don’t feel the rest was really worth engaging with. SSE is a really interesting technology but again, it’s frontend agnostic. You can build a great SSE solution with any other framework. I read about approaches like this and I still don’t see the reason to do them, beyond “because you can” and “JavaScript is bad”. The separation of data and display logic between server and client is a sensible separation of concern…
You do it to reduce complexity. The problem with JS heavy frontend is you now have TWO applications. The real application, on the backend, which makes all the decisions, and the frontend application. You have TWO states which are being mutated independently that you now have to sync.
you guys are furiously arguing (and not really listening) about this or that hammer being good enough to treat every problem as a nail, like ssr was the "holy hammer". well, it isn't and not every problem is a nail, and while datastar looks excellent to me i simply would have no use for it if i needed client side logic or state for whatever reason.
Re: Datastar: Lightweight hypermedia framework for building interactive web apps
#230Obviously in react I can find components that work fine.
But is that something datastar can deal with well, or is this something where Î’d need datastar and some frontend js?