@firtoz/db-helpers
v2.1.0
Published
TanStack DB helpers and utilities
Maintainers
Readme
@firtoz/db-helpers
TanStack DB helpers and utilities. TypeScript-only, no build step—consume source directly.
This package is a small collection of helpers for @tanstack/db. More utilities will be added over time.
Current helpers
- Memory collection – In-memory TanStack DB collection with sync adapter and
truncateutility. Useful for tests and ephemeral state.
Installation
bun add @firtoz/db-helpers
# or npm/pnpm/yarnPeer dependencies: @tanstack/db and @standard-schema/spec.
Usage
import {
createMemoryCollection,
memoryCollectionOptions,
type MemoryCollection,
} from "@firtoz/db-helpers";See @tanstack/db docs for collection usage.
License
MIT
