FindSoftware

Legend-State

State and sync library for JavaScript apps, with fine-grained reactivity and persistence to local storage and remote backends.

Legend-State is a state library for JavaScript applications with a sync system built in. Values live in observables: get reads one, set writes one, and observers and computed observables re-run when the values they read change. The React bindings ship in the same package as the core, so components read observables through the React helpers the package provides.

A sync plugin connects an observable to a backend such as Keel, Supabase, Firebase or TanStack Query, or to a generic fetch call. A persistence plugin keeps the value in local storage, IndexedDB, MMKV or AsyncStorage. Local changes apply first and are retried until the backend accepts them. The README says Jay Meistrich created and maintains it with Legend and Bravely.

Worth knowing

The documentation describes a newer major version that is still in beta, while the npm package’s stable release is the older line. Legend Kit, a separate product sold as premium tools by subscription, is not part of this library.

Identity

Status
Active
Maintainer
Moo.do LLC4
Maintained by
Company
First release
20225

Rendering and deploy

Install with
npm3

Releases

Current major version
27
Last release
2024-08-305

Adoption

GitHub stars
4,2252
npm downloads a week
160,7716
Contributors
478

Why these figures do not compare

Sources

  1. 2026-11-16: links, Categories
    legendapp.com/open-source/state/
  2. 2026-11-16: links, Written in, License, GitHub stars
    api.github.com/repos/LegendApp/legend-state
  3. 2026-11-16: links, Install with
    github.com/LegendApp/legend-state/blob/main/README.md
  4. 2026-11-16: Maintainer, License model
    github.com/LegendApp/legend-state/blob/main/LICENSE
  5. 2026-11-16: First release, Last release
    registry.npmjs.org/@legendapp/state
  6. 2026-11-16: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/@legendapp/state
  7. 2026-11-16: Current major version
    registry.npmjs.org/@legendapp/state/latest
  8. 2026-11-16: Contributors
    api.github.com/repos/LegendApp/legend-state/contributors?per_page=1

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON