IndexedDB Persistence for ElectricSQL + TanStack DB

Community

Offline data persistence for ElectricSQL

Authorshotleybuilder
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill enables robust offline data storage for applications using ElectricSQL and TanStack DB, overcoming limitations of default memory-only or small localStorage storage.

Core Features & Use Cases

  • Persistent Offline Storage: Leverages IndexedDB for large datasets, ensuring data survives page reloads and browser closures.
  • Delta Sync Optimization: Persists ElectricSQL's sync offset, allowing for efficient resumption of synchronization from the last known point.
  • Handles Large Datasets: Solves the "localStorage quota exceeded" error by providing a much larger storage capacity.
  • Use Case: A field service application needs to store thousands of customer records and service logs offline. This Skill ensures all data is available even without a network connection and syncs efficiently when connectivity is restored.

Quick Start

Use the IndexedDB Storage adapter to initialize a TanStack DB collection for offline use.

Dependency Matrix

Required Modules

idb-keyval

Components

scriptsreferences

💻 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: IndexedDB Persistence for ElectricSQL + TanStack DB
Download link: https://github.com/shotleybuilder/sertantai-legal/archive/main.zip#indexeddb-persistence-for-electricsql-tanstack-db

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.