serviceworker-storage

JSON →
library 0.1.0 ·javascript
verified Jun 7, 2026

A lightweight library providing a localStorage-like API for use within Service Workers. Current stable version is 0.1.0. It offers simple asynchronous get/set operations backed by IndexedDB, with support for versioned storage instances. Unlike directly using the Cache API or IndexedDB, it provides a familiar synchronous-style interface (though methods return Promises) and automatic key management. Minimal dependencies; suitable for small projects needing persistent storage in Service Workers.