superstruct vs zod

zod is downloaded 33.8× more often than superstruct (699,440,515 vs 20,701,143 per month), so it has the larger community and more answered questions online. superstruct ships 94% less gzipped JavaScript (3.4 kB vs 60.3 kB), which matters if bundle size is a priority. zod has been updated more recently, a sign of more active maintenance.

Metricsuperstructzod
Weekly downloads4,952,034179,575,332
Monthly downloads20,701,143699,440,515
GitHub stars7,14342,835
Minified size10.2 kB274.7 kB
Minified + gzipped3.4 kB60.3 kB
Dependencies00
Open issues100167
Last commit2024-10-012026-05-31
Latest version2.0.24.4.3
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

zod

TypeScript-first schema validation with type inference.

Choose it when: The default for TypeScript projects — define a schema once and infer the static type from it, with a huge ecosystem.

  • + Best-in-class type inference
  • + Massive ecosystem
  • + Great DX
  • - Larger than Valibot
  • - Chaining can get verbose

Feature comparison

Featuresuperstructzod
Static type inference✓ Yes✓ Yes
Async validation✗ No✓ Yes
Standard Schema✗ No✓ Yes
API styleComposable functionalChainable
Best forLightweight needsTypeScript apps

superstruct

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

zod

TypeScript-first schema declaration and validation library with static type inference

Related comparisons

Embed this comparison

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

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

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