Ross ROSS = Recommend OSS · open-source software intelligence for agents

dmmulroy/better-result

Lightweight Result type for TypeScript with generator-based composition. observed · 2026-08-28

github.com/dmmulroy/better-result · TypeScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

82/100

  • Activity 99
  • Release rhythm 97
  • Longevity 16
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: 2.0
  • age_days: 237
  • days_rel: 22
  • days_push: 10
  • n_releases_24m: 21

Full methodology

Adoption not part of the score

1931 stars · 42 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A lightweight TypeScript library providing a typed Result<T, E> type that makes expected failures explicit in function signatures. It supports generator-based composition with yield* for writing multi-step workflows that short-circuit on the first error, plus tagged errors, async support, and retry utilities.

Use cases

  • handle errors explicitly in TypeScript instead of try-catch
  • write multi-step async workflows that stop on first failure
  • define typed tagged error classes for domain failures
  • validate input like parsing a port number with typed errors
  • retry flaky async operations with error handling
  • map and chain results with ok/err matching

When to choose

  • you want Rust-style Result semantics in TypeScript with zero runtime dependencies
  • you prefer explicit error types over thrown exceptions for expected failures
  • you want generator-based do-notation for sequential error-prone steps
  • you need an ESM-only, lightweight alternative to heavier effect libraries

When to avoid

  • your codebase relies on exception-based error handling and cannot adopt Result patterns
  • you need a full effect system with dependency injection, resources, or structured concurrency
  • you target TypeScript older than 5.4 or need CommonJS support

Facets

library · maturity active

error-handling developer-tools web-development programming-languages bun cross-platform result-type typescript functional-programming generator-composition tagged-errors esm-only zero-dependencies nodejs deno

2 sources

Member repositories

RepositoryRoleHealth v2
dmmulroy/better-resultmain82

For agents

markdown · JSON · MCP: product_card(name="dmmulroy/better-result")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem