Service Worker helper libraries.
JavaScript HTML Other
Latest commit f7f667e Jan 20, 2017 @gauntface gauntface committed on GitHub Adding ability to define routes for precached assets (#163)
* Adding ability to access revisioned managers to define routes for precached assets

* Moving over to npm builds for testing

* Doc fix

* reverting a change

* minor changes. Test works locally but not on travis

* Adding some error logging

* Install package dependencies

* Adding PR feedback

README.md

Build Status Dependency Status Dev Dependency Status

SW Helpers

The Libraries

sw-appcache-behavior

Build Status

A service worker implementation of the behavior defined in a page's App Cache manifest.

Install: npm install --save-dev sw-appcache-behavior

Learn More: AboutDemoAPI

sw-background-sync-queue

Build Status

A service worker implementation of the a queue which is triggered by the background sync event.

Install: npm install --save-dev sw-background-sync-queue

Learn More: AboutDemoAPI

sw-broadcast-cache-update

Build Status

A helper library that uses the Broadcast Channel API to announce when two Response objects differ.

Install: npm install --save-dev sw-broadcast-cache-update

Learn More: AboutDemoAPI

sw-cache-expiration

Build Status

This library is still a work in progress and is not functional.

Install: npm install --save-dev sw-cache-expiration

Learn More: AboutDemoAPI

sw-cacheable-response-behavior

Build Status

This library takes a Response object and determines whether it's cacheable, based on a specific configuration.

Install: npm install --save-dev sw-cacheable-response-behavior

Learn More: AboutDemoAPI

sw-lib

Build Status

A CLI tool to generate a service worker and file manifest making use of the sw-lib module.

Install: npm install --save-dev sw-lib

Learn More: AboutDemoAPI

sw-lib

Build Status

A service worker library to make managing fetch requests and caching as easy as possible.

Install: npm install --save-dev sw-lib

Learn More: AboutDemoAPI

sw-offline-google-analytics

Build Status

A service worker helper library to retry offline Google Analytics requests when a connection is available.

Install: npm install --save-dev sw-offline-google-analytics

Learn More: AboutDemoAPI

sw-precaching

Build Status

This library is still a work in progress and is not functional.

Install: npm install --save-dev sw-precaching

Learn More: AboutDemoAPI

sw-routing

Build Status

A service worker helper library to route request URLs to handlers.

Install: npm install --save-dev sw-routing

Learn More: AboutDemoAPI

sw-runtime-caching

Build Status

A service worker helper library that implements various runtime caching strategies.

Install: npm install --save-dev sw-runtime-caching

Learn More: AboutDemoAPI

External Contributions

Please read the guide to contributing prior to filing any pull requests.

License

Copyright 2016 Google, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.