Use idb To Work With IndexedDB
Check out
This is a tiny (~1.19kB brotli'd) library that mostly mirrors the IndexedDB API, but with small improvements that make a big difference to usability.
The docs are pretty good, but I'll be writing up examples.
I used this for tunify. I had been working with IndexedDB directly, but it was a pain. This is way better and was last updated in Nov. 2023 as of press time