Skip to content
JS
Comparison

superstruct vs express-validator

Schema validationPackage data 25 Sept 2026
superstructv2.0.2, 6 Jul 2024

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

$ npm install superstruct
express-validatorv7.3.2, 1 Apr 2026

Express middleware for the validator module.

$ npm install express-validator
Metricsuperstructexpress-validatorDifference
Weekly downloads4,705,5641,147,537superstruct 4.1x higher
12-month download growth+93%+14%superstruct +79 pts
Gzip size---
Minified size---
Dependencies02express-validator 2 more
Unpacked size178 kB142 kBexpress-validator 25% smaller
Latest release2.0.2, 6 Jul 20247.3.2, 1 Apr 2026express-validator 21 months more recent
Releases, last 12 months03express-validator 3 more
First published25 Nov 20175 Oct 2011express-validator 6.1 years earlier
GitHub stars7,1286,233superstruct +14%
Open issues8260superstruct 22 more
Open pull requests2218superstruct 4 more
Contributors---
Commits, last 52 weeks043express-validator higher
TypeScript typesBundledBundledSame
Module formatESM + CommonJSCommonJSDiffers
Runtimes---
LicenseMITMITSame

Green marks the smaller size or the more recent release. Bold marks the higher count, with no judgement implied. Sizes are for the whole package per Bundlephobia. Growth compares the average of the last 4 weeks with the first 4 weeks of the 52-week series.

superstruct4.7m latest weekexpress-validator1.1m latest week
Week of 23 Sept 2025Week of 15 Sept 2026
Weekly npm downloads, 52 weeks. Y axis starts at zero. Values are not smoothed.

superstruct

Major versions
  1. 0.0.125 Nov 2017
  2. 1.0.017 Nov 2022
  3. 2.0.03 Jul 2024
Last 5 releases
  1. 2.0.26 Jul 2024
  2. 2.0.16 Jul 2024
  3. 2.0.03 Jul 2024
  4. 1.0.411 Mar 2024
  5. 1.0.317 Nov 2022
86 releases in total, 0 in the last 12 months

express-validator

Major versions
  1. 0.1.05 Oct 2011
  2. 1.0.011 Nov 2013
  3. 2.0.010 Mar 2014
  4. 3.0.024 Nov 2016
  5. 4.0.027 Aug 2017
  6. 5.0.010 Feb 2018
  7. 6.0.020 Jun 2019
  8. 7.0.015 Apr 2023
Last 5 releases
  1. 7.3.21 Apr 2026
  2. 7.3.119 Nov 2025
  3. 7.3.022 Oct 2025
  4. 7.2.129 Dec 2024
  5. 7.2.011 Aug 2024
125 releases in total, 3 in the last 12 months
superstruct

-

express-validator

-

superstruct

-

express-validator

-

  • Need no runtime dependenciessuperstruct (superstruct has 0, express-validator has 2)
  • Need both ESM and CommonJS entry pointssuperstruct (superstruct: ESM + CommonJS; express-validator: CommonJS)
  • Need to load it with require()Both
  • Need TypeScript types in the package itselfBoth
  • Node.js version requirementsuperstruct: >=14.0.0; express-validator: >= 8.0.0 (engines field in package.json)
  • Need the more recent releaseexpress-validator (7.3.2 on 1 Apr 2026 vs 2.0.2 on 6 Jul 2024)
  • Higher weekly npm downloadssuperstruct (4.7m vs 1.1m)

Each line is generated from the data above.

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

Indexability: Indexed.