Package
superstruct
A simple and composable way to validate data in JavaScript (and TypeScript).
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
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
- v2 first release 2.0.0, 3 Jul 2024
- v1 first release 1.0.0, 17 Nov 2022
- v0 first release 0.0.1, 25 Nov 2017
Recent releases
| Version | Published |
|---|---|
| 2.0.2 | 6 Jul 2024 |
| 2.0.1 | 6 Jul 2024 |
| 2.0.0 | 3 Jul 2024 |
| 1.0.4 | 11 Mar 2024 |
| 1.0.3 | 17 Nov 2022 |
| 1.0.2 | 17 Nov 2022 |
| 1.0.1 | 17 Nov 2022 |
| 1.0.0 | 17 Nov 2022 |
| 0.16.7 | 1 Nov 2022 |
| 0.16.6 | 25 Oct 2022 |
| 0.16.5 | 22 Sept 2022 |
| 0.16.4 | 21 Sept 2022 |
| 0.16.3 | 20 Sept 2022 |
| 0.16.2 | 20 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- jsDelivr
https://cdn.jsdelivr.net/npm/superstruct@2.0.2/ - unpkg
https://unpkg.com/superstruct@2.0.2/ - esm.sh
https://esm.sh/superstruct@2.0.2
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| @metamask/superstruct | 813.8k | - | 2 months ago | ESM + CommonJS | - |
| @typeschema/core | 189.7k | - | 2 years ago | ESM + CommonJS | - |
| @typeschema/class-validator | 188.3k | - | 1 year ago | ESM + CommonJS | - |
| valibot | 13.4m | - | 15 days ago | ESM + CommonJS | valibot vs superstruct |
| @accordproject/concerto-core | 60.6k | - | 16 days ago | ESM + CommonJS | - |
| express-validator | 1.1m | - | 5 months ago | CommonJS | superstruct vs express-validator |
| @bufbuild/protoplugin | 2.1m | - | 13 days ago | ESM + CommonJS | - |
| @kubernetes-models/validate | 105.3k | - | 4 months ago | ESM only | - |
Indexability: Indexed.