cami.js VS webcomponents-blog-examples

Compare cami.js vs webcomponents-blog-examples and see what are their differences.

cami.js

Cami.js is a simple yet powerful toolkit for interactive islands in web applications. No build step required. (by kennyfrc)
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
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
cami.js webcomponents-blog-examples
8 1
366 0
- -
9.5 5.3
11 days ago 6 months ago
HTML JavaScript
MIT License MIT License
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.

cami.js

Posts with mentions or reviews of cami.js. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-13.
  • HTML Web Components
    14 projects | news.ycombinator.com | 13 Nov 2023
    Preact requires a build step otherwise you don't get JSX and you have to build applications a la mithril.js mode:

    > const app = h('h1', null, 'Hello World!');

    With Web Components no build step is required and you're still able to build JSX'ish code. See the code below this section: https://github.com/kennyfrc/cami.js#key-concepts--api

  • Cami.js - A No Build, Web Component Based UI Framework
    1 project | /r/javascript | 6 Nov 2023
  • Show HN: Cami.js – A No Build, Web Component Based Reactive Framework
    1 project | /r/hypeurls | 6 Nov 2023
    6 projects | news.ycombinator.com | 4 Nov 2023
    Yes, the lib's great!

    Unfortunately I haven't thought much yet about interoperability with other web components libraries like lit. I imagined folks would choose just one web component library over the other.

    That said, you can initialize reactive properties(1), but property bindings won't work if there's a parent LitElement (as my reactive properties need to be called with either a .value method or an .update method for getting and setting respectively).

    As of the moment, what's possible is interop with other cami elements using a store, and in a future version, i'm considering a richer event system for external javascript code to listen to.

    ---

    (1) Initializing is possible with observerableAttr: https://github.com/kennyfrc/cami.js/blob/master/examples/008...

  • Leaders Are Tool Builders: Why I Wrote My Own JavaScript UI Framework
    1 project | news.ycombinator.com | 5 Nov 2023
    The author is getting a bit of heat, and I think rightfully so. Here is the "tool" he's all bragging about: https://github.com/kennyfrc/cami.js/blob/master/src/cami.js

    The whole thing is 250 Loc half of which is comments. And not to discount on that (Redux itself is not that big, though the ecosystem is). But this tool/project could be just a few blog posts where the author explains the patterns/libraries he is using.

    It also doesn't help that his blog post/tool has the highest concentration of buzzword language you can expect. Please don't do that.

webcomponents-blog-examples

Posts with mentions or reviews of webcomponents-blog-examples. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-13.
  • HTML Web Components
    14 projects | news.ycombinator.com | 13 Nov 2023
    > This feature of web components encourages a design of composability.

    I am not a React, Vue (and friends dev) at all. Heck, I haven't done front-end or full stack for a long time now.

    However, taking React as an example, where does it not encourage composability?

    I like Web Components. I even spent the last couple of weeks playing only with the vanilla APIs (no Lit, etc.) just to see what is like:

    https://lpedrosa.github.io/blog/web-components-part-3/

    https://github.com/lpedrosa/webcomponents-blog-examples

    Like many other people have pointed out in this post, it is great that you can leverage the platform. All the things you will learn e.g. DOM APIs, native elements and events, etc., are things you can carry over to React and Vue.

    However, I believe articles like this fail to acknowledge the contribution React and friends brought to developer experience.

    Building complex desktop like UIs was no longer impossible to maintain. You can easily make components and compose them, customise them, etc.

    The general complaint is more around "you don't need Next.js" to build a news/marketing/blog website. The pendulum is swinging, especially with things like HTMX gaining traction.

    IMO, people do it because:

    - It's easier to hire developers that know the framework du jour

    - Custom Elements are very flexible, so it's hard to enforce a particular style

    - There aren't enough examples of people using vanilla Web Components (and I mean vanilla, not Lit and friends), so why use a web component framework when I can use a react based one?

    Write more about how we can combine things like Custom Elements and "traditional" server side templating.

    Write more about how a native element reacts to changes to its attributes or how it communicates user interaction and how that helps building a good custom element.

    Or how building a good custom element is similar to building a good React component, and where it differs.

    Antagonising existing knowledge or even the status quo, is not constructive and leads to poor discussions e.g. Web Components is a failed technology or articles like OP

What are some alternatives?

When comparing cami.js and webcomponents-blog-examples you can also consider the following projects:

select2 - Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.

chat-app - A contact us demo widget built using Saasufy.

ElementsJS - A lightweight DOM Manipulation library for VanillaJS

htm - Hyperscript Tagged Markup: JSX alternative using standard tagged templates, with compiler support.

formio - A Form and Data Management Platform for Progressive Web Applications.

webcomponents - Web Components specifications

mini-van - Mini-Van: A minimalist template engine for DOM generation and manipulation, working for both client-side and server-side rendering (SSR)

supercomponent - Give your Web Components modern-day superpowers.

marimo - A reactive notebook for Python — run reproducible experiments, execute as a script, deploy as an app, and version with git.

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

Immer - Create the next immutable state by mutating the current one