About Swoff

Swoff is a config-driven code generation toolchain for building offline-first Progressive Web Apps. It generates an auditable service worker and client-side runtime from a single configuration file — no manual SW scripting, no runtime dependencies, no framework lock-in.

Born from the frustration of wiring up Workbox, sw-precache, and hand-rolled service workers for every project, Swoff treats the service worker as generated infrastructure rather than application logic. You describe what to cache and how — Swoff writes the how.

Philosophy

  • Config over code — Your caching rules, auth strategy, and offline queue live in a single config file, not scattered across SW event handlers.
  • Auditable output — The generated service worker is human-readable and debuggable. No opaque bundles.
  • Zero runtime deps — Swoff generates vanilla JS. No client-side library is injected into your bundle.
  • Stack-agnostic — Works with React, Vue, Svelte, Solid, or no framework at all.