domdiff
el
domdiff | el | |
---|---|---|
2 | 8 | |
210 | 248 | |
- | 1.6% | |
0.0 | 5.1 | |
over 1 year ago | 6 months ago | |
JavaScript | JavaScript | |
ISC License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
domdiff
-
Ask HN: What happened to vanilla HTML/CSS/JS development?
> There are lighter-weight shadow dom frameworks out there (than Vue/React/Angular) so why would you want to write one yourself?
You can even avoid a shadow DOM entirely:
https://github.com/WebReflection/domdiff
https://github.com/WebReflection/uhtml
-
Proposal to add efficient DOM diffing to browser
If by faster you mean faster than React I think there is evidence it can be. The author of the issue writes lots of dom utility and rendering libraries and I believe domdiff is more or less what he describes in the post:
https://github.com/WebReflection/domdiff
You can find it placed way above React in the usual JS rendering benchmarks:
https://rawgit.com/krausest/js-framework-benchmark/master/we...
Now it's not entirely clear whether these benchmarks convey something meaningful except for maybe the point that most frameworks are quite fast. That being said I think it's developer experience that really stands to improve. Thinking of view as a pure function of state was a great innovation, but existing implementations can end up fracturing the view into virtual doms and non-virtual. Then you end up with problems like D3 and React not coexisting.
I feel like I heard something from the lit-html folks that a long term aspiration was to integrate some learnings from the project into chrome, but I haven't been able to find where again.
There has been a trend in JS with libraries becoming idiomatic to the language to later have the issues they targeted be addressed natively (a la JQuery).
In general, I definitely appreciate your point about adding complexity to the platform, but I think when it comes to web technologies that ship has long sailed. I really see it as an opportunity to bring a lot of simplicity, chiefly filling that void that's birthed a billion JS frameworks.
Thanks for the thoughtful comment.
el
-
VanJS (Vanilla JavaScript): smallest reactive UI framework
Very cool! See also El, which is similarly sized, with an arguably more natural reactive interface: https://github.com/frameable/el
-
Building a Front End Framework; Reactivity, Composability with No Dependencies
Nice writeup. We're working on a framework with similar goals, here: https://github.com/frameable/el
Reactivity, composability, templates, etc with no dependencies, in ~150 SLOC.
-
Ask HN: What are the minimum features required to consider a framework complete?
We built El[0] with the goal of making a minimal framework for building web apps. As a data point, it has a built-in observable store, reactive templates, scoped subset of scss, no dependencies, and can almost fit in a single network packet.
[0]: https://github.com/frameable/el
-
The new wave of Javascript web frameworks
Stick to lightweight frameworks like Lit and El built on standard Web Components, and let the rest of the craziness come and go at whatever pace it wants.
-
Ask HN: What happened to vanilla HTML/CSS/JS development?
We developed El to be as minimal as possible, while still solving the problem of keeping state and interface in sync:
https://github.com/frameable/el
It's just ~150 lines / 2kb, and leverages existing browser functionality to accomplish most of the hard parts. Has observability, reactive templates, scoped CSS, no need for a build process, etc.
- El.js — Tiny alternative to React / Vue / lit-element
- El — Fast and tiny alternative to Vue.js
- Show HN: El – Minimal front-end application framework based on Web Components
What are some alternatives?
dom - DOM Standard
van - 🍦 VanJS: World's smallest reactive UI framework. Incredibly Powerful, Insanely Small - Everyone can build a useful UI app in an hour.
modern-todomvc-vanillajs - TodoMVC with Modern (ES6+), Vanilla JavaScript
notemplate - NoTemplate is not a template library.
tinyjs
prehistoric-simulation - Simulator in browser
eureka - Lucene-based search engine for your source code
AlgoVis - A web page that visualizes a simple sorting algorithm.
web-starter - Starter for Fastify + Web Components/Lit Web App. Includes Reload and web server restart on dev mode.
htmx - </> htmx - high power tools for HTML