lit-state VS live_state

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

live_state

The hex package for the server side of live state (by launchscout)
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 live_state
3 5
137 161
- 5.6%
0.0 6.9
over 1 year ago 24 days ago
JavaScript HTML
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

live_state

Posts with mentions or reviews of live_state. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-25.
  • Web Components Will Outlive Your JavaScript Framework
    16 projects | news.ycombinator.com | 25 Oct 2023
    Since you mention that state management is an unsolved problem with Web Components, I thought I would share a project that aims to bring a solution: https://github.com/launchscout/live_state. The basic pattern and idea of LiveState is "dispatch events, subscribe to state". The events and state updates are sent over a websocket connection, and the front end and back end libraries are a thin layer over Phoenix Channels. Currently, event handler functions are written in Elixir, but work is underway to allow them to be written in any language that compiles to WebAssembly.
  • Ask HN: Why isn't Phoenix/Elixir more mainstream?
    4 projects | news.ycombinator.com | 29 Sep 2023
    We have switched to Elixir and Phoenix as our go to stack gradually over the last 5 years. We've found that LiveView in particular, with it's ability to avoid a separate front-end framework altogether, has let us deliver applications to clients in a significantly more productive way. We were a rails shop back in the day, and were able to build things very quickly. When the whole front-end framework thing got big, it slowed us down a lot because we were building two applications, essentially. Now that we are able to go fast again we (and our clients) are enjoying things a lot more.

    I should also say that if you do need to use a separate front-end for whatever reason, I've built a thing called LiveState: https://github.com/launchscout/live_state that lets you keep things far simpler and gives a "LiveView like" experience.

  • What is the latest/greatest way to integrate React and Elixir?
    1 project | /r/elixir | 7 Mar 2023
    Another option would be https://github.com/launchscout/live_state
  • Phoenix Dev Blog – Streams
    3 projects | news.ycombinator.com | 4 Mar 2023
    Thank you, haven't seen this before. Similar to LiveState[0] also

    [0] https://github.com/launchscout/live_state

  • Making a real-time interactive app, what is the best way to go about using Elixir as a standardized back-end for web and mobile?
    1 project | /r/elixir | 11 Sep 2022
    I've been working on a thing to manage state via phoenix channels called live_state. The basic is idea is the front end code dispatches events which are sent up the channel, and receives state updates which are sent down the channel. The initial client I've done is js, and examples are for custom elements, but it should be fairly portable if it is of interest. I gave a talk on it at Elixirconf, video should be up eventually.

What are some alternatives?

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

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

kaffy - Powerfully simple admin package for phoenix applications

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

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

live_view_demos - Phoenix LiveView Demos 🚀

lrnwebcomponents - HAXTheWeb monorepo of elements and apis

ts-liveview - Build hybrid SSG and SSR realtime SPA/MPA with Typescript

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

Phoenix - Peace of mind from prototype to production

lit-style - Shared component styles for LitElement

pathex - Fastest tool to access data in Elixir