offline
OfficialOffline, reliable transactions for TanStack DB.
Software Engineering#offline#transactions#indexeddb#outbox#leader-election#tanstack-db#offline-executor
AuthorTanStack
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Offline transaction support for TanStack DB provides durable, offline-capable mutations by persisting an outbox and coordinating execution across tabs or devices. It ensures data integrity during disconnects and automatic recovery when connectivity returns.
Core Features & Use Cases
- Persistent outbox using IndexedDB/localStorage
- Leader election to avoid duplicate processing across tabs
- Retry with exponential backoff and idempotency keys for at-least-once delivery
- Online fallback when storage is unavailable; React Native support via a separate entry point
- Integration with db-core and mutations-optimistic to wrap vanilla mutations with offline persistence
- Out-of-band replay to apply pending mutations on startup or reconnect
- Optional storage adapters and configurable detectors for connectivity changes
Quick Start
Initialize the Offline Executor and wait for initialization before creating transactions.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: offline Download link: https://github.com/TanStack/db/archive/main.zip#offline Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.