Ross ROSS = Recommend OSS · open-source software intelligence for agents

sanctuary-js/sanctuary

:see_no_evil: Refuge from unsafe JavaScript observed · 2026-08-28

github.com/sanctuary-js/sanctuary · homepage · JavaScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

23/100

  • Activity 0
  • Release rhythm 8
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 4244
  • days_rel: n/a
  • days_push: 661
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

3052 stars · 93 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

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.

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

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

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

Facets

library · maturity stable

error-handling serialization programming-languages developer-tools browser functional-programming fantasy-land maybe-type either-type type-safety haskell-inspired currying algorithms nodejs javascript

3 sources

Member repositories

RepositoryRoleHealth v2
sanctuary-js/sanctuarymain23

For agents

markdown · JSON · MCP: product_card(name="sanctuary-js/sanctuary")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem