Latest / Developer tools

better-result

github.com · Package · Maintained

Lightweight Result type for TypeScript with generator-based composition

Visit github.com ↗Share

Stars
2k
Forks
45
Open issues
6
Last commit
Releases
26
Found
10 months ago

GitHub figures as of . They are context, not a ranking.

better-result is a lightweight TypeScript library that represents success and failure as explicit return values, with generator-based composition using yield* that stops on the first failure. Unexpected exceptions still throw, so expected failures stay separate from bugs.

Repository description on GitHub: “Lightweight Result type for TypeScript with generator-based composition.”

What it does

  • Makes success and failure explicit in function signatures
  • Composes multi-step workflows in order with yield*
  • TaggedError classes for expected, named failures

Good for

  • Replace try and catch around expected failures such as bad input
  • Chain several fallible steps and stop at the first failure

Suits: TypeScript developers who want typed handling of expected errors.

What you can try

Add the better-result package to a TypeScript project and import its Result and TaggedError exports.

Install

npm install better-result
pnpm add better-result

Confirmed against the package registry. Read the project’s own instructions before running anything.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw better-result on , when dmmulroy created its repository on GitHub. The oldest published release on GitHub is v1.0.0, dated . Its first tagged release landed the same day it was found. 26 releases have been published in total; the latest is v3.0.1 ().

Day-7 and day-30 updates

Day 7 4 releases shipped

Checked , later than day 7 because tracking began after.

Day 30 11 releases shipped

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

Releases per month, last 24 months (26 in total, busiest month 11).
  1. Repository created on GitHub: dmmulroy/better-result
  2. Found: dmmulroy created its repository on GitHub. GitHub
  3. Release v1.0.0
  4. Release v3.0.0-rc.2 (pre-release)
  5. Release v3.0.0-rc.3 (pre-release)
  6. Release v3.0.0-rc.4 (pre-release)
  7. Release v3.0.0-rc.5 (pre-release)
  8. Release v3.0.0
  9. Release v3.0.1
  10. Day-7 check recorded by Kip (details)
  11. Day-30 check recorded by Kip (details)

Showing the first and the 6 latest of 26 releases. All releases on GitHub

Quick answers

When was better-result released?
Its first tagged release on GitHub is dated 9 Jan 2026. Kip found it on GitHub on 9 Jan 2026.
Is better-result open source?
Its source is public on GitHub at dmmulroy/better-result under the MIT licence.
What does better-result run on?
Library.
Is better-result free?
It is open source, so the code is free to read and run; check the licence for terms.
Is better-result still maintained?
It had a commit or release in the last year, though not in the last 90 days, as of the latest check.

Provenance

SourceRecordLast checked
GitHublisting
official API record
GitHub repositorydmmulroy/better-result
REST API record
GitHub Releasesrelease list
REST API record

Stable ID github-1130779351. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.

Share

Similar tools

More in Developer tools

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.