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

79Health
Library Cargo

thiserror

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

5,554
Apache 2.0
Used by 58
67Health
Library Cargo

anyhow

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

6,657
Apache 2.0
Used by 50
76Health
Library npm

react-error-boundary

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

7,993
MIT
Used by 48
48Health
Library Go

errors

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

8,255
Other
Used by 33
74Health
Library PyPI

tenacity

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

8,798
Apache 2.0
Used by 23
91Health
Library npm

Effect

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

16,241
MIT
Used by 18
48Health
Library Go

backoff

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

4,085
MIT
Used by 16
49Health
Library Go

go-multierror

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

2,588
MPL-2.0
Used by 15
78Health
Library npm

zod-validation-error

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

1,024
MIT
Used by 14
89Health
Library Go

lo

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

21,434
MIT
Used by 11
54Health
Library npm

serialize-error

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

607
MIT
Used by 8
85Health
Library npm

NestJS Terminus

The official health-check module for NestJS applications

744
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,701
MIT
Used by 5
57Health
Library Go

retry-go

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

2,963
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).

904
Other
Used by 5
53Health
Library Cargo

eyre

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

1,785
Other
Used by 4
33Health
Library PyPI

exceptiongroup

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

49
MIT
Used by 4
57Health
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,474
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.

756
Apache 2.0
Used by 3
59Health
Library Go

go-retry

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

721
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
45Health
Library Cargo

fs-err

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

176
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