Skip to content
JS
Package

@metamask/superstruct

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

v3.4.1, 16 Jul 2026MITESM + CommonJSTypes: BundledSchema validationHTTP servers and web frameworks
$ npm install @metamask/superstruct

Key numbers

As of 25 Sept 2026
Weekly downloads
813.8k
- over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
2 months ago
v3.4.1
GitHub stars
3
1 forks
Open issues / PRs
1 / 2
Contributors
-
Commits, last 52 weeks
8

No weekly download data in the snapshot.

813,836 downloads last week, 3,594,930 in the last month. No 52-week series has been fetched yet.

Releases, last 12 months
38 in total
Latest version
3.4.1, 16 Jul 20262 months ago
First published
8 Mar 2024
Last push to GitHub
24 Sept 2026same day as the snapshot
Repository archived
No
Open issues
1
Open pull requests
2
Commits, last 52 weeks
8
Dependents on npm
84

Major versions

  1. v3 first release 3.0.0, 4 Jun 2024
  2. v2 first release 2.0.0, 8 Mar 2024

Recent releases

VersionPublished
3.4.116 Jul 2026
3.4.015 Jul 2026
3.3.02 Jul 2026
3.2.13 Apr 2025
3.2.02 Apr 2025
3.1.027 Jun 2024
3.0.04 Jun 2024
2.0.08 Mar 2024
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=16.0.0
Runtimes
-
Unpacked size (npm)
520 kB
Dependencies (0)
None
npm install @metamask/superstruct
  • jsDelivrhttps://cdn.jsdelivr.net/npm/@metamask/superstruct@3.4.1/
  • unpkghttps://unpkg.com/@metamask/superstruct@3.4.1/
  • esm.shhttps://esm.sh/@metamask/superstruct@3.4.1
PackageWeekly downloadsGzipLast releaseModuleComparison
superstruct4.7m-2 years agoESM + CommonJS-
express-json-validator-middleware12.8k-5 months agoCommonJS-
express-validation47.9k-2 years agoCommonJS-
express-validator1.1m-5 months agoCommonJS-
celebrate61.5k-29 days agoESM only-
express-joi-validation16.6k-1 year agoCommonJS-
express-zod-api12.8k-2 days agoESM only-
express-zod-safe10k-5 months agoESM + CommonJS-
Sources: npm registry, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.