Skip to content
JS
Package

csrf-sync

A utility package to help implement stateful CSRF protection using the Synchroniser Token Pattern in express.

v4.2.1, 10 May 2025ISCESM + CommonJSTypes: BundledHTTP servers and web frameworksSecurity
$ npm install csrf-sync

Key numbers

As of 25 Sept 2026
Weekly downloads
122.1k
+137% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
1 year ago
v4.2.1
GitHub stars
42
6 forks
Open issues / PRs
1 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0100k200k300k400kSept 2025Mar 2026Sept 2026High 306.9k (16 Jun 2026)Low 29.8k (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.

122,075 downloads last week, 574,977 in the last month. The 12-month change of +137% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
4.2.1, 10 May 20251 year ago
First published
-
Last push to GitHub
10 May 2025502 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
13

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)
26 kB
Dependencies (1)
http-errors
npm install csrf-sync
  • jsDelivrhttps://cdn.jsdelivr.net/npm/csrf-sync@4.2.1/
  • unpkghttps://unpkg.com/csrf-sync@4.2.1/
  • esm.shhttps://esm.sh/csrf-sync@4.2.1
PackageWeekly downloadsGzipLast releaseModuleComparison
@dr.pogodin/csurf19.3k-3 days agoESM only-
@sailshq/csurf22.8k-1 year ago--
express-mongo-sanitize202.9k-4 years agoCommonJS-
sectxt5.4k-5 years agoCommonJS-
helmet-crossdomain324.4k-7 years agoCommonJS-
pompelmi5.5k-4 months agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.