UNPKG

syncbasestore

Version:

Lightweight reactive store with built-in filtering and async state handling

23 lines (14 loc) 539 B
# SyncBase A minimal, framework-agnostic state management library with built-in filtering. ## Features - ✅ Store, update, and get state - ✅ Built-in filtering (by function, type, or shape) - ✅ Works in any JavaScript/TypeScript environment ## Usage ```ts import { createSyncBase } from 'syncbasestore'; const store = createSyncBase({ users: [{ id: 1, role: 'admin' }] }); store.getState(state => ({ users: state.users.filter(u => u.role === 'admin') })); store.getState(undefined, { role: 'admin' });