local-storage-fallback
JSON →A browser storage adapter that automatically falls back through localStorage, sessionStorage, cookies, and in-memory storage, depending on what is available and not throwing exceptions (e.g., in private browsing mode). Current stable version is 5.0.0. Maintained infrequently. Key differentiator: handles private browsing and quota errors gracefully where native localStorage would throw, and provides a unified API across all backends. Fully typed with TypeScript definitions.
Traffic · last 30 days stale · no recent hits
total hits 15
actors 3 distinct systems
last hit 17d ago AhrefsBot
top countries 🇸🇬 Singapore · 🇺🇸 United States · VN · 🇨🇦 Canada · KZ
Resources
packagelocal-storage-fallback ↗
API endpoints
full doc /v1/registry/local-storage-fallback