# byethrow: 6.6 out of 10

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

byethrow (@praha/byethrow) is a small, tree-shakable Result library from the Japanese company PrAha. Results are plain objects, you compose them with pipe, and one API covers both sync and async code. It is actively built and well designed, but it is young, still at 0.x, and has few users. Pick it as a modern neverthrow alternative if you accept a small community.

**Best for:** TypeScript teams that want a light, functional, pipe-style Result type with one API for sync and async code and results that serialize cleanly.

## Scores

- **Overall: 6.6** (likely 5.4 to 7.6)
  - Claude Opus 5.5 (6.0): It is a well-designed, actively maintained alternative to the now-stagnant neverthrow, with a modern functional API and good async ergonomics. Its youth, 0.x versioning, small user base and thin outside validation keep it below Effect, and below better-result and neverthrow for most teams. It suits teams that prefer its pipe style and accept a smaller community.
  - GPT-6.2 Sol (7.1): Byethrow is a strong pick for new TypeScript projects that want plain-object Results and a shared API for sync and async code. Effect is a better fit when the same abstraction needs to manage retry schedules and resources. Byethrow's recent breaking change and limited evidence of sustained production use keep it below a category default.
- **Needed by many: 4.7** (likely 3.5 to 5.9)
  - Claude Opus 5.5 (5.0): Typed error handling is useful in many TypeScript codebases, but most developers still use try/catch. Result libraries serve a sizeable but optional group. byethrow is general-purpose and not tied to any framework or runtime.
  - GPT-6.2 Sol (4.3): Typed Results are useful across frontend and backend TypeScript, especially when callers need to distinguish several expected failures. Byethrow works without a specific framework and can be adopted one function at a time. The survey measures TypeScript use, so the share of developers who need a dedicated Result library is harder to estimate.
- **Helps a lot: 7.1** (likely 6.0 to 8.1)
  - Claude Opus 5.5 (6.5): The API is clean and complete: plain-object results, pipe composition, andThrough and orThrough, do and bind, collect, inference helpers, and automatic promotion from sync to async. Its docs are good, and an MCP server helps AI agents. Against that, there is no method chaining, a pre-1.0 API, and few users testing edge cases. It also lacks the depth of Effect and the familiarity of neverthrow.
  - GPT-6.2 Sol (7.7): Version 0.13.0 combines typed error propagation, native promises, and error aggregation in a small API. Unexpected callback exceptions can still escape, and async schemas fall outside built-in parsing. The versioned docs give agents concrete examples, but published measurements of agent accuracy and runtime performance are scarce.
- **Holds up over time: 6.5** (likely 5.1 to 7.7)
  - Claude Opus 5.5 (6.5): Activity is high: 806 commits, 33 releases, more than 1,000 merged PRs and few open issues. The repository belongs to a company, not a single person. The project is only 18 months old, still pre-1.0, and has 9 contributors, so it depends on PrAha's continued interest.
  - GPT-6.2 Sol (6.5): PrAha lists Byethrow among its projects, and the core package shipped nine versions in the past year, more recently than neverthrow. The core release cadence slowed between June and October. The October release fixed a user-reported inference mismatch after more than a year by changing how the Result constructors handle promises. The small maintainer group and short pre-1.0 history make future upgrade costs hard to predict.
- **Used widely: 3.3** (likely 2.1 to 4.6)
  - Claude Opus 5.5 (3.0): Downloads reached about 116k per 4 weeks, up roughly 11x in a year, well above the 4.1x median. In absolute terms that is tiny next to its peers, and it has only 383 stars. Online attention is minimal: two Show HN posts got one point each, and there are two Bluesky posts. Its use looks concentrated in Japan's TypeScript community.
  - GPT-6.2 Sol (3.6): Four-week downloads rose from about 10,600 to 116,400, or 10.9 times year over year against the catalog median of 4.1 times. That suggests Byethrow is gaining ground from a small base, with substantially fewer installs and stars than neverthrow or True Myth. A few thousand direct adopters is a rough estimate given automated installs, sparse social activity, and the missing dependent count.
- **Vouched for: 3.3** (likely 2.0 to 4.9)
  - Claude Opus 5.5 (3.0): Outside validation is limited to a few independent blog overviews and a tutorial that mentions it in passing. There are no known large production users, no survey data and no independent benchmarks. PrAha uses it itself, and that is the main backing.
  - GPT-6.2 Sol (3.5): The ccusage CLI used Byethrow in its TypeScript data loader before moving its execution core to Rust. The unthrown comparison gives Byethrow credit for its lightweight pipeline API and identifies a concrete limit around unexpected exceptions. Public evidence of current production use, developer satisfaction, and measured performance remains thin.
- **Safe: 7.8** (likely 6.6 to 8.8)
  - Claude Opus 5.5 (7.5): It has an MIT licence, no advisories, one runtime dependency and a small code surface. Releases go out through Changesets in a company organization. There is no OpenSSF Scorecard data, and the release process and 2FA practices cannot be checked from here, so the range stays wide.
  - GPT-6.2 Sol (8.0): The MIT-licensed core declares one dependency, and the snapshot records zero OSV advisories. GitHub Actions publishes releases, and the package manifest enables npm provenance. Two listed npm maintainers, no published security policy, and no OpenSSF Scorecard leave some uncertainty about the project's controls and response process.

## Good

- Results are plain, serializable objects, so they cross server and client boundaries such as React Server Actions without trouble.
- One set of functions (map, andThen, andThrough) handles both sync values and Promises, with no separate async API like neverthrow's ResultAsync.
- Development is very active, with 806 commits and 33 releases in the last year, backed by a company.
- The ecosystem around it includes docs in English and Japanese, a testing package, an Oxlint plugin and an MCP server for AI agents.

## Bad

- It is still at 0.x (0.13.0), so breaking changes between minor versions are possible.
- Its user base is small: about 116k downloads in 4 weeks against tens of millions for neverthrow, better-result and Effect.
- There are no method chains. Every operation goes through Result.pipe and standalone functions, which some users find verbose.
- Almost no independent production reports or benchmarks exist. Most write-ups come from the authors.

## The numbers

- Downloads, 4 weeks: 116k
- In a year: ×11
- GitHub stars: 383
- Commits, 12 months: 806
- Last npm release: Oct 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/praha-inc/byethrow
- npm: https://www.npmjs.com/package/@praha/byethrow

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.
