Skip to content
JS
Package

superstruct

A simple and composable way to validate data in JavaScript (and TypeScript).

v2.0.2, 6 Jul 2024MITESM + CommonJSTypes: BundledSchema validationTypeScript tooling
$ npm install superstruct

Key numbers

As of 25 Sept 2026
Weekly downloads
4.7m
+93% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
2 years ago
v2.0.2
GitHub stars
7.1k
223 forks
Open issues / PRs
82 / 22
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
02m4m6m8mSept 2025Mar 2026Sept 2026High 6.5m (25 Aug 2026)Low 1.6m (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.

4,705,564 downloads last week, 23,267,145 in the last month. The 12-month change of +93% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
086 in total
Latest version
2.0.2, 6 Jul 20242 years ago
First published
25 Nov 2017
Last push to GitHub
1 Oct 2024724 days before the snapshot
Repository archived
No
Open issues
82
Open pull requests
22
Commits, last 52 weeks
0
Dependents on npm
806

Major versions

  1. v2 first release 2.0.0, 3 Jul 2024
  2. v1 first release 1.0.0, 17 Nov 2022
  3. v0 first release 0.0.1, 25 Nov 2017

Recent releases

VersionPublished
2.0.26 Jul 2024
2.0.16 Jul 2024
2.0.03 Jul 2024
1.0.411 Mar 2024
1.0.317 Nov 2022
1.0.217 Nov 2022
1.0.117 Nov 2022
1.0.017 Nov 2022
0.16.71 Nov 2022
0.16.625 Oct 2022
0.16.522 Sept 2022
0.16.421 Sept 2022
0.16.320 Sept 2022
0.16.220 Sept 2022
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=14.0.0
Runtimes
-
Unpacked size (npm)
178 kB
Dependencies (0)
None
npm install superstruct
  • jsDelivrhttps://cdn.jsdelivr.net/npm/superstruct@2.0.2/
  • unpkghttps://unpkg.com/superstruct@2.0.2/
  • esm.shhttps://esm.sh/superstruct@2.0.2
PackageWeekly downloadsGzipLast releaseModuleComparison
@metamask/superstruct813.8k-2 months agoESM + CommonJS-
@typeschema/core189.7k-2 years agoESM + CommonJS-
@typeschema/class-validator188.3k-1 year agoESM + CommonJS-
valibot13.4m-15 days agoESM + CommonJSvalibot vs superstruct
@accordproject/concerto-core60.6k-16 days agoESM + CommonJS-
express-validator1.1m-5 months agoCommonJSsuperstruct vs express-validator
@bufbuild/protoplugin2.1m-13 days agoESM + CommonJS-
@kubernetes-models/validate105.3k-4 months agoESM only-

Related

Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.