Skip to content
JS
Comparison

valibot vs superstruct

Schema validationPackage data 25 Sept 2026
valibotv1.5.0, 9 Sept 2026

The modular and type safe schema library for validating structural data

$ npm install valibot
superstructv2.0.2, 6 Jul 2024

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

$ npm install superstruct
MetricvalibotsuperstructDifference
Weekly downloads13,370,9444,705,564valibot 2.8x higher
12-month download growth+704%+93%valibot +610 pts
Gzip size---
Minified size---
Dependencies00Same
Unpacked size1.8 MB178 kBsuperstruct 10.2x smaller
Latest release1.5.0, 9 Sept 20262.0.2, 6 Jul 2024valibot 2.2 years more recent
Releases, last 12 months70valibot 7 more
First published12 Jul 202325 Nov 2017superstruct 5.6 years earlier
GitHub stars9,0217,128valibot +27%
Open issues8882valibot 6 more
Open pull requests9822valibot 76 more
Contributors---
Commits, last 52 weeks4640valibot higher
TypeScript typesBundledBundledSame
Module formatESM + CommonJSESM + CommonJSSame
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.

valibot13.4m latest weeksuperstruct4.7m 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.

valibot

Major versions
  1. 0.1.012 Jul 2023
  2. 1.0.019 Mar 2025
Last 5 releases
  1. 1.5.09 Sept 2026
  2. 1.4.228 Jun 2026
  3. 1.4.124 May 2026
  4. 1.4.05 May 2026
  5. 1.3.118 Mar 2026
64 releases in total, 7 in the last 12 months

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
valibot

-

superstruct

-

valibot

-

superstruct

-

  • Need no runtime dependenciesBoth
  • Module formatBoth ESM + CommonJS
  • Need TypeScript types in the package itselfBoth
  • Node.js version requirementvalibot: none declared; superstruct: >=14.0.0 (engines field in package.json)
  • Need the more recent releasevalibot (1.5.0 on 9 Sept 2026 vs 2.0.2 on 6 Jul 2024)
  • Higher weekly npm downloadsvalibot (13.4m vs 4.7m)

Each line is generated from the data above.

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

Indexability: Indexed.