Skip to content
JS
Package

next-secure-headers

Sets secure response headers for Next.js.

v2.2.0, 25 Feb 2021MITCommonJSTypes: NoneSecurity
$ npm install next-secure-headers

Key numbers

As of 25 Sept 2026
Weekly downloads
71.8k
+76% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
5 years ago
v2.2.0
GitHub stars
316
12 forks
Open issues / PRs
11 / 3
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
050k100k150kSept 2025Mar 2026Sept 2026High 109k (8 Sept 2026)Low 23.7k (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.

71,786 downloads last week, 352,759 in the last month. The 12-month change of +76% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
2.2.0, 25 Feb 20215 years ago
First published
-
Last push to GitHub
21 Aug 20221,495 days before the snapshot
Repository archived
No
Open issues
11
Open pull requests
3
Commits, last 52 weeks
0
Dependents on npm
5

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=10.0.0
Runtimes
-
Unpacked size (npm)
77 kB
Dependencies (0)
None
npm install next-secure-headers
  • jsDelivrhttps://cdn.jsdelivr.net/npm/next-secure-headers@2.2.0/
  • unpkghttps://unpkg.com/next-secure-headers@2.2.0/
  • esm.shhttps://esm.sh/next-secure-headers@2.2.0
PackageWeekly downloadsGzipLast releaseModuleComparison
vite-plugin-csp-guard17.9k-5 months agoESM only-
koa-helmet242.7k-8 months agoESM + CommonJS-
csp-header114.8k-21 days agoESM + CommonJS-
@doyensec/csp-evaluator5.7k-7 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.