Storing data with IndexedDB for service workers and PWAs

PWA’s will need persistent storage sometimes but it is damn painful to do without studying indexedDB — so I did it for you

The key challenge — Async interactions

This is a problem I have hit a few times. You can’t just get data from the db by stating it — ie. const value = db.value. This is different for most of us.