# serwist/serwist

A Swiss Army knife for service workers.

Repository: https://github.com/serwist/serwist
Canonical: https://ross.abutalabs.com/products/serwist
Homepage: https://serwist.pages.dev
Language: TypeScript
License: MIT
License Family: permissive
Topics: service-worker, sw, serwist, serwistjs, nextjs, offline-first, progressive-web-app, pwa, service-workers, sw-precache, sw-toolbox, vite, vitejs, webpack, nuxt, nuxtjs, sveltekit, svelte, sveltejs
Last push: 2026-07-22T06:10:59+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 93, release rhythm 82, longevity 75
- inputs: {"age_days": 1050, "days_push": 42, "days_rel": 42, "gap_med": 0, "n_releases_24m": 802}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1467, forks 37 (observed 2026-08-28T04:04:48.809823+00:00)

## What it is
Serwist is a collection of TypeScript JavaScript libraries for building progressive web apps, forked from Google's Workbox. It provides service worker generation, precaching, and runtime caching with integrations for Next.js, Vite, Webpack, Nuxt, and SvelteKit.

## Use cases
- add offline support to a web app with a service worker
- make my next.js app a pwa
- precache app assets for offline-first behavior
- migrate from workbox since it's stagnated
- add runtime caching strategies to a vite app
- build a progressive web app with sveltekit

## When to choose
- you want a maintained Workbox alternative for service workers
- you need PWA/offline support in Next.js, Vite, Nuxt, Webpack, or SvelteKit
- you want fine-grained control over precaching and runtime caching

## When to avoid
- your app has no need for offline capability or installability
- you need a framework-agnostic solution outside the supported bundlers
- you're already satisfied with Workbox and don't need active maintenance

## Facets
- artifact type: library
- maturity: active
- function: caching, middleware, build-tool, developer-tools
- domain: web-development, frontend, developer-tools
- platform: browser
- tags: service-worker, pwa, offline-first, workbox-fork, precache, runtime-caching, nextjs, vite, webpack, nuxt, sveltekit, typescript, nodejs, web-server

## Member repositories
- serwist/serwist (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:48.809823+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:35:01.549985+00:00, confidence not recorded.
  - readme: https://github.com/serwist/serwist (fetched 2026-08-28T04:04:48.809823+00:00, sha 8322321cff68)
  - homepage: https://serwist.pages.dev (fetched 2026-08-29T11:43:32.053558+00:00, sha 105b48a79c9d)
  - registry_npm: https://registry.npmjs.org/serwist (fetched 2026-08-29T11:43:32.063038+00:00, sha 02a1b6a0b8f0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
