superstruct

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

Lightweight, composable data validation.

When to choose it: 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
Latest version
2.0.2
Monthly downloads
20,701,143
GitHub stars
7,143
Minified + gzip
3.4 kB
Dependencies
0
License
MIT

Compare superstruct with

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