safe-typed-storage

JSON →
library 7.2.1 ·javascript
verified Jun 7, 2026

A safe, typed, and easy to use key-value storage library for the browser. Current stable version 7.2.1. Allows saving and retrieving serializable objects to localStorage, sessionStorage, with memory fallback. It provides a simple, secure API that works without checking for localStorage availability, supports TTL, and is tiny (0.5kb gzipped). Ships TypeScript types and is safe to use in both browsers and Node.js.