# LegendApp/legend-state

Legend-State is a super fast and powerful state library that enables fine-grained reactivity and easy automatic persistence

Repository: https://github.com/LegendApp/legend-state
Canonical: https://ross.abutalabs.com/products/legend-state
Homepage: https://legendapp.com/open-source/state/
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-08-11T01:53:15+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 35, longevity 100
- inputs: {"age_days": 1504, "days_push": 23, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4190, forks 144 (observed 2026-08-28T04:08:38.817499+00:00)

## What it is
Legend-State is a fast, signal-based state management library for React and React Native with fine-grained reactivity and minimal boilerplate. It also includes a powerful sync and persistence system enabling local-first apps with optimistic updates and backend plugins like Supabase and TanStack Query.

## Use cases
- manage global state in React without boilerplate
- minimize React re-renders with fine-grained reactivity
- build local-first apps with offline persistence and sync
- sync app state with Supabase or a custom backend
- replace Redux or Zustand with a faster observable-based store
- persist state locally in browser or React Native apps

## When to choose
- you want the fastest possible React state library with minimal renders
- you need local-first sync with optimistic updates and retries
- you want an all-in-one state, caching, and persistence solution
- you prefer observable/signal-based reactivity over reducers and dispatchers

## When to avoid
- you need state management outside the React/React Native ecosystem
- your team relies on Redux-style devtools and middleware patterns
- you only need simple server-state fetching without local persistence

## Facets
- artifact type: library
- maturity: active
- function: state-management, caching
- domain: frontend, web-development
- platform: cross-platform
- tags: react, signals, fine-grained-reactivity, local-first, observable, sync, persistence, supabase, web, react-native, typescript

## Member repositories
- LegendApp/legend-state (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:38.817499+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:22:36.045860+00:00, confidence not recorded.
  - readme: https://github.com/LegendApp/legend-state (fetched 2026-08-28T04:08:38.817499+00:00, sha 1061a36419e6)
  - homepage: https://legendapp.com/open-source/state/ (fetched 2026-08-29T09:13:18.423086+00:00, sha c8a22dc7dc68)
  - site_page: https://legendapp.com/open-source/motion/v2/getting-started/introduction (fetched 2026-08-29T09:13:18.434843+00:00, sha 16f4b062bb1e)
  - site_page: https://legendapp.com/open-source (fetched 2026-08-29T09:13:18.433008+00:00, sha 7e5037ad49aa)
- Data as of 2026-08-30T08:39:29.467469+00:00.
