# Legend-State

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


Source: https://findsoftware.frbit.cloud/legend-state/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://legendapp.com/open-source/state/
- repository: https://github.com/LegendApp/legend-state
- docs: https://www.legendapp.com/open-source/state/
- discord: https://discord.gg/5CBaNtADNX

### Identity

- status: active
- maintainer: Moo.do LLC
- maintainerType: company
- parent: unknown
- firstRelease: 2022
- hqCountry: unknown

### Kind

- category: library
- hosting: unknown
- language: javascript
- runtime: unknown
- runtimeMin: unknown
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: npm

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 2
- latestReleaseDate: 2024-08-30

### Adoption

- githubStargazers: 4225
- packagistDownloads: not applicable
- npmWeeklyDownloads: 160771
- contributors: 47
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: unknown
- dependentPackages: unknown

### Sources

- urls: https://legendapp.com/open-source/state/ (read 2026-11-16)
- urls: https://api.github.com/repos/LegendApp/legend-state (read 2026-11-16)
- urls: https://github.com/LegendApp/legend-state/blob/main/README.md (read 2026-11-16)
- maintainer: https://github.com/LegendApp/legend-state/blob/main/LICENSE (read 2026-11-16)
- firstRelease: https://registry.npmjs.org/@legendapp/state (read 2026-11-16)
- language: https://api.github.com/repos/LegendApp/legend-state (read 2026-11-16)
- category: https://legendapp.com/open-source/state/ (read 2026-11-16)
- installMethod: https://github.com/LegendApp/legend-state/blob/main/README.md (read 2026-11-16)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/@legendapp/state (read 2026-11-16)
- license: https://api.github.com/repos/LegendApp/legend-state (read 2026-11-16)
- licenseModel: https://github.com/LegendApp/legend-state/blob/main/LICENSE (read 2026-11-16)
- currentMajor: https://registry.npmjs.org/@legendapp/state/latest (read 2026-11-16)
- latestReleaseDate: https://registry.npmjs.org/@legendapp/state (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/LegendApp/legend-state (read 2026-11-16)
- contributors: https://api.github.com/repos/LegendApp/legend-state/contributors?per_page=1 (read 2026-11-16)

## Notes

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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
