{"adoption": {"forks": 42, "observed_at": "2026-08-28T04:05:55.903991+00:00", "stars": 1931}, "canonical_url": "https://ross.abutalabs.com/products/better-result", "card": {"archived": false, "artifact_type": "library", "description": "Lightweight Result type for TypeScript with generator-based composition.", "domain": ["developer-tools", "web-development", "programming-languages"], "enriched": true, "function": ["error-handling"], "health_score": 99, "homepage": null, "language": "TypeScript", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["dmmulroy/better-result"], "name": "dmmulroy/better-result", "platform": ["bun", "cross-platform"], "pushed_at": "2026-08-23T17:37:03+00:00", "repo": "dmmulroy/better-result", "stars": 1931, "tags": ["result-type", "typescript", "functional-programming", "generator-composition", "tagged-errors", "esm-only", "zero-dependencies", "nodejs", "deno"], "topics": ["error-handling", "result-type", "rust", "try-catch", "typescript"], "urls": [], "use_cases": ["handle errors explicitly in TypeScript instead of try-catch", "write multi-step async workflows that stop on first failure", "define typed tagged error classes for domain failures", "validate input like parsing a port number with typed errors", "retry flaky async operations with error handling", "map and chain results with ok/err matching"], "what_it_is": "A lightweight TypeScript library providing a typed Result<T, E> type that makes expected failures explicit in function signatures. It supports generator-based composition with yield* for writing multi-step workflows that short-circuit on the first error, plus tagged errors, async support, and retry utilities.", "when_to_avoid": ["your codebase relies on exception-based error handling and cannot adopt Result patterns", "you need a full effect system with dependency injection, resources, or structured concurrency", "you target TypeScript older than 5.4 or need CommonJS support"], "when_to_choose": ["you want Rust-style Result semantics in TypeScript with zero runtime dependencies", "you prefer explicit error types over thrown exceptions for expected failures", "you want generator-based do-notation for sequential error-prone steps", "you need an ESM-only, lightweight alternative to heavier effect libraries"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/better-result", "repo": "dmmulroy/better-result", "role": "main", "score": 82}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:05:55.903991+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T03:08:42.181156+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "488ec1f680cbd3fb0d6c7224aad516c15d269c39a2fce8196946408a05a134af", "fetched_at": "2026-08-28T04:05:55.903991+00:00", "kind": "readme", "missing": false, "url": "https://github.com/dmmulroy/better-result"}, {"content_hash": "26f157e79ed15865a18b01d945f8c4ee4fa70b4c58b02441a6986f12e9512a7f", "fetched_at": "2026-08-29T10:48:31.664612+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/better-result"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:05:55.903991+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T03:08:42.181156+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "488ec1f680cbd3fb0d6c7224aad516c15d269c39a2fce8196946408a05a134af", "fetched_at": "2026-08-28T04:05:55.903991+00:00", "kind": "readme", "missing": false, "url": "https://github.com/dmmulroy/better-result"}, {"content_hash": "26f157e79ed15865a18b01d945f8c4ee4fa70b4c58b02441a6986f12e9512a7f", "fetched_at": "2026-08-29T10:48:31.664612+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/better-result"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T03:08:42.181156+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "488ec1f680cbd3fb0d6c7224aad516c15d269c39a2fce8196946408a05a134af", "fetched_at": "2026-08-28T04:05:55.903991+00:00", "kind": "readme", "missing": false, "url": "https://github.com/dmmulroy/better-result"}, {"content_hash": "26f157e79ed15865a18b01d945f8c4ee4fa70b4c58b02441a6986f12e9512a7f", "fetched_at": "2026-08-29T10:48:31.664612+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/better-result"}], "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:55.903991+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:05:55.903991+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:05:55.903991+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T03:08:42.181156+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "488ec1f680cbd3fb0d6c7224aad516c15d269c39a2fce8196946408a05a134af", "fetched_at": "2026-08-28T04:05:55.903991+00:00", "kind": "readme", "missing": false, "url": "https://github.com/dmmulroy/better-result"}, {"content_hash": "26f157e79ed15865a18b01d945f8c4ee4fa70b4c58b02441a6986f12e9512a7f", "fetched_at": "2026-08-29T10:48:31.664612+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/better-result"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:05:55.903991+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:05:55.903991+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T03:08:42.181156+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "488ec1f680cbd3fb0d6c7224aad516c15d269c39a2fce8196946408a05a134af", "fetched_at": "2026-08-28T04:05:55.903991+00:00", "kind": "readme", "missing": false, "url": "https://github.com/dmmulroy/better-result"}, {"content_hash": "26f157e79ed15865a18b01d945f8c4ee4fa70b4c58b02441a6986f12e9512a7f", "fetched_at": "2026-08-29T10:48:31.664612+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/better-result"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:05:55.903991+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:05:55.903991+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:05:55.903991+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T03:08:42.181156+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "488ec1f680cbd3fb0d6c7224aad516c15d269c39a2fce8196946408a05a134af", "fetched_at": "2026-08-28T04:05:55.903991+00:00", "kind": "readme", "missing": false, "url": "https://github.com/dmmulroy/better-result"}, {"content_hash": "26f157e79ed15865a18b01d945f8c4ee4fa70b4c58b02441a6986f12e9512a7f", "fetched_at": "2026-08-29T10:48:31.664612+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/better-result"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:05:55.903991+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:05:55.903991+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T03:08:42.181156+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "488ec1f680cbd3fb0d6c7224aad516c15d269c39a2fce8196946408a05a134af", "fetched_at": "2026-08-28T04:05:55.903991+00:00", "kind": "readme", "missing": false, "url": "https://github.com/dmmulroy/better-result"}, {"content_hash": "26f157e79ed15865a18b01d945f8c4ee4fa70b4c58b02441a6986f12e9512a7f", "fetched_at": "2026-08-29T10:48:31.664612+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/better-result"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T03:08:42.181156+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "488ec1f680cbd3fb0d6c7224aad516c15d269c39a2fce8196946408a05a134af", "fetched_at": "2026-08-28T04:05:55.903991+00:00", "kind": "readme", "missing": false, "url": "https://github.com/dmmulroy/better-result"}, {"content_hash": "26f157e79ed15865a18b01d945f8c4ee4fa70b4c58b02441a6986f12e9512a7f", "fetched_at": "2026-08-29T10:48:31.664612+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/better-result"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T03:08:42.181156+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "488ec1f680cbd3fb0d6c7224aad516c15d269c39a2fce8196946408a05a134af", "fetched_at": "2026-08-28T04:05:55.903991+00:00", "kind": "readme", "missing": false, "url": "https://github.com/dmmulroy/better-result"}, {"content_hash": "26f157e79ed15865a18b01d945f8c4ee4fa70b4c58b02441a6986f12e9512a7f", "fetched_at": "2026-08-29T10:48:31.664612+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/better-result"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T03:08:42.181156+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "488ec1f680cbd3fb0d6c7224aad516c15d269c39a2fce8196946408a05a134af", "fetched_at": "2026-08-28T04:05:55.903991+00:00", "kind": "readme", "missing": false, "url": "https://github.com/dmmulroy/better-result"}, {"content_hash": "26f157e79ed15865a18b01d945f8c4ee4fa70b4c58b02441a6986f12e9512a7f", "fetched_at": "2026-08-29T10:48:31.664612+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/better-result"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 99, "longevity": 16, "rhythm": 97}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 237, "days_push": 10, "days_rel": 22, "gap_med": 2.0, "n_releases_24m": 21}, "score": 82, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}