supermacro/neverthrow
Type-Safe Errors for JS & TypeScript observed · 2026-08-28
Health v2 · maintenance only
64/100
- Activity 67
- Release rhythm 40
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 22.5
- age_days: 2684
- days_rel: 558
- days_push: 200
- n_releases_24m: 5
Adoption not part of the score
7689 stars · 152 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
neverthrow is a TypeScript library providing a type-safe Result type (Ok/Err) for error handling without exceptions, inspired by Rust. It includes ResultAsync, a thenable wrapper for handling asynchronous errors with the same fluent API.
Use cases
- handle errors without try/catch in typescript
- return errors as values instead of throwing exceptions
- type-safe error handling for async functions
- chain fallible operations with map and andThen
- combine multiple results into one
- wrap promises into result types
When to choose
- you want explicit, compiler-enforced error handling in TypeScript
- you prefer functional programming style over exceptions
- you need ergonomic async error handling with thenable Results
When to avoid
- your codebase relies heavily on exception-based error handling
- you want a zero-dependency minimal Result with no extra API surface
- your team is unfamiliar with functional programming patterns
Facets
library · maturity active
error-handling type-system developer-tools web-development programming-languages browser bun cross-platform result-type functional-programming typescript rust-inspired npm-package nodejs deno
2 sources
- readme: https://github.com/supermacro/neverthrow · fetched 2026-08-28 · cb7d934e9041
- registry_npm: https://registry.npmjs.org/neverthrow · fetched 2026-08-29 · 0b3bc3d4a552
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| supermacro/neverthrow | main | 64 |
For agents
markdown · JSON · MCP: product_card(name="supermacro/neverthrow")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem