{"adoption": {"forks": 48, "observed_at": "2026-08-28T04:05:46.099507+00:00", "stars": 1863}, "canonical_url": "https://ross.abutalabs.com/products/tiny-invariant", "card": {"archived": false, "artifact_type": "library", "description": "A tiny invariant function", "domain": ["developer-tools", "web-development", "programming-languages"], "enriched": true, "function": ["error-handling", "type-system"], "health_score": 25, "homepage": null, "language": "TypeScript", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["alexreardon/tiny-invariant"], "name": "alexreardon/tiny-invariant", "platform": ["browser", "cross-platform"], "pushed_at": "2024-07-25T02:22:37+00:00", "repo": "alexreardon/tiny-invariant", "stars": 1863, "tags": ["assertion", "invariant", "type-guard", "typescript", "zero-dependency", "tiny", "nodejs"], "topics": ["assert", "assertion", "invariant", "type-guard"], "urls": [], "use_cases": ["assert a condition is truthy at runtime", "narrow nullable types in typescript", "replace the invariant package with a smaller alternative", "throw descriptive errors for invalid states", "validate function preconditions"], "what_it_is": "A tiny, zero-dependency invariant assertion function for JavaScript and TypeScript that throws when a condition is falsy. It also narrows types in TypeScript and Flow, making it useful for runtime checks and type safety.", "when_to_avoid": ["you need sprintf-style message formatting from the original invariant package", "you need rich assertion APIs like chai or expect"], "when_to_choose": []}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/tiny-invariant", "repo": "alexreardon/tiny-invariant", "role": "main", "score": 23}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:05:46.099507+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T03:15:38.273555+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a06e464581f1709ae4bccbc4f13f9e3e64904495d5c2d8376f8413d7a2413fde", "fetched_at": "2026-08-28T04:05:46.099507+00:00", "kind": "readme", "missing": false, "url": "https://github.com/alexreardon/tiny-invariant"}, {"content_hash": "4e88b78ae15bc4ef0256e83479a24f97e53172a439535bca24341ced6ce49e13", "fetched_at": "2026-08-29T10:54:50.559832+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/tiny-invariant"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:05:46.099507+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T03:15:38.273555+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a06e464581f1709ae4bccbc4f13f9e3e64904495d5c2d8376f8413d7a2413fde", "fetched_at": "2026-08-28T04:05:46.099507+00:00", "kind": "readme", "missing": false, "url": "https://github.com/alexreardon/tiny-invariant"}, {"content_hash": "4e88b78ae15bc4ef0256e83479a24f97e53172a439535bca24341ced6ce49e13", "fetched_at": "2026-08-29T10:54:50.559832+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/tiny-invariant"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T03:15:38.273555+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a06e464581f1709ae4bccbc4f13f9e3e64904495d5c2d8376f8413d7a2413fde", "fetched_at": "2026-08-28T04:05:46.099507+00:00", "kind": "readme", "missing": false, "url": "https://github.com/alexreardon/tiny-invariant"}, {"content_hash": "4e88b78ae15bc4ef0256e83479a24f97e53172a439535bca24341ced6ce49e13", "fetched_at": "2026-08-29T10:54:50.559832+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/tiny-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:05:46.099507+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:05:46.099507+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:05:46.099507+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T03:15:38.273555+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a06e464581f1709ae4bccbc4f13f9e3e64904495d5c2d8376f8413d7a2413fde", "fetched_at": "2026-08-28T04:05:46.099507+00:00", "kind": "readme", "missing": false, "url": "https://github.com/alexreardon/tiny-invariant"}, {"content_hash": "4e88b78ae15bc4ef0256e83479a24f97e53172a439535bca24341ced6ce49e13", "fetched_at": "2026-08-29T10:54:50.559832+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/tiny-invariant"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:05:46.099507+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:05:46.099507+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T03:15:38.273555+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a06e464581f1709ae4bccbc4f13f9e3e64904495d5c2d8376f8413d7a2413fde", "fetched_at": "2026-08-28T04:05:46.099507+00:00", "kind": "readme", "missing": false, "url": "https://github.com/alexreardon/tiny-invariant"}, {"content_hash": "4e88b78ae15bc4ef0256e83479a24f97e53172a439535bca24341ced6ce49e13", "fetched_at": "2026-08-29T10:54:50.559832+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/tiny-invariant"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:05:46.099507+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:05:46.099507+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:05:46.099507+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T03:15:38.273555+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a06e464581f1709ae4bccbc4f13f9e3e64904495d5c2d8376f8413d7a2413fde", "fetched_at": "2026-08-28T04:05:46.099507+00:00", "kind": "readme", "missing": false, "url": "https://github.com/alexreardon/tiny-invariant"}, {"content_hash": "4e88b78ae15bc4ef0256e83479a24f97e53172a439535bca24341ced6ce49e13", "fetched_at": "2026-08-29T10:54:50.559832+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/tiny-invariant"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:05:46.099507+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:05:46.099507+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T03:15:38.273555+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a06e464581f1709ae4bccbc4f13f9e3e64904495d5c2d8376f8413d7a2413fde", "fetched_at": "2026-08-28T04:05:46.099507+00:00", "kind": "readme", "missing": false, "url": "https://github.com/alexreardon/tiny-invariant"}, {"content_hash": "4e88b78ae15bc4ef0256e83479a24f97e53172a439535bca24341ced6ce49e13", "fetched_at": "2026-08-29T10:54:50.559832+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/tiny-invariant"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T03:15:38.273555+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a06e464581f1709ae4bccbc4f13f9e3e64904495d5c2d8376f8413d7a2413fde", "fetched_at": "2026-08-28T04:05:46.099507+00:00", "kind": "readme", "missing": false, "url": "https://github.com/alexreardon/tiny-invariant"}, {"content_hash": "4e88b78ae15bc4ef0256e83479a24f97e53172a439535bca24341ced6ce49e13", "fetched_at": "2026-08-29T10:54:50.559832+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/tiny-invariant"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T03:15:38.273555+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a06e464581f1709ae4bccbc4f13f9e3e64904495d5c2d8376f8413d7a2413fde", "fetched_at": "2026-08-28T04:05:46.099507+00:00", "kind": "readme", "missing": false, "url": "https://github.com/alexreardon/tiny-invariant"}, {"content_hash": "4e88b78ae15bc4ef0256e83479a24f97e53172a439535bca24341ced6ce49e13", "fetched_at": "2026-08-29T10:54:50.559832+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/tiny-invariant"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T03:15:38.273555+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a06e464581f1709ae4bccbc4f13f9e3e64904495d5c2d8376f8413d7a2413fde", "fetched_at": "2026-08-28T04:05:46.099507+00:00", "kind": "readme", "missing": false, "url": "https://github.com/alexreardon/tiny-invariant"}, {"content_hash": "4e88b78ae15bc4ef0256e83479a24f97e53172a439535bca24341ced6ce49e13", "fetched_at": "2026-08-29T10:54:50.559832+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/tiny-invariant"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-03T02:39:23.370411+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 3060, "days_push": 770, "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}}