Skip to content
PluginStats

@unplugin-pwa/vite weekly downloads statistics

By unplugin-pwa · npm · Vite plugins

Zero-config PWA for Vite

View on npm Fresh · Dec 6, 2026

@unplugin-pwa/vite has 94,213 recorded weekly downloads on npm, an increase of 2251% over the past 30 days, ranking #649 of 3,247 tracked listings.

Weekly downloads
94,213
Official API · Dec 5, 2026
7-day growth
+22.8%
+17.5K weekly downloads
30-day growth
+2251%
+90.2K weekly downloads
90-day growth
—
Insufficient history
Rank
#649
▲ 20 in 7 days

About @unplugin-pwa/vite

<p align='center'> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/vite-pwa/.github/main/unplugin-pwa-vite-hero-dark.svg" /> <img src="https://raw.githubusercontent.com/vite-pwa/.github/main/unplugin-pwa-vite-hero.svg" alt="Zero-config PWA for Vite and its ecosystem logo"> </picture> </p> <h1 align='center'> Zero-config PWA for Vite and its ecosystem </h1> <p align='center'> <a href='https://npmx.dev/package/@unplugin-pwa/vite' target="_blank" rel="noopener noreferrer"> <img src='https://img.shields.io/npm/v/@unplugin-pwa/vite?color=33A6B8&label=' alt="NPM version"> </a> <a href="https://npmx.dev/package/@unplugin-pwa/vite" target="_blank" rel="noopener noreferrer"> <img alt="NPM Downloads" src="https://img.shields.io/npm/dm/@unplugin-pwa/vite?color=476582&label="> </a> <a href="https://unplugin-pwa.netlify.app/unplugin-pwa/vite.html" target="_blank" rel="noopener noreferrer"> <img src="https://img.shields.io/static/v1?label=&message=docs%20%26%20guides&color=2e859c" alt="Docs & Guides"> </a> <br> <a href="https://github.com/vite-pwa/unplugin-pwa" target="_blank" rel="noopener noreferrer"> <img alt="GitHub stars" src="https://img.shields.io/github/stars/vite-pwa/unplugin-pwa?style=social"> </a> </p> <br> <p align="center"> <a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg"> <img src="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg" alt="Anthony Fu SVG sponsors image"/> </a> </p>

🔌 What is @unplugin-pwa/vite?

The Vite integration of unplugin-pwa. It ships two things:

  1. Ready-to-use Vite plugins: the main plugin for Vite 8+, and a legacy plugin for earlier versions.
  2. Building blocks for Vite-based tooling: a set of utilities, equivalent to @unplugin-pwa/core but specific to Vite, that you can use to create your own integration.

The plugin itself is built on top of these utilities, and so are the integrations for meta-frameworks (VitePress, Astro, SvelteKit, Nuxt, React Router and TanStack Start). They don't wrap the Vite plugin: they compose the exported pieces directly, so each one can adapt PWA support to its own build pipeline.

🧩 Which one do I use?

🔄 Replaces vite-plugin-pwa. @unplugin-pwa/vite is the successor of vite-plugin-pwa. Upgrading requires a few changes, see the breaking changes guide.

You are…Use
Building a plain Vite appThe Vite plugin: import { VitePWA } from '@unplugin-pwa/vite'
Using Vite < 6The legacy plugin: import { ViteLegacyPWA } from '@unplugin-pwa/vite/legacy'
Using a supported meta-frameworkIts dedicated integration (it depends on this package)
Creating your own integrationThe exported utilities

📋 Requirements

@unplugin-pwa/vite requires Node 22.14.0 or above.

You need to install the following dependencies:

  • Rolldown 1.0.0 or above: if your Vite version is 8 or above, you don't need to install Rolldown as a dependency, because Vite 8+ uses Rolldown
  • magicast 0.5.0 or above: when using generateSW strategy only

📦 Install

npm i @unplugin-pwa/vite -D

# yarn
yarn add @unplugin-pwa/vite -D

# pnpm
pnpm add @unplugin-pwa/vite -D
🐐 Strict Dependency Isolation (Monorepos & Custom setups)

If you are using a package manager with strict dependency isolation (e.g., pnpm with hoist=false or Yarn PnP), you might encounter [UNRESOLVED_IMPORT] errors during the build process.

Because strict isolation prevents transitive dependencies from being accessible from the root of your project, the underlying bundler (Vite/Rolldown) may not be able to resolve the internal packages required to build the Service Worker.

To resolve this, you must explicitly declare the dependency in the application package that runs the build:

  • Add @vite-pwa/workbox-swkit for generateSW, or for buildSW when the service worker imports its modules.
# Using pnpm
pnpm add -D @vite-pwa/workbox-swkit

# Using yarn
yarn add -D @vite-pwa/workbox-swkit

🦄 Usage

Add VitePWA plugin to vite.config.js / vite.config.ts and configure it:

// vite.config.js / vite.config.ts
import { VitePWA } from '@unplugin-pwa/vite'

export default {
  plugins: [
    VitePWA()
  ]
}

Read the 📖 documentation for a complete guide on how to configure and use this plugin.

👀 Full config

Check out the following links for further details:

📄 License

MIT License © 2026-PRESENT Anthony Fu

Description from the npm listing.

  • react
  • pwa
  • vue
  • preact
  • svelte
  • workbox
  • solidjs
  • vite
  • vite-plugin
  • vite plugins

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@unplugin-pwa/vite weekly downloads on npm, last 90 days: 94,213 weekly downloads as of Dec 5, 2026.@unplugin-pwa/viteWeekly downloads on npm · Last 90 days94,213downloads / week020K40K60K80K100KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@unplugin-pwa/vite weekly downloads on npm, last 90 days: 94,213 weekly downloads as of Dec 5, 2026.

7/30/90-day growth

@unplugin-pwa/vite weekly downloads growth on npm: +22.8% over 7 days, +2251% over 30 days, 90-day growth unavailable.@unplugin-pwa/viteWeekly downloads growth on npm94,213downloads / week now7-day growth+17,474 weekly downloads+22.8%30-day growth+90,205 weekly downloads+2251%90-day growth+94,213 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@unplugin-pwa/vite weekly downloads growth on npm: +22.8% over 7 days, +2251% over 30 days, 90-day growth unavailable.

Ranking history

@unplugin-pwa/vite npm ranking history: currently #649 (by weekly downloads).@unplugin-pwa/vitenpm ranking · by weekly downloads · Last 90 days#649current rank#600#650#700#750#800#850#900#950#1000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankNov 15, 2026 – Dec 6, 2026 · 22 observations · Updated Dec 5, 2026pluginstats.com
@unplugin-pwa/vite npm ranking history: currently #649 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 33, #9 (overall #649)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 6, #6 (overall #106)
Vite plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (135)
Recent weekly downloads observations for @unplugin-pwa/vite
Date (UTC)Weekly downloadsChange vs. previous
94,213+1.6K
92,597+3K
89,589+3.8K
85,745+3.7K
82,068+4.5K
77,563-111
77,674+935
76,739-2.2K
78,895-359
79,254-2.1K
81,307-1.4K
82,658+2.4K
80,245+9.8K
70,448—

Similar npm Vite plugins plugins

All 20 @unplugin-pwa/vite alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@unplugin-pwa/vite. First seen Nov 15, 2026; last successful collection Dec 6, 2026. See the methodology.