# nanostores/nanostores

A tiny (340 bytes) state manager for React/RN/Preact/Vue/Svelte with many atomic tree-shakable stores

Repository: https://github.com/nanostores/nanostores
Canonical: https://ross.abutalabs.com/products/nanostores
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-08-20T18:33:11+00:00

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

## Adoption (not part of the score)
Stars 7580, forks 160 (observed 2026-08-28T04:10:01.759681+00:00)

## What it is
Nano Stores is a tiny (under 1 KB) state management library using many small atomic, tree-shakable stores. It integrates with React, React Native, Preact, Vue, Svelte, Solid, Lit, Angular, and vanilla JS.

## Use cases
- manage shared state in a React app without Redux
- tiny state manager for a Svelte or Vue project
- create derived computed stores from atomic state
- move business logic out of components into stores
- keep bundle size minimal with tree-shakable state
- share state across React Native components
- handle async state and effects outside components

## When to choose
- you want a minimal, zero-dependency state manager with tiny bundle size
- you use multiple frameworks or vanilla JS and want one state solution
- you prefer atomic stores over a single global store
- you need good TypeScript support

## When to avoid
- you need a full-featured store with built-in devtools, middleware, or time-travel debugging
- your team already standardizes on Redux, Zustand, or Pinia
- you need heavy ecosystem tooling around state management

## Facets
- artifact type: library
- maturity: stable
- function: state-management, frontend-framework
- domain: web-development, frontend, developer-tools
- platform: cross-platform
- tags: atomic-stores, tree-shakable, tiny-bundle, react, vue, svelte, preact, solid, angular, typescript, nodejs, web-server

## Member repositories
- nanostores/nanostores (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:01.759681+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-29T17:36:54.764185+00:00, confidence not recorded.
  - readme: https://github.com/nanostores/nanostores (fetched 2026-08-28T04:10:01.759681+00:00, sha 95b7958d291d)
  - registry_npm: https://registry.npmjs.org/nanostores (fetched 2026-08-29T08:32:35.736614+00:00, sha 4b54edbec9e1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
