Package
@metamask/superstruct
A simple and composable way to validate data in JavaScript (and TypeScript).
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
- v3 first release 3.0.0, 4 Jun 2024
- v2 first release 2.0.0, 8 Mar 2024
Recent releases
| Version | Published |
|---|---|
| 3.4.1 | 16 Jul 2026 |
| 3.4.0 | 15 Jul 2026 |
| 3.3.0 | 2 Jul 2026 |
| 3.2.1 | 3 Apr 2025 |
| 3.2.0 | 2 Apr 2025 |
| 3.1.0 | 27 Jun 2024 |
| 3.0.0 | 4 Jun 2024 |
| 2.0.0 | 8 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- jsDelivr
https://cdn.jsdelivr.net/npm/@metamask/superstruct@3.4.1/ - unpkg
https://unpkg.com/@metamask/superstruct@3.4.1/ - esm.sh
https://esm.sh/@metamask/superstruct@3.4.1
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| superstruct | 4.7m | - | 2 years ago | ESM + CommonJS | - |
| express-json-validator-middleware | 12.8k | - | 5 months ago | CommonJS | - |
| express-validation | 47.9k | - | 2 years ago | CommonJS | - |
| express-validator | 1.1m | - | 5 months ago | CommonJS | - |
| celebrate | 61.5k | - | 29 days ago | ESM only | - |
| express-joi-validation | 16.6k | - | 1 year ago | CommonJS | - |
| express-zod-api | 12.8k | - | 2 days ago | ESM only | - |
| express-zod-safe | 10k | - | 5 months ago | ESM + CommonJS | - |
Indexability: Indexed.