muya-sqlite

JSON →
library 0.0.5 ·javascript
verified Jun 7, 2026

A tiny SQLite companion for muya state management library (v0.0.5). Reactive, paginated, type-safe queries over SQLite tables that auto-sync on data mutation. Uses a push-driven subscription model: views update automatically when any part of the app calls set/delete/batchSet on the underlying table. Returns TanStack-style hook result (data, status, isLoading, isFetching, isStale, isError, error, hasNextPage, fetchNextPage, refetch). Optional global cache via cacheKey persists data and subscriptions across mount/unmount cycles. Built on useSyncExternalStore, concurrent-safe, no QueryClientProvider required. Requires muya >=2.5.8 and react >=18 <20.