Skip to content
PluginStats

vite-plugin-sri-gen weekly downloads statistics

By rbonestell · npm · Vite plugins

A Vite plugin to auto-generate Subresource Integrity (SRI) hashes.

View on npm Fresh · Dec 6, 2026

vite-plugin-sri-gen has 25,534 recorded weekly downloads on npm, an increase of 71.6% over the past 30 days, ranking #959 of 3,247 tracked listings.

Weekly downloads
25,534
Official API · Dec 5, 2026
7-day growth
+36.1%
+6.8K weekly downloads
30-day growth
+71.6%
+10.7K weekly downloads
90-day growth
+186%
+16.6K weekly downloads
Rank
#959
▲ 92 in 7 days

About vite-plugin-sri-gen

<p align="center"> <img src="https://repository-images.githubusercontent.com/1034544632/2b674281-ff9c-4510-a0ef-91c33e395f0b" width=60% height=60% alt="vite-plugin-sri-gen" /> </p> <p align="center"> Add <a href="https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity">Subresource Integrity (SRI)</a> hashes to your Vite build HTML output automatically. </p> <p align="center"> <a href="https://www.npmjs.com/package/vite-plugin-sri-gen"><img src="https://img.shields.io/npm/v/vite-plugin-sri-gen.svg" alt="NPM Version"></a> <a href="https://github.com/rbonestell/vite-plugin-sri-gen/actions/workflows/build.yml?query=branch%3Amain"><img src="https://img.shields.io/github/actions/workflow/status/rbonestell/vite-plugin-sri-gen/build.yml?logo=typescript&logoColor=white" alt="Build Status"></a> <a href="https://github.com/rbonestell/vite-plugin-sri-gen/actions/workflows/test.yml?query=branch%3Amain"><img src="https://img.shields.io/github/actions/workflow/status/rbonestell/vite-plugin-sri-gen/test.yml?branch=main&logo=vite&logoColor=white&label=tests" alt="Test Results"></a> <a href="https://app.codecov.io/gh/rbonestell/vite-plugin-sri-gen/"><img src="https://img.shields.io/codecov/c/github/rbonestell/vite-plugin-sri-gen?logo=codecov&logoColor=white" alt="Code Coverage"></a> <a href="https://snyk.io/test/github/rbonestell/vite-plugin-sri-gen"><img src="https://img.shields.io/badge/security-monitored-8A2BE2?logo=snyk" alt="Known Vulnerabilities"></a> <a href="https://socket.dev/npm/package/vite-plugin-sri-gen"><img src="https://badge.socket.dev/npm/package/vite-plugin-sri-gen" alt="Known Vulnerabilities"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-3DA639?logo=opensourceinitiative&logoColor=white" alt="License"></a> </p>

vite-plugin-sri-gen

Add Subresource Integrity (SRI) hashes to your Vite build automatically.

  • Adds integrity to scripts, stylesheets, and modulepreload links in emitted HTML — plus import map integrity, modulepreload injection for lazy chunks, a CSP-safe runtime for dynamic tags, and Vite manifest augmentation for backend-rendered HTML
  • Build-only by design — works out of the box for SPA, MPA, and prerendered SSG output
  • ESM-only, Node 18+, Vite 4+

Documentation

📚 Full documentation →

Install

npm i -D vite-plugin-sri-gen

Quick start

// vite.config.ts
import sri from "vite-plugin-sri-gen";

export default {
  plugins: [sri()],
};

That's it — every build gets SRI with sensible defaults. See the configuration reference for algorithm, crossorigin, skip patterns, and more.

[!IMPORTANT] Pure SSR output (HTML rendered at request time) cannot be modified at build time. Prerendered HTML works normally, and backends that render their own HTML can consume SRI hashes from the augmented Vite manifest. Details: SSR, SSG & Prerendering.

Contributing

Contributions are welcome. Please read CONTRIBUTING.md for the fork/branch/PR workflow and the testing/linting expectations.

Security

See SECURITY.md for supported versions and how to report vulnerabilities.

License

MIT — see LICENSE.

Description from the npm listing.

  • vite
  • subresource
  • integrity
  • sri
  • content
  • security
  • policy
  • csp
  • plugin
  • vite-plugin
  • vite-plugin-sri
  • vite-sri
  • subresource-integrity
  • integrity-hash
  • sha256
  • sha384
  • sha512
  • modulepreload
  • ssr
  • ssg

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-sri-gen weekly downloads on npm, last 90 days: 25,534 weekly downloads as of Dec 5, 2026, +186% over 90 days.vite-plugin-sri-genWeekly downloads on npm · Last 90 days25,534downloads / week+186% over 90 days05K10K15K20K25K30KSep 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-sri-gen weekly downloads on npm, last 90 days: 25,534 weekly downloads as of Dec 5, 2026, +186% over 90 days.

7/30/90-day growth

vite-plugin-sri-gen weekly downloads growth on npm: +36.1% over 7 days, +71.6% over 30 days, +186% over 90 days.vite-plugin-sri-genWeekly downloads growth on npm25,534downloads / week now7-day growth+6,777 weekly downloads+36.1%30-day growth+10,657 weekly downloads+71.6%90-day growth+16,592 weekly downloads+186%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vite-plugin-sri-gen weekly downloads growth on npm: +36.1% over 7 days, +71.6% over 30 days, +186% over 90 days.

Ranking history

vite-plugin-sri-gen npm ranking history: currently #959 (by weekly downloads).vite-plugin-sri-gennpm ranking · by weekly downloads · Last 90 days#959current rank#900#950#1000#1050#1100#1150Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
vite-plugin-sri-gen npm ranking history: currently #959 (by weekly downloads).

Listing placement

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

Listing placement

Vite plugins300 listings · 15 pages · page 9, #4 (overall #164)
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-sri-gen
Date (UTC)Weekly downloadsChange vs. previous
25,534-517
26,051+705
25,346+469
24,877+95
24,782-94
24,876+20
24,856+6.1K
18,757+662
18,095-330
18,425+472
17,953+829
17,124+1.4K
15,686+788
14,898—

Similar npm Vite plugins plugins

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