lit-state VS router

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

router

Small and powerful client-side router for Web Components. Framework-agnostic. (by vaadin)
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 router
3 2
137 401
- 0.5%
0.0 4.0
over 1 year ago 5 months ago
JavaScript HTML
GNU Lesser General Public License v3.0 only Apache License 2.0
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

router

Posts with mentions or reviews of router. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-27.
  • Router, pages, layouts and async data in TiniJS apps
    2 projects | dev.to | 27 Apr 2024
    Tini Router is the default way to add routing capability to TiniJS apps. There are also other routers you may use with TiniJS, such as: Vaadin Router and Lit Router.
  • Web Components Will Outlive Your JavaScript Framework
    16 projects | news.ycombinator.com | 25 Oct 2023
    One approach I don’t mind is to just make a HTML file per screen in the application and route like the rest of the web.

    When you bring in modern things like service workers and the prefetch API you can still very much keep the speed that is traditionally associated with SPAs.

    Otherwise I’ve seen good things said about both of these options:

    1. https://github.com/vaadin/router

What are some alternatives?

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

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

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

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

nonio-frontend

lrnwebcomponents - HAXTheWeb monorepo of elements and apis

joystick - A full-stack JavaScript framework for building stable, easy-to-maintain apps and websites.

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

flyctl - Command line tools for fly.io services

lit-style - Shared component styles for LitElement

h-include - Declarative client-side inclusion for the Web, using Custom Elements V1