superstruct vs valibot

valibot is downloaded 2.2× more often than superstruct (44,809,295 vs 20,701,143 per month), so it has the larger community and more answered questions online. superstruct ships 76% less gzipped JavaScript (3.4 kB vs 14.4 kB), which matters if bundle size is a priority. valibot has been updated more recently, a sign of more active maintenance.

Metricsuperstructvalibot
Weekly downloads4,952,03410,917,346
Monthly downloads20,701,14344,809,295
GitHub stars7,1438,734
Minified size10.2 kB83.5 kB
Minified + gzipped3.4 kB14.4 kB
Dependencies00
Open issues100122
Last commit2024-10-012026-05-31
Latest version2.0.21.4.1
LicenseMITMIT

When to choose which

superstruct

Lightweight, composable data validation.

Choose it when: Simple, composable validation with a small footprint when you don't need Zod's full feature set.

  • + Small & composable
  • + Type inference
  • - Sync only
  • - Smaller ecosystem

valibot

Zod-like validation that's tiny and tree-shakable.

Choose it when: Bundle-size-critical front-ends that want Zod-style inference at a fraction of the size.

  • + Very small & tree-shakable
  • + Full type inference
  • + Modular
  • - Younger ecosystem than Zod
  • - Functional API differs from Zod

Feature comparison

Featuresuperstructvalibot
Static type inference✓ Yes✓ Yes
Async validation✗ No✓ Yes
Standard Schema✗ No✓ Yes
API styleComposable functionalFunctional / modular
Best forLightweight needsFrontend bundles

superstruct

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

valibot

The modular and type safe schema library for validating structural data

Related comparisons

Embed this comparison

A live badge for your README — it updates as the numbers change.

superstruct vs valibot downloads
[![superstruct vs valibot](https://devcompare.dev/badge/superstruct-vs-valibot.svg)](https://devcompare.dev/compare/superstruct-vs-valibot)

Data from npm, Bundlephobia and GitHub. Last updated 2026-06-02.