tsdf

Manage typed data stores and fetch lifecycles for React apps with TSDF.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/lucasols/agent-eval --skill tsdf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tsdf
Source: https://github.com/lucasols/agent-eval/tree/main/.agents/skills/tsdf
Command: npx skills add https://github.com/lucasols/agent-eval --skill tsdf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manages typed data stores and fetch lifecycles for React apps by providing a cohesive API for documents, collections, and list queries with built-in caching, persistence, offline support, and real-time updates.

Core Features & Use Cases

  • Typed stores: DocumentStore, CollectionStore, and ListQueryStore for structured data lifecycles.
  • Auto-fetching hooks, mutations, invalidation, and optimistic updates to keep UI in sync.
  • Persistence, offline queueing, and real-time synchronization with multiple tabs.
  • Use case: Build a robust client-side data layer that fetches user profiles, lists, and related items with coherent invalidation rules.

Quick Start

Install tsdf in your project and create a store manager with a simple DocumentStore to start fetching data.

Frequently Asked Questions about tsdf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage typed data fetching and state in React with offline support?

Typed data fetching in React is managed through structured stores like DocumentStore and CollectionStore, which handle caching, offline queueing, and persistence to keep the UI synchronized across multiple tabs.

What is the best way to handle cache invalidation and optimistic updates for React collections?

Cache invalidation and optimistic updates for React collections are handled via typed ListQueryStore and CollectionStore APIs, providing auto-fetching hooks and mutations that automatically keep the client-side UI in sync.

Do I need a store manager to set up TypeScript data persistence in my React app?

Yes, TypeScript data persistence requires a store-manager configured with session keys to initialize DocumentStore instances and enable offline support and real-time synchronization across your React application.

Can I synchronize real-time data updates across multiple tabs using TypeScript stores?

Real-time data synchronization across multiple tabs is supported natively by the typed store infrastructure, automatically propagating updates and invalidation rules to maintain coherent client-side state.

When should I use typed stores instead of basic React hooks for data fetching?

Typed stores should be used instead of basic React hooks when your application requires robust client-side data layers with advanced features like offline queueing, structured lifecycles, and cross-tab persistence.