Skip to content
JS
Package

vite-plugin-csp

Create CSP meta tags and header configs from all sources in the final Vite html

v1.1.2, 1 Jun 2022MITESM + CommonJSTypes: BundledBundler plugins and loadersSecurity
$ npm install vite-plugin-csp

Key numbers

As of 25 Sept 2026
Weekly downloads
11.8k
+104% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
4
Direct, from package.json
Last release
4 years ago
v1.1.2
GitHub stars
24
0 forks
Open issues / PRs
2 / 9
Contributors
-
Commits, last 52 weeks
7

Downloads

Last week 2026-09-15 to 2026-09-21
010k20k30kSept 2025Mar 2026Sept 2026High 25.5k (14 Jul 2026)Low 5.4k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

11,800 downloads last week, 75,255 in the last month. The 12-month change of +104% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
1.1.2, 1 Jun 20224 years ago
First published
-
Last push to GitHub
12 Sept 202612 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
9
Commits, last 52 weeks
7
Dependents on npm
1

Major versions

-

Recent releases

-

Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
136 kB
Dependencies (4)
cheeriocss-tree@rollup/pluginutilscsp-typed-directives
Peer dependencies (1)
vite
npm install vite-plugin-csp
  • jsDelivrhttps://cdn.jsdelivr.net/npm/vite-plugin-csp@1.1.2/
  • unpkghttps://unpkg.com/vite-plugin-csp@1.1.2/
  • esm.shhttps://esm.sh/vite-plugin-csp@1.1.2
PackageWeekly downloadsGzipLast releaseModuleComparison
vite-plugin-sri-gen5.4k-22 days agoESM only-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.