Settings

Theme

Elena, a library for building Progressive Web Components

elenajs.com

70 points by brianzelip 3 days ago · 7 comments

Reader

bobajeff 7 hours ago

I've found out about this and datastar * in the last 2 days. I'm getting confused about what these light frameworks/libraries are doing that I need over vanilla js. Also how do these compare to the last round of light frameworks like solid and svelte?

I'm on board with reducing the need to port to and from different frameworks. I also agree that we should try to avoid depending on npm for everything.

* https://github.com/starfederation/datastar

  • zdragnar 5 hours ago

    Back when angularjs was first becoming popular and wide adoption of data- attributes through HTML 5 were being discovered, everyone and their dog wrote their own lightweight version of angularjs, which looks a lot like htmx / datastar.

    They never really took off in large part because there wasn't good, performant support for MutationObserver, and thus few mechanisms for composability and live/ dynamic content.

    With people remembering that not everything needs to be react or a single page app, it's nice to have something that sits in-between pure vanilla and something heavier.

    We got out of the "framework of the week" mania years ago, but LLM use is making that make a bit of a comeback.

  • agos 4 hours ago

    in this specific case, it's because authoring web components without any support is a bit of a pain, and stuff like lifecycle or reactivity gets boilerplatey very quickly.

sirwhinesalot 9 hours ago

Yes, finally someone else that gets it. Shadow DOM is a misfeature. Being able to customize things with external CSS is a feature of the web, not a bug.

rixed 11 hours ago

Step back, and think about the fact that in 2026, the most regarded news site in tech is featuring a tool to build the simplest of UI elements.

croes 12 hours ago

Related:

https://news.ycombinator.com/item?id=49121196

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection