self-destroying-sw
workbox
self-destroying-sw | workbox | |
---|---|---|
2 | 31 | |
398 | 12,102 | |
- | 0.5% | |
0.0 | 6.5 | |
almost 3 years ago | 5 days ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
self-destroying-sw
- Changing from PWA to regular web app?
-
Goodbye Offline Page
This removes all of our service worker functionality with a self-destructing service worker which appears to be the best approach for unregistering a service worker. See https://github.com/NekR/self-destroying-sw#how-to-use.
workbox
-
A deep-dive on a Progressive Web App implementation for a React-based App Platform (DHIS2)
We use the Workbox library and its utilities as a foundation for our service worker.
- Workbox: JavaScript Libraries for Progressive Web Apps
-
are PWA supposed to work offline ?
Btw, Workbox is effectively deprecated now. The dev in charge of it left Google for a real company 6+ months ago and no one has filled his shoes. The other day, the lady who is "maintaining" it now finally acknowledged that nothing is going to happen to it any time soon. https://github.com/GoogleChrome/workbox/issues/3149
- New React docs pretend SPAs don't exist anymore
-
[AskJS] technology stack for PWA, ServiceWorker and offline first web app?
Start from the https://github.com/GoogleChrome/workbox
- How to make your website work offline
-
Allowing users to fully cache a website for offline use?
Look into Workbox if you're okay writing code for that or Progressier otherwise.
-
Service Worker Caching Strategies
If you want to try some of these patterns, you can use the https://developers.google.com/web/tools/workbox library that provides all the features out-of-the-box.
-
Vite in the browser
Here is an example using workbox.
-
Custom Service Worker Logic in Typescript on Vite
I recently had a tiny website project which I wanted to make available offline. This is achieved by adding a Service Worker. And thanks to projects like workbox, getting basic functionality like caching for offline-use is fairly easy to set up.
What are some alternatives?
fs-extra - Node.js: extra methods for the fs object like copy(), remove(), mkdirs()
Socket.io - Realtime application framework (Node.JS server)
comlink - Comlink makes WebWorkers enjoyable.
redux - A JS library for predictable global state management
lighthouse - Automated auditing, performance metrics, and best practices for the web.
vite - Next generation frontend tooling. It's fast!
angular-styleguide - Angular Style Guide: A starting point for Angular development teams to provide consistency through good practices.
AngularJS - AngularJS - HTML enhanced for web apps!
sqlite-worker - A simple, and persistent, SQLite database for Web and Workers.
Bootstrap - The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.
diff-so-fancy - Good-lookin' diffs. Actually… nah… The best-lookin' diffs. :tada:
html5-boilerplate - A professional front-end template for building fast, robust, and adaptable web apps or sites.