This is a polyfill for the ServiceWorker specification. The idea is to enable exploration of the ServiceWorker API and the implications it has for users, applications and developer workflow.
NOTE: This may be broken for you. Please submit an issue.
This may only work on OSX. Sorry.
$ npm install -g serviceworker && serviceworker
This will start an instance of Chrome Canary and a ServiceWorker proxy server. All requests from Canary will go through the proxy.
Point Canary to a (local) site, add some ServiceWorker stuff and off you go!
If you'd like a site to play with, try using the demo site in the
site directory. You'll need to host the files with the domain
workerdemo.dev – try using distra for this.
Here's the general idea.
There's also registration, install and activation steps. Check the spec for this.
Submit an issue or pull request!