Skip to content
@nanostores

Nano Stores

A tiny state manager with many atomic tree-shakable stores

A tiny state manager for React, React Native, Preact, Vue, Svelte, Solid, Lit, Angular, Alpine, and vanilla JS. It uses many atomic stores and direct manipulation.

  • Small. Less than 1 KB. Zero dependencies.
  • Fast. With small atomic and derived stores, you do not need to call the selector function for all components on every store change.
  • Tree Shakable. The chunk contains only stores used by components in the chunk.
  • Was designed to move logic from components to stores.
  • It has good TypeScript support.

It has many smart stores with built-in logic inside:

  • Async computed store to fetch data or create chains of async operations.
  • Persistent store to save data to localStorage and synchronize changes between browser tabs.
  • Router store to parse URL and implements SPA navigation.
  • Deep Map store to put big nested object/arrays and change keys by path.
  • I18n library based on stores to make application translatable.
  • Query store that helps you with smart remote data fetching.
  • Logux Client: stores with WebSocket sync and CRDT conflict resolution.
  • Immer plugin to enable immutable state updates using Immer.

Pinned Loading

  1. nanostores nanostores Public

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

    TypeScript 7.2k 141

Repositories

Showing 10 of 17 repositories
  • i18n Public

    A tiny (≈600 bytes) i18n library for React/Preact/Vue/Svelte

    nanostores/i18n’s past year of commit activity
    TypeScript 275 MIT 19 5 1 Updated Mar 31, 2026
  • router Public

    A tiny (673 bytes) router for Nano Stores state manager

    nanostores/router’s past year of commit activity
    TypeScript 307 MIT 23 5 0 Updated Mar 31, 2026
  • preact Public

    Preact integration for Nano Stores, a tiny state manager with many atomic tree-shakable stores

    nanostores/preact’s past year of commit activity
    TypeScript 21 MIT 7 0 1 Updated Mar 31, 2026
  • persistent Public

    Smart store for Nano Stores state manager to keep data in localStorage

    nanostores/persistent’s past year of commit activity
    TypeScript 373 MIT 23 6 0 Updated Mar 31, 2026
  • media-query Public

    A smart store for Nano Stores state manager to sync with some media query

    nanostores/media-query’s past year of commit activity
    TypeScript 20 MIT 1 0 0 Updated Mar 31, 2026
  • react Public

    React integration for Nano Stores, a tiny state manager with many atomic tree-shakable stores

    nanostores/react’s past year of commit activity
    TypeScript 127 MIT 20 0 1 Updated Mar 31, 2026
  • nanostores Public

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

    nanostores/nanostores’s past year of commit activity
    TypeScript 7,194 MIT 141 23 0 Updated Mar 31, 2026
  • vue Public

    Vue integration for Nano Stores, a tiny state manager with many atomic tree-shakable stores

    nanostores/vue’s past year of commit activity
    TypeScript 72 MIT 10 0 0 Updated Mar 27, 2026
  • alpine Public

    AlpineJS integration for Nano Stores, a tiny state manager with many atomic tree-shakable stores

    nanostores/alpine’s past year of commit activity
    TypeScript 10 MIT 0 0 0 Updated Mar 23, 2026
  • .github Public
    nanostores/.github’s past year of commit activity
    0 1 0 0 Updated Mar 22, 2026

Most used topics

Loading…