FindSoftware

Superstruct

TypeScript and JavaScript validation library that checks runtime data against composable struct definitions and reports detailed errors.

Superstruct validates JavaScript and TypeScript data against struct definitions. A struct describes the expected shape of a value, and structs can be composed into larger ones. The README says the library is designed for checking data at runtime, and that it throws or returns detailed errors for the code that receives the data.

The changelog says maintenance has moved to a volunteer team. The README names joi, express-validator, validator.js, yup, ajv and is-my-json-valid as existing validation libraries and gives its reasons for another one.

Worth knowing

The changelog marks use with an older Node.js line as deprecated.

Identity

Status
Active
Maintainer
Ian Storm Taylor3
Maintained by
Individual3
First release
201710

Rendering and deploy

Install with
npm, script tag, jsr78

Releases

Current major version
29
Last release
2024-07-069

Adoption

GitHub stars
7,1241
npm downloads a week
9,627,69911
Contributors
6613
Dependent repositories
17,08812
Dependent packages
58912

Why these figures do not compare

Sources

  1. 2026-11-16: links, Written in, License, GitHub stars
    api.github.com/repos/ianstormtaylor/superstruct
  2. 2026-11-16: links, Categories
    raw.githubusercontent.com/ianstormtaylor/superstruct/main/Readme.md
  3. 2026-11-16: Maintainer, Maintained by
    raw.githubusercontent.com/ianstormtaylor/superstruct/main/License.md
  4. 2026-11-16: Runtime
    raw.githubusercontent.com/ianstormtaylor/superstruct/main/Changelog.md
  5. 2026-11-16: Runtime
    api.jsr.io/scopes/superstruct/packages/core
  6. 2026-11-16: Minimum runtime
    raw.githubusercontent.com/ianstormtaylor/superstruct/v2.0.2/package.json
  7. 2026-11-16: Install with
    docs.superstructjs.org/guides/01-getting-started
  8. 2026-11-16: Install with
    jsr.io/@superstruct/core/meta.json
  9. 2026-11-16: Current major version, Last release
    api.github.com/repos/ianstormtaylor/superstruct/releases
  10. 2026-11-16: First release
    registry.npmjs.org/superstruct
  11. 2026-11-16: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/superstruct
  12. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/superstruct
  13. 2026-11-16: Contributors
    api.github.com/repos/ianstormtaylor/superstruct/contributors?per_page=1

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON