This was a simple little game that I made as an exercise in building something and incorporating a service workers and the IndexedDB API into the project, mostly just to have the learning experience.
The service worker is used to cache the scripts, styles, and markup to allow the app to run even if you’re offline (assuming you’ve hit the page at least once before to get those resources). The app uses the IndexedDB API to store how many wins the user has
Simple, but a fun little exercise to get familiar with the technologies – it’s available here.