# hanford/next-offline

make your Next.js application work offline using service workers via Google's workbox

Repository: https://github.com/hanford/next-offline
Canonical: https://ross.abutalabs.com/products/next-offline
Homepage: https://github.com/hanford/next-offline
Language: JavaScript
License Family: other
Topics: nextjs, service-worker, offline, cache, website, workbox, pwa
Last push: 2023-01-03T23:02:48+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3129, "days_push": 1338, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1599, forks 111 (observed 2026-08-28T04:05:09.453721+00:00)

## What it is
next-offline is a Next.js plugin that wraps your next.config.js to integrate Google's Workbox, generating and registering a service worker for offline support. It makes Next.js applications work as progressive web apps with caching strategies.

## Use cases
- make my next.js app work offline
- add a service worker to next.js
- turn next.js site into a PWA
- cache next.js pages with workbox
- register a service worker in next.js
- add offline caching to a next.js website

## When to choose
- you have a Next.js app and want offline capability or PWA support with minimal config
- you want Workbox-powered cache strategies without hand-writing service worker code

## When to avoid
- you use Next.js 12.2+ with built-in next-pwa alternatives or App Router, since this library is no longer actively maintained
- you are not using Next.js
- you need fine-grained custom service worker logic beyond Workbox configuration

## Facets
- artifact type: library
- maturity: maintenance
- function: caching, web-framework, middleware
- domain: web-development, frontend, developer-tools
- platform: browser
- tags: nextjs, service-worker, workbox, pwa, offline-first, nodejs, web-server

## Member repositories
- hanford/next-offline (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:09.453721+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-30T03:53:13.505096+00:00, confidence not recorded.
  - readme: https://github.com/hanford/next-offline (fetched 2026-08-28T04:05:09.453721+00:00, sha af5be87ab51c)
  - homepage: https://github.com/hanford/next-offline (fetched 2026-08-29T11:24:48.037987+00:00, sha 05b77c86ccdc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
