2 ms·
For those looking for a pretty decent (and small) wrapper around IndexDB, I've had some good luck using localforage https://github.com/localForage/localForage
by no_wizard 7y ago
For those looking for a pretty decent (and small) wrapper around IndexDB, I've had some good luck using localforage
https://github.com/localForage/localForage https://github.com/localForage/localForage
I believe its maintained by Mozilla still.
There's also idb-keyval
https://github.com/jakearchibald/idb-keyval https://github.com/jakearchibald/idb-keyval
- shortercode 7y agoThere's currently a proposal called "KVStorage" to add a localforage style inbuilt module to browsers. https://developers.google.com/web/updates/2019/03/kv-storage https://developers.google.com/web/updates/2019/03/kv-storage I'm not totally agreed with the idea of inbuilt modules, but the API is very pleasant. I work on a fairly large project that relied on localforage for a long time. However, we have since moved to our own library to resolve a number of small issues we had with localforage.