# Typed errors and functional programming

Handle errors as values, with types that say what can fail. 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.

| Rank | Project | Overall | Needed by many | Helps a lot | Holds up over time | Used widely | Vouched for | Safe | Best for |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | [Effect](https://elestia.ai/opensource/typed-errors/effect/index.md) | 7.9 | 5.2 | 8.4 | 8.5 | 6.0 | 7.3 | 7.6 | TypeScript backend and full-stack teams that will commit to one framework for errors, dependencies, concurrency and schemas. |
| 2 | [better-result](https://elestia.ai/opensource/typed-errors/better-result/index.md) | 7.1 | 5.2 | 7.8 | 6.0 | 5.4 | 4.1 | 8.1 | TypeScript teams that want Rust-style typed errors with generator syntax and tagged errors, without the weight of Effect. |
| 3 | [True Myth](https://elestia.ai/opensource/typed-errors/true-myth/index.md) | 6.9 | 5.0 | 7.5 | 6.7 | 4.5 | 4.7 | 6.8 | Teams that want Rust-style Maybe, Result and async Task types with strong docs and zero dependencies, without adopting a full effect system. |
| 4 | [byethrow](https://elestia.ai/opensource/typed-errors/byethrow/index.md) | 6.6 | 4.7 | 7.1 | 6.5 | 3.3 | 3.3 | 7.8 | TypeScript teams that want a light, functional, pipe-style Result type with one API for sync and async code and results that serialize cleanly. |
| 5 | [ts-pattern](https://elestia.ai/opensource/typed-errors/ts-pattern/index.md) | 6.0 | 4.8 | 5.8 | 6.6 | 5.9 | 6.3 | 7.7 | TypeScript teams that model outcomes and errors as discriminated unions and want the compiler to check that every case is handled. |
| 6 | [neverthrow](https://elestia.ai/opensource/typed-errors/neverthrow/index.md) | 5.9 | 5.1 | 6.9 | 3.6 | 5.4 | 5.6 | 6.6 | Teams that want a familiar, Rust-style Result type with chainable methods and accept a library that no longer changes. |
| 7 | [Boxed](https://elestia.ai/opensource/typed-errors/boxed/index.md) | 5.3 | 4.9 | 6.8 | 4.9 | 2.9 | 4.1 | 7.6 | Front-end teams that want a light Result/Option/Future toolkit, plus AsyncData for UI loading states, without adopting Effect. |
| 8 | [Purify](https://elestia.ai/opensource/typed-errors/purify-ts/index.md) | 5.2 | 4.4 | 6.2 | 3.9 | 3.6 | 4.1 | 5.6 | Teams that already use Purify, or that want a small Maybe/Either API with method chaining and accept a slow-moving, single-maintainer project. |
| 9 | [fp-ts](https://elestia.ai/opensource/typed-errors/fp-ts/index.md) | 3.7 | 4.3 | 6.0 | 2.9 | 5.9 | 4.8 | 6.7 | Teams that keep an existing fp-ts codebase running and are not yet ready to migrate to Effect. |

## The numbers

| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
| --- | --- | --- | --- | --- | --- | --- |
| Effect | 278M | ×12 | 18k | 4.3k | Nov 2026 | 3 |
| better-result | 43M | new | 2k | 97 | Aug 2026 | 0 |
| True Myth | 3.7M | ×2.4 | 1.4k | 286 | May 2026 | 0 |
| byethrow | 116k | ×11 | 383 | 806 | Oct 2026 | 0 |
| ts-pattern | 39M | ×3.2 | 15k | 58 | Oct 2026 | 0 |
| neverthrow | 19M | ×4.9 | 7.8k | 2 | Feb 2025 | 0 |
| Boxed | 36k | new | 767 | 18 | Apr 2026 | 0 |
| Purify | 769k | ×4.7 | 1.6k | 3 | Dec 2025 | 0 |
| fp-ts | 22M | +69% | 12k | 2 | Aug 2025 | 0 |

All categories: https://elestia.ai/opensource/index.md
