JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 24
  • Score
    100M100P100Q84378F
  • License MIT

TanStack DB helpers and utilities

Package Exports

  • @firtoz/db-helpers

Readme

@firtoz/db-helpers

npm version npm downloads license

TypeScript TanStack DB

Small helpers for TanStack DB — published as compiled dist/ with types on npm. Memory collections, sync adapters, and more as the toolkit grows.

Current helpers

  • Memory collection – In-memory TanStack DB collection with sync adapter and truncate utility. Useful for tests and ephemeral state.

Installation

bun add @firtoz/db-helpers
# or npm/pnpm/yarn

Peer 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