Live data from Hacker News

Datastar: Lightweight hypermedia framework for building interactive web apps

data-star.dev

191–200 of 298 posts

Re: Datastar: Lightweight hypermedia framework for building interactive web apps

#191
post #13

Earlier quoted context omitted.

So your answers is no, you cannot provide any arguments.

The poster provided an example of poor abstraction. HTML for display, JS for client side logic. Combining them is part of the problem with other popular frameworks.

You mean like onclick?

Re: Datastar: Lightweight hypermedia framework for building interactive web apps

#192

Is there documentation on how they made that slick Star space animation on the front page? Very cool and retro looking

It's just a basic 1kb web component driven by datastar attributes

Do you have a link to the web component? I can't find the site code anywhere on their github org.

Re: Datastar: Lightweight hypermedia framework for building interactive web apps

#193

Maybe 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.…

In my experience from using react apps on 2g/3g… I would much prefer the html. Usually, you get the content in 1-2 seconds with html, where you could end up with a react apps that never loads at all. Why does it never load? Because enterprising engineers usually invent their own timeouts that make no sense when you are dealing with bytes-per-second. There’s already a one minute timeout on the socket, and it knows if…

The issue is that if you have to make more requests overall, there is a non-negligible rtt for each of those requests, which on slow connections can add up very fast

Re: Datastar: Lightweight hypermedia framework for building interactive web apps

#194
post #166

Earlier quoted context omitted.

You literally have a custom Javascript-like DSL already https://data-star.dev/guide/datastar_expressions This wilful insanity is completely incomprehensible to me (HTMX and lit are also fully infected with it): "Oh no, we are just HTML, we can't do anything" while literally doing tons of things outside of HTML.

What's your alternative that stay HTML spec compliant? Instead of whining show code

> What's your alternative that stay HTML spec compliant?

Again: you literally have a custom Javascript-like DSL in Datastar. Use that.

It's like the "it's just HTML" or "it's HTML-compliant" mantra somehow damages the brain, or something.

Edit: this custom JS-like DSL is so prominent and such a crucial part of Datastar, that it's referenced in the very first paragraph of reference: https://data-star.dev/reference

Oh, look, your HTML-spec-compliant thing in which it is apparently impossible to do anything outside data-* attributes somehow calls external functions, and updates signals, and reads signals, and does all sorts of things:

    
        
        
    
But no! It's absolutely impossible to do something about data-on-click__window__debounce.500ms.leading

Re: Datastar: Lightweight hypermedia framework for building interactive web apps

#195

Everything about this seems so bad! The website doesn't look serious at all. The code adds crazy html attributes, even more crazy than other crazy front-end frameworks like `data-on-input__debounce.200ms="@get('/examples/active_search/search')"`... this level of wrong is incredible.

Do you dislike Lisp too?

Re: Datastar: Lightweight hypermedia framework for building interactive web apps

#196
post #125
post #117

Earlier quoted context omitted.

Looking at https://data-star.dev/reference/datastar_pro#pro-features the features that stood out for me as things I would want to to use (and that don't feel particularly "pro" to me) are the animation features, data-replace-url, data-on-resize, data-scroll-into-view, the @clipboard() mechanism and, most importantly, the debugging tool. My problem with this business model is that it has a chilling effect on open sour…

Datastar is currently in the Release Candidate phase of v1, which they seem to be certain will be the final form of Datastar. So, they're really not looking for "community contributions" to the core of datastar, other than for feedback to polish it off. Moreover, ALL of the features are "plugins" - there's nothing stopping anyone from building and sharing their own. It is actually encouraged. In fact, in their next r…

Naming things really is hard. I can’t even with these names.

Re: Datastar: Lightweight hypermedia framework for building interactive web apps

#197
post #103

Earlier quoted context omitted.

They're not even running a business on this - its literally registered as a 501c3 nonprofit. Its a labour of love that theyve shared with the world, and they actively tell people that the pro features are unnecessary for most projects. If you want those features or just want to support the project, the cost is quite fair, and just goes to things like traveling to do conference talks etc... They are not getting rich o…

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

#198
post #125

Earlier quoted context omitted.

Datastar is currently in the Release Candidate phase of v1, which they seem to be certain will be the final form of Datastar. So, they're really not looking for "community contributions" to the core of datastar, other than for feedback to polish it off. Moreover, ALL of the features are "plugins" - there's nothing stopping anyone from building and sharing their own. It is actually encouraged. In fact, in their next r…

Naming things really is hard. I can’t even with these names.

what's wrong with the names? they seem perfectly fine to me...

Re: Datastar: Lightweight hypermedia framework for building interactive web apps

#199
post #181

Earlier quoted context omitted.

I'm sorry people didn't immediately take to this financing model as well as you did. The average person is not as invested as you and most people are going to immediately switch off if they hear part of the functionality costs money and this isn't mentioned anywhere on the front page. Doesn't matter how "unnecessary" these features are, it's a bad look. Plenty of other open source projects make money without attracti…

People pay for things all the time, why not (almost surely unnecessary) code? Why do you all feel entitled to free access to thousands of hours of very highly skilled devs' efforts (most of which they actually are giving away for free)? Moreover, it is quite common for there to be pro versions of libraries these days - tailwind, all sorts of component libraries, etc.. > Plenty of other open source projects make money…

I think the pro version and charging stuff is totally fine. It's the lack of transparency that bothers people. I shouldn't have to figure out their profit model from HN comments. If you want to be paid for your work, charge for the whole library or make the free/pro distinction very clear to people. Don't try to hook them in with a free offering while locking features behind a paywall that they discover later.

Or if you want to be altruistic (as you keep referring to nonprofit) make it free and solicit donations/patreon.

The current approach is certainly a new one and I am interested to see if it pays off.

Re: Datastar: Lightweight hypermedia framework for building interactive web apps

#200
post #9

It 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…

[flagged]

Can you please not post in the flamewar style to HN? We're trying for something different here:

https://news.ycombinator.com/newsguidelines.html

You can always make your substantive points thoughtfully, so please do that instead.

Edit: two things I realized after posting the above: (1) you're the project creator! well, I can understand how anyone would react negatively given the critical things some commenters have been posting.

But also (2) you've been breaking the site guidelines in other comments too (e.g. https://news.ycombinator.com/item?id=45539942). Ultimately we need you to stick to the rules, regardless of what other commenters are doing, and of course the same applies to them also.

(p.s. in case it's not clear, I'm a mod here and just trying to keep the peace a bit)

Post reply on HN