Packages

Error Handling Packages

Ergonomic error-handling and result-type libraries that make failure states explicit instead of relying on exceptions (thiserror, anyhow).

58 packages

Packages in Error Handling

74Health
Library Cargo

thiserror

A derive macro for ergonomic, zero-boilerplate custom error types in Rust.

5,590
Apache 2.0
Used by 56
79Health
Library npm

react-error-boundary

Reusable React error boundary component that catches rendering errors and shows a fallback UI.

8,000
MIT
Used by 49
69Health
Library Cargo

anyhow

Flexible, idiomatic error handling for Rust applications with a single concrete error type.

6,693
Apache 2.0
Used by 49
48Health
Library Go

errors

Simple Go error handling primitives that add stack traces and context without losing the original cause.

8,256
Other
Used by 32
72Health
Library PyPI

tenacity

A general-purpose Python retrying library that adds configurable retry behavior to almost anything

8,818
Apache 2.0
Used by 23
92Health
Library npm

Effect

A TypeScript library and ecosystem for building robust, type-safe, concurrent applications with a full functional effect system

17,497
MIT
Used by 18
65Health
Library Go

backoff

Exponential backoff and retry for Go, with a generic Retry function, typed errors, and RetryAfter support for rate-limited APIs.

4,094
MIT
Used by 16
63Health
Library Go

go-multierror

A Go library for combining multiple error values into a single, introspectable error.

2,590
MPL-2.0
Used by 15
83Health
Library npm

zod-validation-error

Turns raw Zod validation issues into clear, human-readable error messages.

1,026
MIT
Used by 13
86Health
Library Go

lo

A Lodash-style Go library built on Go 1.18+ generics for working with slices, maps, channels, and functions.

21,443
MIT
Used by 11
62Health
Library npm

serialize-error

Serialize and deserialize JavaScript Error objects into plain, JSON-safe objects and back.

608
MIT
Used by 8
86Health
Library npm

NestJS Terminus

The official health-check module for NestJS applications

747
MIT
Used by 7
41Health
Library Go

gobreaker

A lightweight, thread-safe circuit breaker for Go that wraps any function call to stop cascading failures when a dependency starts failing.

3,710
MIT
Used by 5
83Health
Library Go

retry-go

A lightweight Go library for retrying fallible functions with configurable backoff, jitter, and per-error attempt limits.

2,966
MIT
Used by 5
36Health
Library npm

express-async-errors

A one-line patch that lets Express route handlers throw or reject instead of manually calling next(err).

901
Other
Used by 5
48Health
Library Cargo

eyre

A trait-object based error handling type for idiomatic error reporting in Rust applications

1,787
Other
Used by 4
60Health
Library PyPI

exceptiongroup

A backport of Python 3.11's BaseExceptionGroup and ExceptionGroup classes, letting older Python versions catch and format grouped exceptions.

51
MIT
Used by 4
50Health
Library npm

boom

HTTP-friendly error objects for building consistent, well-formed API error responses in Node.js.

2,921
BSD 3
Used by 3
62Health
Library Go

cockroachdb/errors

A drop-in replacement for pkg/errors and stdlib errors that adds network-portable error types, PII-free Sentry reporting, and rich wrapper composition.

2,479
Apache 2.0
Used by 3
34Health
Library PyPI

retry

A lightweight, dependency-free Python decorator for retrying flaky function calls with configurable delay, backoff, and jitter.

755
Apache 2.0
Used by 3
58Health
Library Go

go-retry

A dependency-free Go library for retrying flakey operations with pluggable backoff and jitter middleware.

723
Apache 2.0
Used by 3
36Health
Library Cargo

backoff

Retry Rust operations with exponential backoff, for both sync and async code

344
Other
Used by 3
53Health
Library Cargo

fs-err

A drop-in replacement for std::fs that adds file paths and operation context to every I/O error.

175
Apache 2.0
Used by 3
29Health
Library npm

zod-error

Formats Zod validation issues into a single, fully customizable error message string.

56
MIT
Used by 3

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers