{"adoption": {"forks": 153, "observed_at": "2026-08-28T04:05:28.898423+00:00", "stars": 1733}, "canonical_url": "https://ross.abutalabs.com/products/refined", "card": {"archived": false, "artifact_type": "library", "description": "Refinement types for Scala", "domain": ["programming-languages", "developer-tools"], "enriched": true, "function": ["type-system", "form-handling"], "health_score": 98, "homepage": null, "language": "Scala", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["fthomas/refined"], "name": "fthomas/refined", "platform": ["jvm"], "pushed_at": "2026-08-23T17:59:34+00:00", "repo": "fthomas/refined", "stars": 1733, "tags": ["refinement-types", "typelevel", "scala", "compile-time-validation", "type-safety"], "topics": ["refinement-types", "scala", "typelevel"], "urls": [], "use_cases": ["enforce that an Int is positive at compile time", "validate runtime values against predicates and get Either results", "constrain string values like non-empty or matching a regex via types", "convert between refined types when predicates imply each other", "catch invalid domain values as compile errors instead of runtime bugs"], "what_it_is": "refined is a Scala library for refinement types, letting you attach type-level predicates to base types so value constraints are checked at compile time (for literals) or runtime (for arbitrary values). It is a port of the Haskell refined library and includes inference rules for converting between compatible refined types.", "when_to_avoid": ["you work outside the Scala/JVM ecosystem", "your team finds type-level predicates too complex for the codebase", "you need validation in dynamically typed languages"], "when_to_choose": ["you write Scala and want value constraints encoded in types", "you want compile-time validation of literals and safe conversions between constrained types", "you prefer typelevel-style functional programming idioms"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/refined", "repo": "fthomas/refined", "role": "main", "score": 85}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:05:28.898423+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T03:31:27.389371+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "942373dcd846c5e25d1528b358e9bbe5115120b6871536b4c23d9972d95a3354", "fetched_at": "2026-08-28T04:05:28.898423+00:00", "kind": "readme", "missing": false, "url": "https://github.com/fthomas/refined"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:05:28.898423+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T03:31:27.389371+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "942373dcd846c5e25d1528b358e9bbe5115120b6871536b4c23d9972d95a3354", "fetched_at": "2026-08-28T04:05:28.898423+00:00", "kind": "readme", "missing": false, "url": "https://github.com/fthomas/refined"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T03:31:27.389371+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "942373dcd846c5e25d1528b358e9bbe5115120b6871536b4c23d9972d95a3354", "fetched_at": "2026-08-28T04:05:28.898423+00:00", "kind": "readme", "missing": false, "url": "https://github.com/fthomas/refined"}], "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:28.898423+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:05:28.898423+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:05:28.898423+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T03:31:27.389371+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "942373dcd846c5e25d1528b358e9bbe5115120b6871536b4c23d9972d95a3354", "fetched_at": "2026-08-28T04:05:28.898423+00:00", "kind": "readme", "missing": false, "url": "https://github.com/fthomas/refined"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:05:28.898423+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:05:28.898423+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T03:31:27.389371+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "942373dcd846c5e25d1528b358e9bbe5115120b6871536b4c23d9972d95a3354", "fetched_at": "2026-08-28T04:05:28.898423+00:00", "kind": "readme", "missing": false, "url": "https://github.com/fthomas/refined"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:05:28.898423+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:05:28.898423+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:05:28.898423+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T03:31:27.389371+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "942373dcd846c5e25d1528b358e9bbe5115120b6871536b4c23d9972d95a3354", "fetched_at": "2026-08-28T04:05:28.898423+00:00", "kind": "readme", "missing": false, "url": "https://github.com/fthomas/refined"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:05:28.898423+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:05:28.898423+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T03:31:27.389371+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "942373dcd846c5e25d1528b358e9bbe5115120b6871536b4c23d9972d95a3354", "fetched_at": "2026-08-28T04:05:28.898423+00:00", "kind": "readme", "missing": false, "url": "https://github.com/fthomas/refined"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T03:31:27.389371+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "942373dcd846c5e25d1528b358e9bbe5115120b6871536b4c23d9972d95a3354", "fetched_at": "2026-08-28T04:05:28.898423+00:00", "kind": "readme", "missing": false, "url": "https://github.com/fthomas/refined"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T03:31:27.389371+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "942373dcd846c5e25d1528b358e9bbe5115120b6871536b4c23d9972d95a3354", "fetched_at": "2026-08-28T04:05:28.898423+00:00", "kind": "readme", "missing": false, "url": "https://github.com/fthomas/refined"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T03:31:27.389371+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "942373dcd846c5e25d1528b358e9bbe5115120b6871536b4c23d9972d95a3354", "fetched_at": "2026-08-28T04:05:28.898423+00:00", "kind": "readme", "missing": false, "url": "https://github.com/fthomas/refined"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 99, "longevity": 100, "rhythm": 58}, "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": 4133, "days_push": 10, "days_rel": 64, "gap_med": 549, "n_releases_24m": 2}, "score": 85, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}