Workbox is a new project from Google that makes service worker use-cases such as caching, background sync and queueing of analytics whilst offline easier to code. Note: Workbox looks like it's still in active development. API and docs can sometimes be out-of-date with recent code changes.
Full article