Built on @tanstack/store
nusm axolotlnusmstate, remembered

Your application state,remembered.

nusm adds resilient, adapter-based persistence, observable hydration, React hooks, and first-class Devtools to the small, reactive core you already know.

counter.ts
import {
  createNusmStore,
  createLocalStorageAdapter,
} from "nusm"

const counter = createNusmStore(
  { count: 0 },
  {
    storeId: "counter",
    adapter: createLocalStorageAdapter(),
    persist: { strategy: "entire" },
  },
)

await counter.ready
counter.setState((state) => ({
  count: state.count + 1,
}))

A familiar core

Keep TanStack Store semantics and add persistence only where your state needs it.

Persistence by design

Persist an entire store or selected slices to localStorage, sessionStorage, or IndexedDB.

State you can see

Inspect memory, adapter state, hydration, and mutations inside TanStack Devtools.

Choose your path

From first store to full visibility.

Learn the core in minutes, then go deeper on hydration, adapter contracts, selective persistence, and the live inspector.