# Tools

> Service worker libraries, build integrations, store packagers, and audit tools for PWAs, including Vite PWA Workbox and unplugin-pwa migration boundaries.

PWA tools generate service workers and manifests, package apps for stores, and audit the
result. The four kinds of tool serve different purposes. Service worker libraries handle routing and caching; build plugins generate the
files, store packagers prepare submissions, and auditors check the output.

## How it works

These tools are optional. A hand-written manifest and a short
service worker meet the Chromium [installability criteria](/compatibility/install-prompt/). The tools exist to generate those files from a
build, to wrap the result in a store package, and to check the output.

### Service worker libraries and build plugins

[Workbox](https://developer.chrome.com/docs/workbox) is Google's set of modules for routing and
caching in a service worker, published as separate packages (`workbox-window`,
`workbox-streams` or `workbox-range-request` among them). Workbox 7.4.1 was published 2026-05-05; the 7.0.0 line raised the minimum to Node 16.
The 7.3 and 7.4 releases are described as dependency updates. [Vite PWA](https://vite-pwa-org.netlify.app/)
(`vite-plugin-pwa`, 1.2.0, MIT) wraps Workbox for Vite projects: it injects the web app
manifest, generates the service worker, reloads on new content, and ships integrations for
SvelteKit, VitePress, Astro, Nuxt 3, Remix, and îles. The trade-off of a generated worker is
that its precache list grows with every hashed asset, so a large build precaches files a user
may not open.

### Vite PWA Workbox and unplugin-pwa

[Vite PWA Workbox](https://unplugin-pwa.netlify.app/vite-pwa-workbox/) is a separate
fork of Google Workbox maintained by the Vite PWA project. Its scoped packages
`@vite-pwa/workbox-build` and `@vite-pwa/workbox-cli` require Node
22.14.0 or later and Rolldown 1.0.0 or later. Vite 8 supplies Rolldown; the
`generateSW` strategy also requires `magicast` 0.5.0 or later. These are the fork's
requirements, not the requirements of Google's `workbox-*` packages.

Migration needs a build review. In the fork, `injectManifest` injects the precache
manifest but does not compile the service worker. Use its `buildSW` strategy when
the tool must compile the worker and optionally inject that manifest. The fork
also documents removal of offline Google Analytics support and says its
`workbox-sw` CDN distribution is not yet available. Check these differences before
replacing an existing Workbox setup.

[unplugin-pwa](https://unplugin-pwa.netlify.app/unplugin-pwa/) separates PWA
integration into reusable core packages and bundler adapters.
These include `@unplugin-pwa/core` and `@unplugin-pwa/vite`. The project distinguishes operational
Vite integrations from preview support for other tools: Webpack / Rspack / Rsbuild / Next.js.
Its repository warns that those previews are not ready for production use.
[React Router](https://unplugin-pwa.netlify.app/frameworks/react-router) and
[TanStack](https://unplugin-pwa.netlify.app/frameworks/tanstack) have dedicated
`@vite-pwa/react-router` and `@vite-pwa/tanstack` packages. Their documentation
pages still contain work-in-progress notices in the sources checked on
2026-11-21. Check the package-specific setup instructions before adopting them;
a package listing is not evidence that every framework and bundler combination
is supported.

### Packaging for Google Play

[Bubblewrap](https://github.com/GoogleChromeLabs/bubblewrap) is the command-line generator for
a Trusted Web Activity project; PWABuilder's Android output is "powered by Bubblewrap and uses
the same underlying core". It requires Node.js 14.15.0 or later and JDK 17, and offers to
download the JDK and Android command-line tools on first run. `init` reads a web manifest and writes `twa-manifest.json`; `build` produces
`app-release-signed.apk` and `app-release-bundle.aab`; `update` regenerates the Android project
after a manifest edit; `validate` checks the PWA against the TWA quality criteria;
`fingerprint generateAssetLinks` writes the `assetlinks.json` to host; `doctor` confirms the
JDK and SDK paths and versions. The cost is a signing key you must keep for the life of the
listing, because the asset-links fingerprint is derived from it.

### Packaging for the Microsoft Store

[PWABuilder](https://www.pwabuilder.com/) is the route Microsoft documents. In its English UI, enter the URL under **Ship your PWA to app stores** and click
**Start**; fix anything in the report card's **Action Items**; click **Package For Stores**;
under **Windows** click **Generate Package**; in **Windows Package Options** paste three values copied from Partner Center:
**Package ID** / **Publisher display name** / **Publisher ID**;
click **Download Package**. The download is a `.zip` containing an `.msixbundle` and a
`.classic.appxbundle`, both of which go into the **Packages** step of the Partner Center
submission. A manifest change requires repeating the flow; a code change does not.

### Auditing

[Lighthouse](https://developer.chrome.com/docs/lighthouse/overview) runs from the DevTools
**Lighthouse** panel, from the CLI after `npm install -g lighthouse`, as a Node module in CI,
or through PageSpeed Insights, and reports four categories: Performance / Accessibility / Best Practices / SEO.
It no longer audits installability: release 12.0.0 (2024-04-22) states "As per Chrome's updated
Installability Criteria, Lighthouse has removed the PWA category" and points to the DevTools
PWA documentation instead. The manifest and service worker checks live in DevTools >
Application. Bubblewrap's `validate` command is the remaining automated check that a PWA
meets the Trusted Web Activity criteria.

| Tool | Role | Version read | Requirement |
|---|---|---|---|
| Workbox | Service worker routing and caching | 7.4.1 (2026-05-05) | Node 16 or later for the build tooling |
| Vite PWA | Manifest and worker generation at build time | 1.2.0 | Vite |
| Bubblewrap | TWA project generator and signer | CLI README, 2026-10 | Node.js 14.15.0 or later, JDK 17 |
| PWABuilder | Store packages from a URL | Web app, 2026-10 | Partner Center identity values |
| Lighthouse | Performance, accessibility, best-practice, SEO audits | 12.0.0 removed the PWA category | Chrome, or Node for the CLI |

## Observed behaviour

:::note
Microsoft's [Publish a PWA to the Microsoft Store](https://learn.microsoft.com/en-us/microsoft-edge/progressive-web-apps/how-to/microsoft-store)
guide describes the PWABuilder flow. When the report card passes, **Package For Stores** opens a dialog
with the message "Awesome! Your PWA is store ready!". The Windows download is a `.zip` archive
containing an `.msixbundle` file and a `.classic.appxbundle` file, and the guide tells you to select both on Partner
Center's **Packages** prompt.
:::

## See also

- [Workbox](https://developer.chrome.com/docs/workbox) (developer.chrome.com)
- [Bubblewrap CLI](https://github.com/GoogleChromeLabs/bubblewrap/blob/main/packages/cli/README.md) (github.com)
- [Lighthouse v12.0.0 release notes](https://github.com/GoogleChrome/lighthouse/releases/tag/v12.0.0) (github.com)
- [Distribution](/ecosystem/distribution/)
- [Store policy](/ecosystem/stores/)
- [Service worker reference](/reference/service-worker/)
- [Caching strategies](/guides/offline/caching-strategies/)

← Back to the [Ecosystem](/ecosystem/) overview.