vite-plugin-manifest-sri weekly downloads statistics
By ElMassimo (8 listings) · npm · Vite plugins
Subresource Integrity hashes for the Vite.js manifest.
vite-plugin-manifest-sri has 68,409 recorded weekly downloads on npm, a decrease of 56.9% over the past 30 days, ranking #529 of 2,322 tracked listings.
About vite-plugin-manifest-sri
Why? 🤔
Vite does not provide support for subresource integrity.
Both <kbd>vite-plugin-sri</kbd> and <kbd>rollup-plugin-sri</kbd> are good
options to automatically add an integrity hash to script and link tags. However, these rely on transforming an HTML file, which is typically not the case when using a backend integration such as Vite Ruby.
This plugin extends manifest.json to include an integrity field which can be used when rendering tags.
Installation 💿
Install the package as a development dependency:
npm i -D vite-plugin-manifest-sri # pnpm i -D vite-plugin-manifest-sri
Usage 🚀
Add it to your plugins in vite.config.ts:
import { defineConfig } from 'vite'
import manifestSRI from 'vite-plugin-manifest-sri'
export default defineConfig({
plugins: [
manifestSRI(),
],
})
Note that the build.manifest option
must be enabled in order to generate a manifest.json file (Vite Ruby enables it by default).
With Vite Ruby 💎
Experimental support is available, you can try it now by explicitly adding 4.0.0.alpha1 to your Gemfile:
gem 'vite_rails', '~> 4.0.0.alpha1'
Configuration ⚙️
The following options can be provided:
-
<kbd>algorithms</kbd>
Hashing algorithms to use when calculate the integrity hash for each asset.
Default:
['sha384']manifestSRI({ algorithms: ['sha384', 'sha512'] }),
Acknowledgements
The following plugins might be useful for Vite apps based around an index.html file:
License
This library is available as open source under the terms of the MIT License.
Description from the npm listing.
- sri
- security
- subresource integrity
- build
- vite
- vite-plugin
- vitejs
- plugin
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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 (122)Similar npm Vite plugins plugins
All 20 vite-plugin-manifest-sri alternativesData 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-manifest-sri. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.