# umijs/hox

State sharing for React components.

Repository: https://github.com/umijs/hox
Canonical: https://ross.abutalabs.com/products/hox
Homepage: https://hox.js.org
Language: TypeScript
License: MIT
License Family: permissive
Topics: state-management, reactjs, react-hooks, react
Last push: 2024-04-09T16:11:06+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2513, "days_push": 876, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1454, forks 97 (observed 2026-08-28T04:04:46.704861+00:00)

## What it is
Hox is a lightweight state-sharing library for React that lets you create shared stores using the same hooks DSL as regular components. It supports both local and global state with minimal learning cost and strong TypeScript support.

## Use cases
- share state between React components without prop drilling
- convert a component's local state into a global store
- manage global application state with React hooks
- avoid boilerplate when writing React state stores
- share state across React components with TypeScript support

## When to choose
- you want a minimal, hooks-based state sharing solution for React
- you want to reuse existing React knowledge with almost no learning curve
- you need to easily refactor local component state into shared state
- you value good TypeScript support and performance in a small library

## When to avoid
- you need a full-featured state management solution with middleware, devtools, and time-travel debugging
- your project does not use React
- you prefer a store-based API with actions and reducers rather than hooks
- you need state management outside of React components

## Facets
- artifact type: library
- maturity: active
- function: state-management
- domain: frontend, web-development
- platform: browser
- tags: react, react-hooks, global-state, shared-state, typescript, nodejs

## Member repositories
- umijs/hox (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:46.704861+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:35:42.982243+00:00, confidence not recorded.
  - readme: https://github.com/umijs/hox (fetched 2026-08-28T04:04:46.704861+00:00, sha 5c28dabe85d0)
  - homepage: https://hox.js.org (fetched 2026-08-29T11:45:15.119889+00:00, sha 024f39e5465d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
