web-browser-storage

JSON →
library 0.1.14 ·javascript
verified Jun 7, 2026

A wrapper around localStorage providing JSON value handling, caching, and a consistent Storage interface. Version 0.1.14 is current. The library offers LocalStorage (real browser storage with availability checks), MemoryStorage (for testing, with optional shared instances), and CachedStorage (buffers writes and flushes on delay/tab blur). It differs from similar libraries by including onExternalChange listeners and byte size reporting. Ideal for apps needing robust browser storage with testability and performance optimizations.