react-idb-cache

JSON →
library 1.4.1 ·javascript
verified Jun 7, 2026

React hook-based caching library that combines IndexedDB persistence with React state synchronization, version 1.4.1. Provides a useCached hook to fetch, cache, and retrieve data asynchronously, automatically updating React components when data arrives. Uses idb-keyval for IndexedDB operations and supports custom drivers, optional context isolation via CacheProvider, and TypeScript with generic type parameters. Released on npm with moderate frequency.