{"adoption": {"forks": 223, "observed_at": "2026-08-28T04:09:56.138719+00:00", "stars": 7134}, "canonical_url": "https://ross.abutalabs.com/products/superstruct", "card": {"archived": false, "artifact_type": "library", "description": "A simple and composable way to validate data in JavaScript (and TypeScript).", "domain": ["developer-tools", "web-development", "apis"], "enriched": true, "function": ["serialization", "developer-tools"], "health_score": 28, "homepage": "https://docs.superstructjs.org", "language": "TypeScript", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["ianstormtaylor/superstruct"], "name": "ianstormtaylor/superstruct", "platform": ["browser", "cross-platform"], "pushed_at": "2024-10-01T02:42:53+00:00", "repo": "ianstormtaylor/superstruct", "stars": 7134, "tags": ["runtime-validation", "schema-validation", "typescript", "data-validation", "type-safety", "nodejs"], "topics": ["validation", "types", "interface", "structs", "schema", "javascript", "typescript"], "urls": [], "use_cases": ["validate request bodies in a REST or GraphQL API", "validate JSON data parsed from untrusted input", "define runtime-checked interfaces for TypeScript data", "coerce input data with default values before validation", "validate nested objects and arrays with custom validators", "check configuration files or environment data shapes"], "what_it_is": "Superstruct is a JavaScript and TypeScript library for defining data schemas (structs) and validating arbitrary data against them at runtime. It offers a composable, TypeScript-inspired API with detailed error reporting, data coercion, and custom validators.", "when_to_avoid": ["you only need compile-time type checking with no runtime validation", "you need extremely high-performance validation of huge datasets", "your team is standardized on another validator like Zod or Joi and interop matters"], "when_to_choose": ["you need runtime validation of arbitrary input in JavaScript or TypeScript", "you want detailed, human-readable validation errors", "you prefer a small, composable schema API inspired by TypeScript types", "you need to validate and coerce data with defaults"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/superstruct", "repo": "ianstormtaylor/superstruct", "role": "main", "score": 23}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:09:56.138719+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T17:40:03.072914+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "315e20d2a0e38168ab68984ba80fba938c31951f3e09ddb31e07fe715d196ceb", "fetched_at": "2026-08-28T04:09:56.138719+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ianstormtaylor/superstruct"}, {"content_hash": "449af5074b11ec1469cc35fdc5b6d25197bc490e38fb251a17781fa3341be2d5", "fetched_at": "2026-08-29T08:35:50.218790+00:00", "kind": "homepage", "missing": false, "url": "https://docs.superstructjs.org"}, {"content_hash": "fc2176dc4b55d79596f5e75ba9b43e4fe23c7dfb8baa2bf9c4ae4a6a364b6b82", "fetched_at": "2026-08-29T08:35:50.221415+00:00", "kind": "site_page", "missing": false, "url": "https://docs.superstructjs.org/guides/01-getting-started"}, {"content_hash": "7803fe4287721e214b239385824d24c356408dfc2be8536c0f9a76068cab53d7", "fetched_at": "2026-08-29T08:35:50.223155+00:00", "kind": "site_page", "missing": false, "url": "https://docs.superstructjs.org/resources/faq"}, {"content_hash": "4ab251387d777c45dc48d74f05e16c223201b70dcc152cf2d69e58faab1274d6", "fetched_at": "2026-08-29T08:35:50.224840+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/superstruct"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:09:56.138719+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T17:40:03.072914+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "315e20d2a0e38168ab68984ba80fba938c31951f3e09ddb31e07fe715d196ceb", "fetched_at": "2026-08-28T04:09:56.138719+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ianstormtaylor/superstruct"}, {"content_hash": "449af5074b11ec1469cc35fdc5b6d25197bc490e38fb251a17781fa3341be2d5", "fetched_at": "2026-08-29T08:35:50.218790+00:00", "kind": "homepage", "missing": false, "url": "https://docs.superstructjs.org"}, {"content_hash": "fc2176dc4b55d79596f5e75ba9b43e4fe23c7dfb8baa2bf9c4ae4a6a364b6b82", "fetched_at": "2026-08-29T08:35:50.221415+00:00", "kind": "site_page", "missing": false, "url": "https://docs.superstructjs.org/guides/01-getting-started"}, {"content_hash": "7803fe4287721e214b239385824d24c356408dfc2be8536c0f9a76068cab53d7", "fetched_at": "2026-08-29T08:35:50.223155+00:00", "kind": "site_page", "missing": false, "url": "https://docs.superstructjs.org/resources/faq"}, {"content_hash": "4ab251387d777c45dc48d74f05e16c223201b70dcc152cf2d69e58faab1274d6", "fetched_at": "2026-08-29T08:35:50.224840+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/superstruct"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T17:40:03.072914+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "315e20d2a0e38168ab68984ba80fba938c31951f3e09ddb31e07fe715d196ceb", "fetched_at": "2026-08-28T04:09:56.138719+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ianstormtaylor/superstruct"}, {"content_hash": "449af5074b11ec1469cc35fdc5b6d25197bc490e38fb251a17781fa3341be2d5", "fetched_at": "2026-08-29T08:35:50.218790+00:00", "kind": "homepage", "missing": false, "url": "https://docs.superstructjs.org"}, {"content_hash": "fc2176dc4b55d79596f5e75ba9b43e4fe23c7dfb8baa2bf9c4ae4a6a364b6b82", "fetched_at": "2026-08-29T08:35:50.221415+00:00", "kind": "site_page", "missing": false, "url": "https://docs.superstructjs.org/guides/01-getting-started"}, {"content_hash": "7803fe4287721e214b239385824d24c356408dfc2be8536c0f9a76068cab53d7", "fetched_at": "2026-08-29T08:35:50.223155+00:00", "kind": "site_page", "missing": false, "url": "https://docs.superstructjs.org/resources/faq"}, {"content_hash": "4ab251387d777c45dc48d74f05e16c223201b70dcc152cf2d69e58faab1274d6", "fetched_at": "2026-08-29T08:35:50.224840+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/superstruct"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:09:56.138719+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:09:56.138719+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:09:56.138719+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T17:40:03.072914+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "315e20d2a0e38168ab68984ba80fba938c31951f3e09ddb31e07fe715d196ceb", "fetched_at": "2026-08-28T04:09:56.138719+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ianstormtaylor/superstruct"}, {"content_hash": "449af5074b11ec1469cc35fdc5b6d25197bc490e38fb251a17781fa3341be2d5", "fetched_at": "2026-08-29T08:35:50.218790+00:00", "kind": "homepage", "missing": false, "url": "https://docs.superstructjs.org"}, {"content_hash": "fc2176dc4b55d79596f5e75ba9b43e4fe23c7dfb8baa2bf9c4ae4a6a364b6b82", "fetched_at": "2026-08-29T08:35:50.221415+00:00", "kind": "site_page", "missing": false, "url": "https://docs.superstructjs.org/guides/01-getting-started"}, {"content_hash": "7803fe4287721e214b239385824d24c356408dfc2be8536c0f9a76068cab53d7", "fetched_at": "2026-08-29T08:35:50.223155+00:00", "kind": "site_page", "missing": false, "url": "https://docs.superstructjs.org/resources/faq"}, {"content_hash": "4ab251387d777c45dc48d74f05e16c223201b70dcc152cf2d69e58faab1274d6", "fetched_at": "2026-08-29T08:35:50.224840+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/superstruct"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:09:56.138719+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:09:56.138719+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T17:40:03.072914+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "315e20d2a0e38168ab68984ba80fba938c31951f3e09ddb31e07fe715d196ceb", "fetched_at": "2026-08-28T04:09:56.138719+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ianstormtaylor/superstruct"}, {"content_hash": "449af5074b11ec1469cc35fdc5b6d25197bc490e38fb251a17781fa3341be2d5", "fetched_at": "2026-08-29T08:35:50.218790+00:00", "kind": "homepage", "missing": false, "url": "https://docs.superstructjs.org"}, {"content_hash": "fc2176dc4b55d79596f5e75ba9b43e4fe23c7dfb8baa2bf9c4ae4a6a364b6b82", "fetched_at": "2026-08-29T08:35:50.221415+00:00", "kind": "site_page", "missing": false, "url": "https://docs.superstructjs.org/guides/01-getting-started"}, {"content_hash": "7803fe4287721e214b239385824d24c356408dfc2be8536c0f9a76068cab53d7", "fetched_at": "2026-08-29T08:35:50.223155+00:00", "kind": "site_page", "missing": false, "url": "https://docs.superstructjs.org/resources/faq"}, {"content_hash": "4ab251387d777c45dc48d74f05e16c223201b70dcc152cf2d69e58faab1274d6", "fetched_at": "2026-08-29T08:35:50.224840+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/superstruct"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:09:56.138719+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:09:56.138719+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:09:56.138719+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T17:40:03.072914+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "315e20d2a0e38168ab68984ba80fba938c31951f3e09ddb31e07fe715d196ceb", "fetched_at": "2026-08-28T04:09:56.138719+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ianstormtaylor/superstruct"}, {"content_hash": "449af5074b11ec1469cc35fdc5b6d25197bc490e38fb251a17781fa3341be2d5", "fetched_at": "2026-08-29T08:35:50.218790+00:00", "kind": "homepage", "missing": false, "url": "https://docs.superstructjs.org"}, {"content_hash": "fc2176dc4b55d79596f5e75ba9b43e4fe23c7dfb8baa2bf9c4ae4a6a364b6b82", "fetched_at": "2026-08-29T08:35:50.221415+00:00", "kind": "site_page", "missing": false, "url": "https://docs.superstructjs.org/guides/01-getting-started"}, {"content_hash": "7803fe4287721e214b239385824d24c356408dfc2be8536c0f9a76068cab53d7", "fetched_at": "2026-08-29T08:35:50.223155+00:00", "kind": "site_page", "missing": false, "url": "https://docs.superstructjs.org/resources/faq"}, {"content_hash": "4ab251387d777c45dc48d74f05e16c223201b70dcc152cf2d69e58faab1274d6", "fetched_at": "2026-08-29T08:35:50.224840+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/superstruct"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:09:56.138719+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:09:56.138719+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T17:40:03.072914+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "315e20d2a0e38168ab68984ba80fba938c31951f3e09ddb31e07fe715d196ceb", "fetched_at": "2026-08-28T04:09:56.138719+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ianstormtaylor/superstruct"}, {"content_hash": "449af5074b11ec1469cc35fdc5b6d25197bc490e38fb251a17781fa3341be2d5", "fetched_at": "2026-08-29T08:35:50.218790+00:00", "kind": "homepage", "missing": false, "url": "https://docs.superstructjs.org"}, {"content_hash": "fc2176dc4b55d79596f5e75ba9b43e4fe23c7dfb8baa2bf9c4ae4a6a364b6b82", "fetched_at": "2026-08-29T08:35:50.221415+00:00", "kind": "site_page", "missing": false, "url": "https://docs.superstructjs.org/guides/01-getting-started"}, {"content_hash": "7803fe4287721e214b239385824d24c356408dfc2be8536c0f9a76068cab53d7", "fetched_at": "2026-08-29T08:35:50.223155+00:00", "kind": "site_page", "missing": false, "url": "https://docs.superstructjs.org/resources/faq"}, {"content_hash": "4ab251387d777c45dc48d74f05e16c223201b70dcc152cf2d69e58faab1274d6", "fetched_at": "2026-08-29T08:35:50.224840+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/superstruct"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T17:40:03.072914+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "315e20d2a0e38168ab68984ba80fba938c31951f3e09ddb31e07fe715d196ceb", "fetched_at": "2026-08-28T04:09:56.138719+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ianstormtaylor/superstruct"}, {"content_hash": "449af5074b11ec1469cc35fdc5b6d25197bc490e38fb251a17781fa3341be2d5", "fetched_at": "2026-08-29T08:35:50.218790+00:00", "kind": "homepage", "missing": false, "url": "https://docs.superstructjs.org"}, {"content_hash": "fc2176dc4b55d79596f5e75ba9b43e4fe23c7dfb8baa2bf9c4ae4a6a364b6b82", "fetched_at": "2026-08-29T08:35:50.221415+00:00", "kind": "site_page", "missing": false, "url": "https://docs.superstructjs.org/guides/01-getting-started"}, {"content_hash": "7803fe4287721e214b239385824d24c356408dfc2be8536c0f9a76068cab53d7", "fetched_at": "2026-08-29T08:35:50.223155+00:00", "kind": "site_page", "missing": false, "url": "https://docs.superstructjs.org/resources/faq"}, {"content_hash": "4ab251387d777c45dc48d74f05e16c223201b70dcc152cf2d69e58faab1274d6", "fetched_at": "2026-08-29T08:35:50.224840+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/superstruct"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T17:40:03.072914+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "315e20d2a0e38168ab68984ba80fba938c31951f3e09ddb31e07fe715d196ceb", "fetched_at": "2026-08-28T04:09:56.138719+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ianstormtaylor/superstruct"}, {"content_hash": "449af5074b11ec1469cc35fdc5b6d25197bc490e38fb251a17781fa3341be2d5", "fetched_at": "2026-08-29T08:35:50.218790+00:00", "kind": "homepage", "missing": false, "url": "https://docs.superstructjs.org"}, {"content_hash": "fc2176dc4b55d79596f5e75ba9b43e4fe23c7dfb8baa2bf9c4ae4a6a364b6b82", "fetched_at": "2026-08-29T08:35:50.221415+00:00", "kind": "site_page", "missing": false, "url": "https://docs.superstructjs.org/guides/01-getting-started"}, {"content_hash": "7803fe4287721e214b239385824d24c356408dfc2be8536c0f9a76068cab53d7", "fetched_at": "2026-08-29T08:35:50.223155+00:00", "kind": "site_page", "missing": false, "url": "https://docs.superstructjs.org/resources/faq"}, {"content_hash": "4ab251387d777c45dc48d74f05e16c223201b70dcc152cf2d69e58faab1274d6", "fetched_at": "2026-08-29T08:35:50.224840+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/superstruct"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T17:40:03.072914+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "315e20d2a0e38168ab68984ba80fba938c31951f3e09ddb31e07fe715d196ceb", "fetched_at": "2026-08-28T04:09:56.138719+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ianstormtaylor/superstruct"}, {"content_hash": "449af5074b11ec1469cc35fdc5b6d25197bc490e38fb251a17781fa3341be2d5", "fetched_at": "2026-08-29T08:35:50.218790+00:00", "kind": "homepage", "missing": false, "url": "https://docs.superstructjs.org"}, {"content_hash": "fc2176dc4b55d79596f5e75ba9b43e4fe23c7dfb8baa2bf9c4ae4a6a364b6b82", "fetched_at": "2026-08-29T08:35:50.221415+00:00", "kind": "site_page", "missing": false, "url": "https://docs.superstructjs.org/guides/01-getting-started"}, {"content_hash": "7803fe4287721e214b239385824d24c356408dfc2be8536c0f9a76068cab53d7", "fetched_at": "2026-08-29T08:35:50.223155+00:00", "kind": "site_page", "missing": false, "url": "https://docs.superstructjs.org/resources/faq"}, {"content_hash": "4ab251387d777c45dc48d74f05e16c223201b70dcc152cf2d69e58faab1274d6", "fetched_at": "2026-08-29T08:35:50.224840+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/superstruct"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 3205, "days_push": 701, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 23, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}