# bcherny/undux

⚡️ Dead simple state for React. Now with Hooks support.

Repository: https://github.com/bcherny/undux
Canonical: https://ross.abutalabs.com/products/undux
Homepage: https://undux.org
Language: TypeScript
License: MIT
License Family: permissive
Topics: redux, typescript, typesafe, flux, react
Last push: 2025-05-08T00:27:10+00:00

## Health v2 (maintenance only)
Score: 41/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 20, release rhythm 35, longevity 100
- inputs: {"age_days": 3233, "days_push": 483, "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 1560, forks 34 (observed 2026-08-28T04:05:03.711691+00:00)

## What it is
Undux is a dead-simple, fully type-safe state management library for React, built on RxJS. It replaces Redux-style actions, reducers, and dispatchers with a minimal get/set store API and supports both React Hooks and higher-order component usage.

## Use cases
- manage shared state in a React app without Redux boilerplate
- get fully type-safe state updates in a TypeScript React project
- use a simple get/set store with React Hooks
- subscribe React components to reactive state changes
- replace Redux/Flux with a minimal state container
- share state across components without prop drilling

## When to choose
- you want minimal, type-safe state management with almost no boilerplate
- your app's state needs are simple and you find Redux overkill
- you prefer a get/set API over actions and reducers
- you want built-in React Hooks support

## When to avoid
- you need middleware ecosystems, devtools, or time-travel debugging like Redux offers
- you have complex state logic with many side effects and prefer reducers
- you need a library under very active development
- you want framework-agnostic state management outside React

## Facets
- artifact type: library
- maturity: maintenance
- function: state-management, frontend-framework
- domain: web-development, frontend, developer-tools
- platform: cross-platform
- tags: react, typescript, redux-alternative, flux, hooks, reactive-state, nodejs, web-server

## Member repositories
- bcherny/undux (main) score 41

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:03.711691+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-30T04:29:46.544951+00:00, confidence not recorded.
  - readme: https://github.com/bcherny/undux (fetched 2026-08-28T04:05:03.711691+00:00, sha abb37258aeec)
  - homepage: https://undux.org (fetched 2026-08-29T11:29:37.088834+00:00, sha 0cc085b9fecc)
  - registry_npm: https://registry.npmjs.org/undux (fetched 2026-08-29T11:29:37.098100+00:00, sha a37501f392ca)
- Data as of 2026-08-30T08:39:29.467469+00:00.
