Skip to content
PluginStats

vite-plugin-sri3 weekly downloads statistics

By yoyo930021 (2 listings) · npm · Vite plugins

Subresource Integrity in Vite

View on npm Fresh · Dec 6, 2026

vite-plugin-sri3 has 53,026 recorded weekly downloads on npm, an increase of 49.5% over the past 30 days, ranking #761 of 3,247 tracked listings.

Weekly downloads
53,026
Official API · Dec 5, 2026
7-day growth
+26.8%
+11.2K weekly downloads
30-day growth
+49.5%
+17.6K weekly downloads
90-day growth
+88.0%
+24.8K weekly downloads
Rank
#761
▲ 44 in 7 days

About vite-plugin-sri3

vite-plugin-sri3

Vite compatibility

Subresource Integrity in Vite

Requirement

  • Vite >= 3
  • Nodejs >= 18

Install

# npm
npm i -D vite-plugin-sri3
# yarn
yarn add -D vite-plugin-sri3
# pnpm
pnpm i -D vite-plugin-sri3

Usage

// vite.config.(js|ts|mjs|mts)
import { defineConfig } from 'vite'
import { sri } from 'vite-plugin-sri3'

export default defineConfig({
  plugins: [
    // Please place it at the end to avoid ordering issues that might result in not getting the final content
    // Unless you are using a package like vite-plugin-compression2, in which case it should be placed before it.
    sri(),
  ],
})

Configuration

  • ignoreMissingAsset When using @vitejs/plugin-legacy, plugin can't not find some assets with legacy chunks. When this options enabled, plugin will ignore any missing asset error.

Default: false

sri({ ignoreMissingAsset: true })

Skip SRI on specific tags

Add the skip-sri attribute to any script or link tag to prevent SRI injection.

<script type="module" src="/path/to/asset.js" skip-sri></script>
<link rel="stylesheet" href="/path/to/asset.css" skip-sri />

Q&A

  • Why not rollup-plugin-sri or @small-tech/vite-plugin-sri ?
    • They can't work well in vite 4/5.

Tests & Coverage

  • Run pnpm coverage to execute the Vitest suite with instrumentation; inspect the generated coverage/ reports locally or in CI artifacts.
  • pnpm test:e2e invokes Playwright to validate healthy and tampered builds in Chromium, ensuring runtime SRI enforcement still triggers errors when hashes mismatch.
  • Integration fixtures rebuild the sample Vite app and assert deterministic sha384 hashes so plugin regressions surface before release.

Thanks

Without the following plugins, this plugin wouldn't exist.

Description from the npm listing.

  • vite-plugin
  • vite
  • sri
  • integrity

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

vite-plugin-sri3 weekly downloads on npm, last 90 days: 53,026 weekly downloads as of Dec 5, 2026, +88.0% over 90 days.vite-plugin-sri3Weekly downloads on npm · Last 90 days53,026downloads / week+88.0% over 90 days010K20K30K40K50K60KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
vite-plugin-sri3 weekly downloads on npm, last 90 days: 53,026 weekly downloads as of Dec 5, 2026, +88.0% over 90 days.

7/30/90-day growth

vite-plugin-sri3 weekly downloads growth on npm: +26.8% over 7 days, +49.5% over 30 days, +88.0% over 90 days.vite-plugin-sri3Weekly downloads growth on npm53,026downloads / week now7-day growth+11,192 weekly downloads+26.8%30-day growth+17,556 weekly downloads+49.5%90-day growth+24,823 weekly downloads+88.0%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vite-plugin-sri3 weekly downloads growth on npm: +26.8% over 7 days, +49.5% over 30 days, +88.0% over 90 days.

Ranking history

vite-plugin-sri3 npm ranking history: currently #761 (by weekly downloads).vite-plugin-sri3npm ranking · by weekly downloads · Last 90 days#761current rank#740#760#780#800#820#840#860Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
vite-plugin-sri3 npm ranking history: currently #761 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 39, #1 (overall #761)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 7, #16 (overall #136)
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 (170)
Recent weekly downloads observations for vite-plugin-sri3
Date (UTC)Weekly downloadsChange vs. previous
53,026+1.3K
51,738+2K
49,763+3.3K
46,445+1.5K
44,919+1.7K
43,220+1.6K
41,572-262
41,834-371
42,205+1.6K
40,647-567
41,214+1K
40,204+864
39,340+593
38,747—

Similar npm Vite plugins plugins

All 20 vite-plugin-sri3 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/vite-plugin-sri3. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.