vdom-util VS yhtml

Compare vdom-util vs yhtml and see what are their differences.

vdom-util

Utilities to interact with a tiny virtual dom (by curlywurlycraig)

yhtml

Tiny html tag function for rendering Web Component templates with event binding (by dchester)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
vdom-util yhtml
2 3
2 101
- -
5.0 3.1
about 1 year ago 9 months ago
JavaScript HTML
- -
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

vdom-util

Posts with mentions or reviews of vdom-util. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-16.

yhtml

Posts with mentions or reviews of yhtml. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-02.
  • If Web Components are so great, why am I not using them?
    12 projects | news.ycombinator.com | 2 Aug 2023
    The main reason is that they're too low-level to use directly.

    They do a lot, but stop just short of being useful without something of a framework on top. I tried hard to use them directly, but found that it was untenable without sensible template interpolation, and without helpers for event binding.

    Here's my shot at the smallest possible "framework" atop Web Components that make them workable (and even enjoyable) as an application developer:

    https://github.com/dchester/yhtml

    It's just ~10 SLOC, admittedly dense, but which make a world of difference in terms of usability. With that in place, now you can write markup in a style not too dissimilar from React or Vue, like...

        ${this.count}
  • Modern SPAs without bundlers, CDNs, or Node.js
    8 projects | news.ycombinator.com | 16 Feb 2023
    I also sometimes enjoy this approach of starting from absolutely nothing.

    Instead of taking the path of starting with DOM manipulation and then going to a framework as necessary, I've kept really trying to make raw web components work, but kept finding that I wanted just a little bit more.

    I managed to get the more I wanted -- sensible template interpolation with event binding -- boiled down to a tag function in 481 bytes / 12 lines of (dense) source code, which I feel like is small enough that you can copy/paste it around and not feel to bad about it. It's here if anyone cares to look: https://github.com/dchester/yhtml

  • Bytes HTML tag function for rendering Web Component templates
    1 project | news.ycombinator.com | 18 Sep 2022

What are some alternatives?

When comparing vdom-util and yhtml you can also consider the following projects:

systemjs - Dynamic ES module loader

fastdom - Eliminates layout thrashing by batching DOM measurement and mutation tasks

preact-custom-element - Wrap your component up as a custom element

custom-elements - Using custom elements

img-comparison-slider - Image comparison slider. Compare images before and after. Supports React, Vue, Angular.

custom-elements-everywhere - Custom Element + Framework Interoperability Tests.

proposal-import-attributes - Proposal for syntax to import ES modules with assertions

FunPizzaShop

stencil - A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed natively to React, Angular, Vue, and traditional web developers from a single, framework-agnostic codebase.

lit - Lit is a simple library for building fast, lightweight web components.

uibuilder - Typed HTML templates using TypeScript's TSX files