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 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:

  • Persistent store to save data to localStorage and synchronize changes between browser tabs.
  • Router store to parse URL and implements SPA navigation.
  • 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.

Pinned

  1. nanostores nanostores Public

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

    TypeScript 4.8k 100

Repositories

Showing 10 of 13 repositories
  • nanostores Public

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

    TypeScript 4,772 MIT 100 19 4 Updated May 2, 2024
  • query Public

    ⚡️ Powerful data fetching library for Nano Stores. TS/JS. Framework agnostic.

    TypeScript 176 MIT 7 7 0 Updated May 2, 2024
  • router Public

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

    TypeScript 221 MIT 18 3 1 Updated Apr 17, 2024
  • logger Public

    Pretty logger of lifecycles, actions and changes for Nano Stores state manager

    TypeScript 61 MIT 1 1 0 Updated Apr 4, 2024
  • lit Public

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

    TypeScript 24 MIT 1 2 0 Updated Mar 11, 2024
  • persistent Public

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

    TypeScript 240 MIT 18 3 0 Updated Feb 21, 2024
  • i18n Public

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

    TypeScript 215 MIT 12 3 0 Updated Feb 20, 2024
  • react Public

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

    TypeScript 66 MIT 14 4 2 Updated Feb 20, 2024
  • preact Public

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

    TypeScript 11 MIT 5 2 0 Updated Feb 20, 2024
  • vue Public

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

    JavaScript 45 MIT 5 3 0 Updated Sep 27, 2023

Top languages

Loading…

Most used topics

Loading…