The module is actively used and tested in production within the Tunime project — a PWA anime streaming platform with offline capabilities.
A lightweight, reusable module for managing Service Workers, app updates, and version metadata in Progressive Web Applications (PWA). Designed for use in multiple projects as a drop-in standard.
- ✅ Service Worker registration and unregistration
- 🔄 App update detection and version handling
- 💾 Local metadata management (version, hash, date)
- 🔌 Event system for custom triggers
- 🧩 Messaging bridge between page and Service Worker
pwa.core.js— Main controller for versioning, SW management, and messagingworker.js— Base Service Worker file for caching and activation
Just copy pwa.core.js and worker.js into your project and import the core module:
<script src="pwa.core.js" type="module"></script>