# Purify: 5.2 out of 10

Reasonable, with limits. 8th of 9 in [Typed errors and functional programming](https://elestia.ai/opensource/typed-errors/index.md).

Purify (purify-ts) is a small, readable TypeScript library with Maybe, Either, their async forms and a built-in Codec. It works, but one maintainer keeps it going with a few commits a year, and three recent releases shipped broken ESM builds. For most new projects, neverthrow, True Myth or Effect is the safer pick.

**Best for:** Teams that already use Purify, or that want a small Maybe/Either API with method chaining and accept a slow-moving, single-maintainer project.

## Scores

- **Overall: 5.2** (likely 4.1 to 6.3)
  - Claude Opus 5.5 (4.5): Purify is pleasant to use and still works, but maintenance has slowed to a trickle. Recent releases have been fragile, and few projects use it. neverthrow or True Myth give a similar Result/Maybe API with more users, and Effect is moving forward fast. Keep it where it already runs; for new work, most teams should pick a peer.
  - GPT-6.2 Sol (5.8): Purify is a reasonable choice when a project wants Either, Maybe, and codecs to work together through a small API. For most new projects focused on typed errors, True Myth has more active maintenance and built-in async retries and timeouts. Purify's slow release cadence, repeated ESM breakage, and open Codec reports lower confidence in future upgrades, even as installs have grown.
- **Needed by many: 4.4** (likely 3.3 to 5.6)
  - Claude Opus 5.5 (4.0): Typed error handling with Maybe/Either types is something many TypeScript developers might want. Only a minority adopt a library for it. Purify's take on functional programming is general-purpose and works on any runtime, so it is no narrower than its category.
  - GPT-6.2 Sol (4.8): Typed failures are useful in browser and server code that parses input, calls APIs, or applies business rules. Purify fits teams that want to represent those failures with chainable result objects. TypeScript use is well documented, but surveys give little indication of how many teams need a dedicated result library.
- **Helps a lot: 6.2** (likely 5.2 to 7.3)
  - Claude Opus 5.5 (5.5): It offers a clean, well-typed API for Maybe, Either, the async variants, and a Codec for runtime decoding. Its scope is smaller than Effect's or fp-ts's, and its Codec is weaker than Zod or Valibot. Three broken ESM releases and open Codec bugs lower confidence in release quality.
  - GPT-6.2 Sol (6.9): Version 2.1.4 covers synchronous and asynchronous composition with short, documented examples, and Codec shares the same Either type. Mixed Left and Right returns can need annotations, and unexpected throws can escape EitherAsync's declared error type. Users also report edge cases in Codec decoding and error parsing. Comparative microbenchmarks show competitive performance in some operations, with limited evidence from real workloads or AI-generated code.
- **Holds up over time: 3.9** (likely 2.8 to 5.4)
  - Claude Opus 5.5 (3.5): There were only 3 commits and 2 releases in the last year, from what looks like a single maintainer with no visible funding. Recent bug reports have had no reply, and the Scorecard 'Maintained' check scores 0. The project is not abandoned, but the ecosystem is moving toward Effect, neverthrow and newer Result libraries.
  - GPT-6.2 Sol (4.3): Purify recorded three commits and two releases in the past year, and its last release was in December 2025. Version 2.1.4 fixed a broken ESM build within four days, but earlier patches had the same packaging problem and an August 2026 Codec report remains open. The small API and reported sponsorship give it some staying power, while recent releases depend on one visible maintainer and the project has no dated roadmap.
- **Used widely: 3.6** (likely 2.4 to 4.9)
  - Claude Opus 5.5 (3.5): It has about 770k downloads per 4 weeks, up 4.7x from a year ago, slightly above the 4.1 median, so it holds its ground but no more. There are only 134 dependent repositories and 68 packages, far below fp-ts (48,975), True Myth (4,565) and neverthrow (761). It has no Hacker News or Bluesky attention, so a few thousand projects at most choose it directly.
  - GPT-6.2 Sol (3.7): Four-week downloads rose from 164,174 to 769,496, a 4.69× increase against the catalog's 4.1× median. That suggests a modest gain in relative install share. Ecosyste.ms found 134 repositories and 68 packages, with fewer tracked repositories than neverthrow or True Myth and little recent public attention. Repeat installs, transitive installs, and incomplete repository coverage leave the number of projects choosing Purify uncertain.
- **Vouched for: 4.1** (likely 2.9 to 5.2)
  - Claude Opus 5.5 (3.0): The production users are self-reported in a GitHub thread, mostly small companies from 2020–2024. The largest name there is Amsterdam Schiphol Airport, which uses it for an operational dashboard. Current independent comparisons from 2026 cover Effect, fp-ts and neverthrow and leave Purify out.
  - GPT-6.2 Sol (5.1): APITable declares Purify as a direct dependency, and a Schiphol Airport dashboard developer reported choosing it because teammates could learn it easily. Cisco also listed an older version in a product's open-source notices. The production reports are mostly historical, and external benchmarks and user discussions provide limited evidence of current satisfaction.
- **Safe: 5.6** (likely 4.5 to 7.1)
  - Claude Opus 5.5 (6.0): It has no known advisories, one runtime dependency and a permissive ISC licence. On the other side, the OpenSSF Scorecard is weak at 2.9, with no branch protection, code review, security policy or pinned dependencies, and one person publishes. Broken builds that reached npm show that release checks are loose.
  - GPT-6.2 Sol (5.2): The ISC licence is permissive, the sole dependency is a type declarations package, and OSV lists zero advisories. An open report describes unsafe handling of some object inputs in Codec, with impact depending on how an application uses decoded data. Scorecard gives Purify 2.9 out of 10, with weak code review, branch protection, and workflow controls. The repo has no published security policy, and the visible release history and publishing script give limited assurance about who can publish and how provenance is verified.

## Good

- Its chainable Maybe, Either, MaybeAsync and EitherAsync API is easier to learn than fp-ts's pipe-based style.
- A built-in Codec module decodes JSON at runtime straight into Either values.
- It is small, with one dependency, an ISC licence and no known advisories.
- Its types are good, and it added support for TypeScript 5.5 type guards.

## Bad

- Maintenance is thin: 3 commits in the last year, and recent bug reports have had no response.
- Three releases since v2 (2.0.2, 2.1.1 and 2.1.3) shipped broken ESM builds and were marked 'DO NOT USE'.
- Few projects use it next to its peers: about 134 dependent repositories, against thousands for fp-ts, True Myth and ts-pattern.
- Its Codec is weaker than dedicated validators such as Zod or Valibot, and still has open bugs in parsing edge cases.

## The numbers

- Downloads, 4 weeks: 769k
- In a year: ×4.7
- GitHub stars: 1.6k
- Commits, 12 months: 3
- Last npm release: Dec 2025
- Advisories, 24 months: 0
- Licence: ISC
- GitHub: https://github.com/gigobyte/purify
- npm: https://www.npmjs.com/package/purify-ts

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
