byethrow
Reasonable, with limits. 4th of 9 typed errors and functional programming.
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
Overall6.6
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 6.0, likely 5.0 to 7.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.
- peers neverthrow commitsLastYear: neverthrow had only 2 commits last year, which opens room for alternatives
- peers better-result downloadsLast4Weeks: A newer competitor has far more uptake
- dev.to/karibash/why-i-reinvented-a-result-type-library-3ko4: Clear design goals
- npm downloadsLast4Weeks: Fast growth from a small base
GPT-6.2 Sol: 7.1, likely 5.8 to 8.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.
- praha-inc.github.io/byethrow: Documents plain Results and shared pipeline functions.
- github.com/praha-inc/byethrow/releases/tag/%40praha/byethrow%400.13.0: October release changes Promise handling in succeed and fail.
- effect.website/docs/v3/error-management/retrying: Effect documents integrated retry scheduling and resource management.
- github.com/ccusage/ccusage/releases/tag/v20.0.0: The clearest public adoption example later changed its runtime.
Needed by many4.7
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.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.
- category.job: Errors as values: a common but optional pattern
- praha-inc.github.io/byethrow/guide/start/why: General-purpose Result type for JS/TS
GPT-6.2 Sol: 4.3, likely 3.0 to 5.8
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.
- 2025.stateofjs.com/en-US/usage: Survey measures TypeScript use across JavaScript developers.
- praha-inc.github.io/byethrow/guide/start/quick: Shows framework-independent setup and incremental adoption.
Helps a lot7.1
How well does it do the job for those who need it?
Claude Opus 5.5: 6.5, likely 5.5 to 7.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.
- iwasa-kosui.github.io/kamae-ts/en/result-libraries/byethrow.html: Independent overview of pipe, andThrough, do/bind and async promotion
- dev.to/dj_nuo/neverthrow-tutorial-with-a-bit-of-byethrow-2poa: User finds it serializable but more verbose than neverthrow
- dev.to/karibash/why-i-reinvented-a-result-type-library-3ko4: Author's design rationale versus neverthrow
- npm hasTypes: TypeScript-first, ships its own types
GPT-6.2 Sol: 7.7, likely 6.5 to 8.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.
- praha-inc.github.io/byethrow: Shows type-checked pipelines, aggregation, and tree-shakable exports.
- btravstack.github.io/unthrown/explanation/comparison: An external comparison explains how callback exceptions propagate.
- github.com/praha-inc/byethrow/issues/574: Discussion confirms async schema validation can throw.
- praha-inc.github.io/byethrow/guide/ecosystem/llm-integration: Documents the package that supplies coding agents with API examples.
Holds up over time6.5
Will it still be a good choice in two years?
Claude Opus 5.5: 6.5, likely 5.0 to 7.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.
- github commitsLastYear: 806 commits in the last year
- github mergedPullRequests: 1,064 merged PRs, 6 open issues
- npm latestVersion: Still 0.13.0, pre-1.0
- github.com/praha-inc/byethrow: Owned by the PrAha, Inc. organization
GPT-6.2 Sol: 6.5, likely 5.2 to 7.8
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.
- npm versionsLastYear; peers.neverthrow.latestPublishedAt: Nine core versions and a more recent release than neverthrow.
- praha-inc.com/works/byethrow: PrAha lists Byethrow in its portfolio.
- github.com/praha-inc/byethrow/releases: June and October core releases, plus releases for companion packages.
- github.com/praha-inc/byethrow/issues/105: User-reported type mismatch took over a year to resolve.
- socket.dev/npm/package/%40praha/byethrow: Lists two npm maintainers.
Used widely3.3
How many use it, and is that growing?
Claude Opus 5.5: 3.0, likely 2.0 to 4.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.
- npm downloadsLast4Weeks: 116,373, against 10,637 a year ago
- medianDownloadsRatio: Its ~11x growth beats the 4.1x median
- github stars: 383 stars, far below its peers
- hackerNews: Two Show HN posts with 1 point each
GPT-6.2 Sol: 3.6, likely 2.2 to 5.1
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.
- npm downloadsLast4Weeks; npm downloadsSame4WeeksYearAgo; medianDownloadsRatio: Install growth is well above the catalog baseline.
- github stars; peers: 383 stars and considerably smaller install totals than established peers.
- dependents; hackerNews; bluesky: No dependent count, two uncommented HN launches, and two Bluesky links.
Vouched for3.3
Who stands behind it being good?
Claude Opus 5.5: 3.0, likely 2.0 to 4.5
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.
- iwasa-kosui.github.io/kamae-ts/en/result-libraries/byethrow.html: Third-party library guide includes it
- dev.to/dj_nuo/neverthrow-tutorial-with-a-bit-of-byethrow-2poa: Brief independent mention
- dependents: No ecosyste.ms count available
GPT-6.2 Sol: 3.5, likely 2.0 to 5.2
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.
- raw.githubusercontent.com/ccusage/ccusage/v18.0.10/apps/ccusage/src/data-loader.ts: A released ccusage version imports Byethrow in its data loader.
- github.com/ccusage/ccusage/releases/tag/v20.0.0: The CLI later moved its execution core to Rust.
- btravstack.github.io/unthrown/explanation/comparison: A competing library's comparison identifies strengths and runtime limits.
Safe7.8
How safe is it to depend on?
Claude Opus 5.5: 7.5, likely 6.5 to 8.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.
- advisories total: No known advisories
- npm dependencies: One runtime dependency
- scorecard: No Scorecard data
- npm license: MIT
GPT-6.2 Sol: 8.0, likely 6.7 to 9.1
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.
- npm dependencies; npm license; advisories; scorecard: One dependency, MIT, zero recorded advisories, and no Scorecard result.
- raw.githubusercontent.com/praha-inc/byethrow/refs/tags/%40praha/byethrow%400.13.0/packages/byethrow/package.json: The release manifest enables npm provenance.
- socket.dev/npm/package/%40praha/byethrow/versions/0.13.0: Attributes npm publication to GitHub Actions.
- socket.dev/npm/package/%40praha/byethrow: Lists two npm maintainers.
- github.com/praha-inc/byethrow/security/policy: GitHub reports no published security policy.
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
- npm downloads, 4 weeks
- 116k ×11 in a year
- GitHub stars
- 383
- Commits, 12 months
- 806
- npm version
- 0.13.0 Oct 2026
- Versions, 12 months
- 9
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Read on 21 November 2026 from GitHub (praha-inc/byethrow), npm (@praha/byethrow), OSV and the OpenSSF Scorecard.