{"adoption": {"forks": 71, "observed_at": "2026-08-28T04:04:04.053364+00:00", "stars": 1230}, "canonical_url": "https://ross.abutalabs.com/products/invariant", "card": {"archived": false, "artifact_type": "library", "description": "invariant", "domain": ["developer-tools", "web-development"], "enriched": true, "function": ["error-handling", "testing"], "health_score": 20, "homepage": null, "language": "JavaScript", "license": "MIT", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["zertosh/invariant"], "name": "zertosh/invariant", "platform": ["browser", "cross-platform"], "pushed_at": "2021-12-14T00:53:36+00:00", "repo": "zertosh/invariant", "stars": 1230, "tags": ["assertions", "invariant-condition", "minification-friendly", "facebook-mirror", "javascript", "nodejs"], "topics": [], "urls": [], "use_cases": ["assert a condition is true and throw otherwise", "provide detailed error messages in dev but generic ones in production", "strip error messages from production bundles via minification", "validate function arguments in libraries"], "what_it_is": "A tiny JavaScript library mirroring Facebook's `invariant` helper that throws descriptive errors in development and generic errors in production. It is widely used as a dependency in React ecosystem packages.", "when_to_avoid": ["you want rich assertion APIs with many matchers (use chai or assert)", "you need TypeScript-native assertion functions with type narrowing"], "when_to_choose": ["you need a tiny, battle-tested assertion helper compatible with browserify/envify", "you want dev-only descriptive errors that minify away in production"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/invariant", "repo": "zertosh/invariant", "role": "main", "score": 32}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:04.053364+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T06:15:04.381164+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d31e0314d8921584ef61261295bfd7fe8dae11a9ebefa1766794f290d9f17bfc", "fetched_at": "2026-08-28T04:04:04.053364+00:00", "kind": "readme", "missing": false, "url": "https://github.com/zertosh/invariant"}, {"content_hash": "368e29bcca939e58facdfeadfdc195b200ef7a788c383e1f0433f7b25d56b3c9", "fetched_at": "2026-08-29T12:22:24.059852+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/invariant"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:04.053364+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T06:15:04.381164+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d31e0314d8921584ef61261295bfd7fe8dae11a9ebefa1766794f290d9f17bfc", "fetched_at": "2026-08-28T04:04:04.053364+00:00", "kind": "readme", "missing": false, "url": "https://github.com/zertosh/invariant"}, {"content_hash": "368e29bcca939e58facdfeadfdc195b200ef7a788c383e1f0433f7b25d56b3c9", "fetched_at": "2026-08-29T12:22:24.059852+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/invariant"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T06:15:04.381164+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d31e0314d8921584ef61261295bfd7fe8dae11a9ebefa1766794f290d9f17bfc", "fetched_at": "2026-08-28T04:04:04.053364+00:00", "kind": "readme", "missing": false, "url": "https://github.com/zertosh/invariant"}, {"content_hash": "368e29bcca939e58facdfeadfdc195b200ef7a788c383e1f0433f7b25d56b3c9", "fetched_at": "2026-08-29T12:22:24.059852+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/invariant"}], "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:04:04.053364+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:04.053364+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:04.053364+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T06:15:04.381164+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d31e0314d8921584ef61261295bfd7fe8dae11a9ebefa1766794f290d9f17bfc", "fetched_at": "2026-08-28T04:04:04.053364+00:00", "kind": "readme", "missing": false, "url": "https://github.com/zertosh/invariant"}, {"content_hash": "368e29bcca939e58facdfeadfdc195b200ef7a788c383e1f0433f7b25d56b3c9", "fetched_at": "2026-08-29T12:22:24.059852+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/invariant"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:04.053364+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:04.053364+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T06:15:04.381164+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d31e0314d8921584ef61261295bfd7fe8dae11a9ebefa1766794f290d9f17bfc", "fetched_at": "2026-08-28T04:04:04.053364+00:00", "kind": "readme", "missing": false, "url": "https://github.com/zertosh/invariant"}, {"content_hash": "368e29bcca939e58facdfeadfdc195b200ef7a788c383e1f0433f7b25d56b3c9", "fetched_at": "2026-08-29T12:22:24.059852+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/invariant"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:04.053364+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:04.053364+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:04.053364+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T06:15:04.381164+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d31e0314d8921584ef61261295bfd7fe8dae11a9ebefa1766794f290d9f17bfc", "fetched_at": "2026-08-28T04:04:04.053364+00:00", "kind": "readme", "missing": false, "url": "https://github.com/zertosh/invariant"}, {"content_hash": "368e29bcca939e58facdfeadfdc195b200ef7a788c383e1f0433f7b25d56b3c9", "fetched_at": "2026-08-29T12:22:24.059852+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/invariant"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:04.053364+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:04.053364+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T06:15:04.381164+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d31e0314d8921584ef61261295bfd7fe8dae11a9ebefa1766794f290d9f17bfc", "fetched_at": "2026-08-28T04:04:04.053364+00:00", "kind": "readme", "missing": false, "url": "https://github.com/zertosh/invariant"}, {"content_hash": "368e29bcca939e58facdfeadfdc195b200ef7a788c383e1f0433f7b25d56b3c9", "fetched_at": "2026-08-29T12:22:24.059852+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/invariant"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T06:15:04.381164+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d31e0314d8921584ef61261295bfd7fe8dae11a9ebefa1766794f290d9f17bfc", "fetched_at": "2026-08-28T04:04:04.053364+00:00", "kind": "readme", "missing": false, "url": "https://github.com/zertosh/invariant"}, {"content_hash": "368e29bcca939e58facdfeadfdc195b200ef7a788c383e1f0433f7b25d56b3c9", "fetched_at": "2026-08-29T12:22:24.059852+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/invariant"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T06:15:04.381164+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d31e0314d8921584ef61261295bfd7fe8dae11a9ebefa1766794f290d9f17bfc", "fetched_at": "2026-08-28T04:04:04.053364+00:00", "kind": "readme", "missing": false, "url": "https://github.com/zertosh/invariant"}, {"content_hash": "368e29bcca939e58facdfeadfdc195b200ef7a788c383e1f0433f7b25d56b3c9", "fetched_at": "2026-08-29T12:22:24.059852+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/invariant"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T06:15:04.381164+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d31e0314d8921584ef61261295bfd7fe8dae11a9ebefa1766794f290d9f17bfc", "fetched_at": "2026-08-28T04:04:04.053364+00:00", "kind": "readme", "missing": false, "url": "https://github.com/zertosh/invariant"}, {"content_hash": "368e29bcca939e58facdfeadfdc195b200ef7a788c383e1f0433f7b25d56b3c9", "fetched_at": "2026-08-29T12:22:24.059852+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/invariant"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 4361, "days_push": 1724, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 32, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}