Superstruct

Superstruct

Composable struct library for JavaScript and TypeScript that defines data shapes as structs, validates and coerces values against them, and throws descriptive errors that reference the struct and failing path.

Superstruct at docs.superstructjs.org is a free MIT composable struct library for JS and TypeScript, npm superstruct 2.0.2 Node 14.0.0+, structs composed from primitive object array union definitions, validation checks a value and coercion normalizes where defined, failures raise an error naming the struct and failing path to trace malformed input, npm quiet since 2024-07 but repo unarchived, slow release cadence, no sold commercial tier (data as of Nov 22, 2026).

Visit Official Website

*This is an affiliate link, we may earn a commission at no extra cost to you.

Is Superstruct free?

Superstruct: Superstruct is free open-source software released under the MIT License; the superstruct package latest 2.0.2 on npm requires Node 14.0.0 or above. Structs are composed from primitive and object/array/union definitions, validation checks a value against the struct, and values can be coerced where the struct defines a transform. Failures raise a descriptive error naming the struct and the failing path, which helps trace malformed input in development. The npm release has not shipped a new version since 2024-07, though the repository remains unarchived; treat release cadence as slow when planning production tooling. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Check the official page for current status before relying on it.

Frequently Asked Questions

Is Superstruct free?

The code is free to self-host, but a hosted plan from the vendor may not be. Superstruct publishes its source, so cost depends on where you run it.

How much does Superstruct cost?

Superstruct is free open-source software released under the MIT License; the superstruct package latest 2.0.2 on npm requires Node 14.0.0 or above. Structs are composed from primitive and object/array/union definitions, validation checks a value against the struct, and values can be coerced where the struct defines a transform. Failures raise a descriptive error naming the struct and the failing path, which helps trace malformed input in development. The npm release has not shipped a new version since 2024-07, though the repository remains unarchived; treat release cadence as slow when planning production tooling. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Usage volume, plan limits and add-ons can push the bill above the figures shown, so confirm the current numbers on the vendor page before committing.

Where can I check Superstruct's current pricing?

On Superstruct's official site, linked from this page. We only publish a price after reading the vendor's own pricing page, so if this page shows no number, it means no traceable public price is on file — not that the tool is free.

What is Superstruct?

A struct composes primitives and nested shapes, validation checks the input, coercion normalizes values where defined, and a failure error names the struct and path that did not match.

How does pricing work?

The package installs free under MIT with no seat license; the runtime follows its own terms, and commercial validation support would be outside the open-source project.

How does Superstruct compare with other tools in Dev Workflow & Productivity?

Superstruct is listed in the Dev Workflow & Productivity category, alongside 2 other tools we track here. 2 of those 2 peers have a dated price we read from the vendor's own pricing page, and the table below shows each tool's pricing model next to the exact rate on file — so the comparison is between published numbers, not between marketing pages.

ToolPricing modelKey pricing on filePrice checked
SuperstructOpen sourceSuperstruct is free open-source software released under the MIT License; the superstruct package latest 2.0.2 on npm requires Node 14.0.0 or above. Structs are composed from primitive and object/array/union definitions, validation checks a value against the struct, and values can be coerced where the struct defines a transform. Failures raise a descriptive error naming the struct and the failing path, which helps trace malformed input in development. The npm release has not shipped a new version since 2024-07, though the repository remains unarchived; treat release cadence as slow when planning production tooling. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).Nov 22, 2026
ZodOpen sourceZod is free open-source software released under the MIT License; the zod package latest 4.6.7 on npm does not declare a Node engines range. A schema is declared once in code, and Zod derives the matching TypeScript type from that definition so the same source describes both the runtime shape and the static type. Parsing returns either a typed value or structured validation issues covering required fields, type mismatches, string and number constraints and nested objects and arrays. It is widely used for API request bodies, form input, config files and external data where both runtime safety and TypeScript inference matter. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).Nov 22, 2026
YupOpen sourceYup is free open-source software released under the MIT License; the yup package latest 1.7.1 on npm does not declare a Node engines range. Schemes are built as a chain of field types, optional and required flags, value transforms, string and number constraints, references to sibling fields and conditional tests. Validation returns either a transformed value or an error collection, and the fluent API is a common fit for form libraries that pass values through a schema before state updates. It targets runtime JavaScript validation and does not infer a static TypeScript type the way type-first libraries do. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).Nov 22, 2026

3 of these 3 entries carry a specific price we read from the vendor's site. Where the column says there is no dated price on file, we have not verified a rate — treat that as unknown rather than free, and check the vendor's page before you budget for it.

Full pricing breakdown

Superstruct's source code is publicly available, so you can run or build it yourself. The project may also sell a paid hosted or cloud plan — check the official site for current pricing.

Open source does not always mean every hosted version is free.

Key pricing: Superstruct is free open-source software released under the MIT License; the superstruct package latest 2.0.2 on npm requires Node 14.0.0 or above. Structs are composed from primitive and object/array/union definitions, validation checks a value against the struct, and values can be coerced where the struct defines a transform. Failures raise a descriptive error naming the struct and the failing path, which helps trace malformed input in development. The npm release has not shipped a new version since 2024-07, though the repository remains unarchived; treat release cadence as slow when planning production tooling. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).

Estimate your monthly bill with our calculator →Or build a full stack around your budget →

Pricing Guides & Comparisons

Plan prices in these guides are read from each vendor's own pricing page, with the date we checked them.

⭐ Rate this tool

How would you rate this tool?

🚀 Never Miss a New AI Coding Tool

Join 1,000+ developers getting our weekly roundup: new AI tools, student free tiers, exclusive discounts, and side project deals. No spam, unsubscribe anytime.

Tool Information

  • Official Websitedocs.superstructjs.org
  • CategoryDev Workflow & Productivity
  • PricingOpen Source
  • Price checkedNov 22, 2026

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates