lit-state VS butterfloat

Compare lit-state vs butterfloat and see what are their differences.

butterfloat

The greatest view engine for the modern web (by WorldMaker)
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
lit-state butterfloat
3 4
137 6
- -
0.0 9.2
over 1 year ago 3 months ago
JavaScript TypeScript
GNU Lesser General Public License v3.0 only 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.

lit-state

Posts with mentions or reviews of lit-state. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-27.
  • Web Components Eliminate JavaScript Framework Lock-In
    10 projects | news.ycombinator.com | 27 Nov 2023
    The reason React uses a virtual DOM is because when React started, there were no (advanced) HTML templates yet. And it made it easy to setup listeners on elements, instead of manually adding it with `addEventListener()` and possibly remove them again with `removeEventListener()`. So the virtual DOM was really a game changer.

    But Lit templates solve this problems in a more browser integrated way, without the need of a virtual DOM. How you manage the state is free to your choice, that is also not something exclusive to React and your favorite pattern can also be used with Lit. I wrote a tiny state management library (LitState [0]) which makes it very easy for multiple components to share the same state and stay in sync. I personally find it much more convenient and cleaner than any other state library I've used before. And it integrates very nicely with Lit.

    [0]: https://github.com/gitaarik/lit-state

  • Web Components Will Outlive Your JavaScript Framework
    16 projects | news.ycombinator.com | 25 Oct 2023
  • Litstate Simple Shared App State Management For
    1 project | /r/WebComponents | 15 Feb 2021

butterfloat

Posts with mentions or reviews of butterfloat. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-01.
  • JSR: The JavaScript Registry
    9 projects | news.ycombinator.com | 1 Mar 2024
    You can just use npm and ship node_modules on your website. It's probably "huge" so you probably want to clean out dev dependencies first (`npm prune --omit=dev` is one way to clean that) and you might find it useful to search for big binaries to filter out and redundant directories that you don't need (libraries that still include all of UMD and CommonJS and ESM builds even though you only need one), and there may still be libraries that don't directly load in the browser and you need to spot bundle with a tool like esbuild to a vendor directory.

    Mostly the only other glue you need after that is an import map.

    I find this flow useful (ship an optionally pruned node_modules, spot build specific vendor libraries, add import map), especially for lightweight development/testing, and so I did document it specifically from start to finish for one of my projects, it includes a vendor build one-liner:

    https://worldmaker.net/butterfloat/#/getting-started?id=setu...

    (The Example section after the Dev Environment one shows the import map at the top of the example HTML if you are looking for that. I forgot that's where it was when re-reading this.)

  • You Don't Need React
    5 projects | news.ycombinator.com | 8 Feb 2024
    Vanilla JS is better these days than when React first arrived. ES Modules are natively supported in browsers now and give you much of a component system.

    Though to be fair, rather than using Vanilla JS alone I did recently write my own React-looking but not React-like view engine: https://worldmaker.net/butterfloat/#/

  • Let's learn how modern JavaScript frameworks work by building one
    7 projects | news.ycombinator.com | 3 Dec 2023
    I've been taking a similar, but somewhat different approach to upgrading some old Knockout projects to mostly Vanilla JS+RxJS.

    Here's one example app: https://github.com/WorldMaker/compradprog/blob/main/main.tsx

    One of the obvious differences is that I'm still using TSX, but it is very different from React, it just looks a lot like React at first glance.

    Also, because I was doing it across at least a couple of projects, I started it from the beginning as its own small framework and have been trying to document it: https://github.com/WorldMaker/butterfloat/tree/main

    It's still very much in early "prerelease" stages, but feedback is welcome.

  • Web Components Eliminate JavaScript Framework Lock-In
    10 projects | news.ycombinator.com | 27 Nov 2023
    Just because on most modern hardware file I/O has millisecond latency and feels synchronous doesn't mean it is synchronous. It might feel like overkill to use Observables instead of Promises and I/O event loops or even thread-blocking faux synchronous file system calls, but there is still an asynchronous world there where it can be nice to have the full power of Observables. To be fair, my love affair with Observables started in C# in "backend" applications, so that's always been the natural fit for me and frontend and UI work has been the "side hustle" of taking stuff that I love in the backend side of the house and putting it to even more use.

    I'm calling my view engine Butterfloat, and I only just finished the first documentation pass, so be gentle, but feedback is very welcome: https://github.com/WorldMaker/butterfloat

What are some alternatives?

When comparing lit-state and butterfloat you can also consider the following projects:

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

apprun - AppRun is a JavaScript library for developing high-performance and reliable web applications using the elm inspired architecture, events and components.

kor - User Interface Component Library based on LitElement / lit-html

lit-style - Shared component styles for LitElement

panel - Web Components + Virtual DOM: web standards for powerful UIs

WebComponentFactory - Make use of JavaScript web components while keeping your code in .html for LSP features

lrnwebcomponents - HAXTheWeb monorepo of elements and apis

pota - pota is a small and pluggable Reactive Web Renderer. https://pota.quack.uy/

Filestash - 🦄 A modern web client for SFTP, S3, FTP, WebDAV, Git, Minio, LDAP, CalDAV, CardDAV, Mysql, Backblaze, ...

compradprog - Composite Radial Progress Demo