JSPM

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

WebSocket sync protocol and bridges for TanStack DB collections

Package Exports

  • @firtoz/collection-sync
  • @firtoz/collection-sync/cache-manager
  • @firtoz/collection-sync/chunk-3EHHMLSV
  • @firtoz/collection-sync/chunk-43KYAIKY
  • @firtoz/collection-sync/chunk-4BEXLBCH
  • @firtoz/collection-sync/chunk-5V6BSQAB
  • @firtoz/collection-sync/chunk-5VMFQT5Z
  • @firtoz/collection-sync/chunk-6EHROJFY
  • @firtoz/collection-sync/chunk-6X3434GJ
  • @firtoz/collection-sync/chunk-BGJH6PH2
  • @firtoz/collection-sync/chunk-BJJEAKXL
  • @firtoz/collection-sync/chunk-GWIOC5CP
  • @firtoz/collection-sync/chunk-HMLY7DHA
  • @firtoz/collection-sync/chunk-I6RJWBGF
  • @firtoz/collection-sync/chunk-M5MJHS6A
  • @firtoz/collection-sync/chunk-O3KBDCEI
  • @firtoz/collection-sync/chunk-OP53UBPN
  • @firtoz/collection-sync/chunk-P3JOTUAB
  • @firtoz/collection-sync/chunk-QJP4GSJH
  • @firtoz/collection-sync/chunk-RDDS7JQW
  • @firtoz/collection-sync/chunk-TEH7V76G
  • @firtoz/collection-sync/chunk-UJ24XW52
  • @firtoz/collection-sync/chunk-UVZJL6QV
  • @firtoz/collection-sync/chunk-XC4QNFSQ
  • @firtoz/collection-sync/chunk-YD5LVGWX
  • @firtoz/collection-sync/chunk-YYGPIHHJ
  • @firtoz/collection-sync/connect-partial-sync
  • @firtoz/collection-sync/connect-sync
  • @firtoz/collection-sync/create-partial-synced-collection
  • @firtoz/collection-sync/create-synced-collection
  • @firtoz/collection-sync/index
  • @firtoz/collection-sync/partial-sync-client-bridge
  • @firtoz/collection-sync/partial-sync-interest
  • @firtoz/collection-sync/partial-sync-mutation-handler
  • @firtoz/collection-sync/partial-sync-predicate-match
  • @firtoz/collection-sync/partial-sync-row-key
  • @firtoz/collection-sync/partial-sync-server-bridge
  • @firtoz/collection-sync/react
  • @firtoz/collection-sync/react/constants
  • @firtoz/collection-sync/react/index
  • @firtoz/collection-sync/react/partial-sync-adapter
  • @firtoz/collection-sync/react/partial-sync-utils
  • @firtoz/collection-sync/react/range-conditions-expression
  • @firtoz/collection-sync/react/types
  • @firtoz/collection-sync/react/usePartialSyncCollection
  • @firtoz/collection-sync/react/usePartialSyncViewport
  • @firtoz/collection-sync/react/usePartialSyncWindow
  • @firtoz/collection-sync/react/usePredicateFilteredRows
  • @firtoz/collection-sync/sync-client-bridge
  • @firtoz/collection-sync/sync-protocol
  • @firtoz/collection-sync/sync-server-bridge
  • @firtoz/collection-sync/with-sync

Readme

@firtoz/collection-sync

npm version npm downloads license

TypeScript TanStack DB WebSocket

Real-time sync for TanStack DB collections over WebSockets—shared Zod message schemas, client/server bridges, optional partial sync and viewport-aware caching for large datasets.

Installation

npm install @firtoz/collection-sync @tanstack/db @standard-schema/spec @firtoz/websocket-do react @tanstack/react-db

Also: pnpm add · bun add · yarn add

Peers include @firtoz/websocket-do, @tanstack/db, @tanstack/react-db, react, and @standard-schema/spec. Wire your Durable Object or server to the protocol types exported from the package root.

React entry

Import hooks and adapters from the dedicated subpath:

import { /* … */ } from "@firtoz/collection-sync/react";

Core exports

The package root exposes protocol types (SyncClientMessage, SyncServerMessage, …), bridges (SyncClientBridge, SyncServerBridge, PartialSyncClientBridge, …), withSync for wrapping collections, and related utilities. See src/index.ts for the full public API.

License

MIT © Firtina Ozbalikchi