better-result
github.com · Package · Maintained
Lightweight Result type for TypeScript with generator-based composition
- Developer tools
- Package
- TypeScript
- Day-7 check
- Day-30 check
- typescript
- error handling
- result type
- rust
- try catch
- generator
- 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-resultpnpm add better-resultConfirmed 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
- 4 releases in the first 7 days: v1.0.0 (9 Jan 2026), v1.0.1 (14 Jan 2026), v2.0.0 (15 Jan 2026), v2.1.0 (15 Jan 2026)
Checked , later than day 7 because tracking began after.
Day 30 11 releases shipped
- 11 releases in the first 30 days: v2.1.0 (15 Jan 2026), v2.3.0 (17 Jan 2026), v2.3.1 (19 Jan 2026), v2.4.0 (20 Jan 2026), v2.5.0 (21 Jan 2026), v2.5.1 (22 Jan 2026), v2.5.2 (25 Jan 2026), v2.6.0 (28 Jan 2026) and earlier ones
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: dmmulroy/better-result
- Found: dmmulroy created its repository on GitHub. GitHub
- Release v1.0.0
- Release v3.0.0-rc.2 (pre-release)
- Release v3.0.0-rc.3 (pre-release)
- Release v3.0.0-rc.4 (pre-release)
- Release v3.0.0-rc.5 (pre-release)
- Release v3.0.0
- Release v3.0.1
- Day-7 check recorded by Kip (details)
- 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
| Source | Record | Last checked |
|---|---|---|
| GitHub | listing official API record | |
| GitHub repository | dmmulroy/better-result REST API record | |
| GitHub Releases | release 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
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.