expirable-storage

JSON →
library 1.0.0 ·javascript
verified Jun 7, 2026

Expirable data storage wrapper around localStorage and sessionStorage for the browser. Version 1.0.0 with no release cadence reported. Supports automatically expiring items based on a TTL in seconds, and removes expired entries on getItem access. Lightweight, TypeScript-first package with no dependencies. Differentiates from similar libraries (e.g., localForage, idb-keyval) by providing a simple, symmetrical expirable wrapper for both persistent and session scopes.