# developit/stockroom

🗃 Offload your store management to a worker easily.

Repository: https://github.com/developit/stockroom
Canonical: https://ross.abutalabs.com/products/stockroom
Homepage: https://stockroom.surge.sh
Language: JavaScript
License Family: other
Topics: unistore, worker, web-worker, flux, state-management, state-container
Last push: 2019-08-06T16:51:46+00:00

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

## Adoption (not part of the score)
Stars 1744, forks 44 (observed 2026-08-28T04:05:30.567249+00:00)

## What it is
Stockroom is a small JavaScript library that runs a Unistore store and its actions inside a Web Worker, with optimized bidirectional state synchronization to the main thread. It keeps the same API as Unistore, gracefully degrading to inline (main-thread) operation when Workers are unsupported.

## Use cases
- offload state management and store actions to a web worker
- keep heavy reducer logic off the main thread in a Preact or React app
- share a single centralized store between worker and UI thread
- run centralized actions in a background thread with main-thread fallback
- subscribe to worker-managed state updates on the main thread

## When to choose
- you already use Unistore and want worker-based state management with minimal changes
- your store actions are computationally heavy and block the UI thread
- you want a tiny Redux-like state container that runs in a Web Worker

## When to avoid
- your app doesn't use Unistore or a compatible tiny store API
- you need a full-featured state management solution like Redux or Zustand with middleware ecosystem
- you need actively maintained software - the last release was in 2019 and there is no license file in the repo

## Facets
- artifact type: library
- maturity: maintenance
- function: state-management, concurrency
- domain: frontend, web-development, developer-tools
- platform: browser
- tags: unistore, web-worker, flux, state-container, preact, redux-alternative, javascript, web-workers

## Member repositories
- developit/stockroom (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:30.567249+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-30T03:29:17.982739+00:00, confidence not recorded.
  - readme: https://github.com/developit/stockroom (fetched 2026-08-28T04:05:30.567249+00:00, sha 788fe677785d)
  - registry_npm: https://registry.npmjs.org/stockroom (fetched 2026-08-29T11:07:22.058267+00:00, sha 2e191b740a45)
- Data as of 2026-08-30T08:39:29.467469+00:00.
