{"adoption": {"forks": 93, "observed_at": "2026-08-28T04:07:39.660884+00:00", "stars": 3052}, "canonical_url": "https://ross.abutalabs.com/products/sanctuary", "card": {"archived": false, "artifact_type": "library", "description": ":see_no_evil: Refuge from unsafe JavaScript", "domain": ["programming-languages", "developer-tools"], "enriched": true, "function": ["error-handling", "serialization"], "health_score": 20, "homepage": "https://sanctuary.js.org", "language": "JavaScript", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["sanctuary-js/sanctuary"], "name": "sanctuary-js/sanctuary", "platform": ["browser"], "pushed_at": "2024-11-10T16:48:46+00:00", "repo": "sanctuary-js/sanctuary", "stars": 3052, "tags": ["functional-programming", "fantasy-land", "maybe-type", "either-type", "type-safety", "haskell-inspired", "currying", "algorithms", "nodejs", "javascript"], "topics": ["sanctuary", "fantasy-land"], "urls": [], "use_cases": ["avoid null checks in JavaScript", "handle possibly-failing operations like head of an empty array safely", "write pure functional programs in JavaScript", "use Maybe and Either types with Fantasy Land compatibility", "replace partial functions from Ramda with total functions", "add runtime type checking to functional JavaScript code"], "what_it_is": "Sanctuary is a JavaScript functional programming library inspired by Haskell and PureScript, offering a stricter, safer alternative to Ramda. It provides total functions and Fantasy Land-compatible Maybe and Either data types that eliminate null checks and run-time type errors.", "when_to_avoid": ["you want an object-oriented or Scala-like style (consider Folktale)", "your team is not comfortable with functional programming concepts", "you need a lightweight utility library with minimal learning curve"], "when_to_choose": ["you want Haskell-style functional programming in JavaScript", "you need total functions that never return undefined, NaN, or Infinity unexpectedly", "you want composable error handling via Maybe and Either", "you prefer stricter, safer code than Ramda provides"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/sanctuary", "repo": "sanctuary-js/sanctuary", "role": "main", "score": 23}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:07:39.660884+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T07:28:53.429775+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "bddc2b1ffc4fc83801cfaf2316af08eb8cb1bf14ec08383faed967bb8ad8c8ac", "fetched_at": "2026-08-28T04:07:39.660884+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sanctuary-js/sanctuary"}, {"content_hash": "6c2e80da203caa6b342918083e763ecd906712a436f83db555f5cc0b2d37be1a", "fetched_at": "2026-08-29T09:44:16.666979+00:00", "kind": "homepage", "missing": false, "url": "https://sanctuary.js.org"}, {"content_hash": "196772db305d7b6d46a1733ba304d47fa65c3a74c90d4d936624f380cd75cf59", "fetched_at": "2026-08-29T09:44:16.677385+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/sanctuary"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:07:39.660884+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T07:28:53.429775+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "bddc2b1ffc4fc83801cfaf2316af08eb8cb1bf14ec08383faed967bb8ad8c8ac", "fetched_at": "2026-08-28T04:07:39.660884+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sanctuary-js/sanctuary"}, {"content_hash": "6c2e80da203caa6b342918083e763ecd906712a436f83db555f5cc0b2d37be1a", "fetched_at": "2026-08-29T09:44:16.666979+00:00", "kind": "homepage", "missing": false, "url": "https://sanctuary.js.org"}, {"content_hash": "196772db305d7b6d46a1733ba304d47fa65c3a74c90d4d936624f380cd75cf59", "fetched_at": "2026-08-29T09:44:16.677385+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/sanctuary"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T07:28:53.429775+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "bddc2b1ffc4fc83801cfaf2316af08eb8cb1bf14ec08383faed967bb8ad8c8ac", "fetched_at": "2026-08-28T04:07:39.660884+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sanctuary-js/sanctuary"}, {"content_hash": "6c2e80da203caa6b342918083e763ecd906712a436f83db555f5cc0b2d37be1a", "fetched_at": "2026-08-29T09:44:16.666979+00:00", "kind": "homepage", "missing": false, "url": "https://sanctuary.js.org"}, {"content_hash": "196772db305d7b6d46a1733ba304d47fa65c3a74c90d4d936624f380cd75cf59", "fetched_at": "2026-08-29T09:44:16.677385+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/sanctuary"}], "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:07:39.660884+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:07:39.660884+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:07:39.660884+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T07:28:53.429775+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "bddc2b1ffc4fc83801cfaf2316af08eb8cb1bf14ec08383faed967bb8ad8c8ac", "fetched_at": "2026-08-28T04:07:39.660884+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sanctuary-js/sanctuary"}, {"content_hash": "6c2e80da203caa6b342918083e763ecd906712a436f83db555f5cc0b2d37be1a", "fetched_at": "2026-08-29T09:44:16.666979+00:00", "kind": "homepage", "missing": false, "url": "https://sanctuary.js.org"}, {"content_hash": "196772db305d7b6d46a1733ba304d47fa65c3a74c90d4d936624f380cd75cf59", "fetched_at": "2026-08-29T09:44:16.677385+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/sanctuary"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:07:39.660884+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:07:39.660884+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T07:28:53.429775+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "bddc2b1ffc4fc83801cfaf2316af08eb8cb1bf14ec08383faed967bb8ad8c8ac", "fetched_at": "2026-08-28T04:07:39.660884+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sanctuary-js/sanctuary"}, {"content_hash": "6c2e80da203caa6b342918083e763ecd906712a436f83db555f5cc0b2d37be1a", "fetched_at": "2026-08-29T09:44:16.666979+00:00", "kind": "homepage", "missing": false, "url": "https://sanctuary.js.org"}, {"content_hash": "196772db305d7b6d46a1733ba304d47fa65c3a74c90d4d936624f380cd75cf59", "fetched_at": "2026-08-29T09:44:16.677385+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/sanctuary"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:07:39.660884+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:07:39.660884+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:07:39.660884+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T07:28:53.429775+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "bddc2b1ffc4fc83801cfaf2316af08eb8cb1bf14ec08383faed967bb8ad8c8ac", "fetched_at": "2026-08-28T04:07:39.660884+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sanctuary-js/sanctuary"}, {"content_hash": "6c2e80da203caa6b342918083e763ecd906712a436f83db555f5cc0b2d37be1a", "fetched_at": "2026-08-29T09:44:16.666979+00:00", "kind": "homepage", "missing": false, "url": "https://sanctuary.js.org"}, {"content_hash": "196772db305d7b6d46a1733ba304d47fa65c3a74c90d4d936624f380cd75cf59", "fetched_at": "2026-08-29T09:44:16.677385+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/sanctuary"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:07:39.660884+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:07:39.660884+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T07:28:53.429775+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "bddc2b1ffc4fc83801cfaf2316af08eb8cb1bf14ec08383faed967bb8ad8c8ac", "fetched_at": "2026-08-28T04:07:39.660884+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sanctuary-js/sanctuary"}, {"content_hash": "6c2e80da203caa6b342918083e763ecd906712a436f83db555f5cc0b2d37be1a", "fetched_at": "2026-08-29T09:44:16.666979+00:00", "kind": "homepage", "missing": false, "url": "https://sanctuary.js.org"}, {"content_hash": "196772db305d7b6d46a1733ba304d47fa65c3a74c90d4d936624f380cd75cf59", "fetched_at": "2026-08-29T09:44:16.677385+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/sanctuary"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T07:28:53.429775+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "bddc2b1ffc4fc83801cfaf2316af08eb8cb1bf14ec08383faed967bb8ad8c8ac", "fetched_at": "2026-08-28T04:07:39.660884+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sanctuary-js/sanctuary"}, {"content_hash": "6c2e80da203caa6b342918083e763ecd906712a436f83db555f5cc0b2d37be1a", "fetched_at": "2026-08-29T09:44:16.666979+00:00", "kind": "homepage", "missing": false, "url": "https://sanctuary.js.org"}, {"content_hash": "196772db305d7b6d46a1733ba304d47fa65c3a74c90d4d936624f380cd75cf59", "fetched_at": "2026-08-29T09:44:16.677385+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/sanctuary"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T07:28:53.429775+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "bddc2b1ffc4fc83801cfaf2316af08eb8cb1bf14ec08383faed967bb8ad8c8ac", "fetched_at": "2026-08-28T04:07:39.660884+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sanctuary-js/sanctuary"}, {"content_hash": "6c2e80da203caa6b342918083e763ecd906712a436f83db555f5cc0b2d37be1a", "fetched_at": "2026-08-29T09:44:16.666979+00:00", "kind": "homepage", "missing": false, "url": "https://sanctuary.js.org"}, {"content_hash": "196772db305d7b6d46a1733ba304d47fa65c3a74c90d4d936624f380cd75cf59", "fetched_at": "2026-08-29T09:44:16.677385+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/sanctuary"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T07:28:53.429775+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "bddc2b1ffc4fc83801cfaf2316af08eb8cb1bf14ec08383faed967bb8ad8c8ac", "fetched_at": "2026-08-28T04:07:39.660884+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sanctuary-js/sanctuary"}, {"content_hash": "6c2e80da203caa6b342918083e763ecd906712a436f83db555f5cc0b2d37be1a", "fetched_at": "2026-08-29T09:44:16.666979+00:00", "kind": "homepage", "missing": false, "url": "https://sanctuary.js.org"}, {"content_hash": "196772db305d7b6d46a1733ba304d47fa65c3a74c90d4d936624f380cd75cf59", "fetched_at": "2026-08-29T09:44:16.677385+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/sanctuary"}], "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": 4244, "days_push": 661, "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}}