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
78Health
Library npm

zod-validation-error

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

1,024
MIT
Used by 14
54Health
Library npm

serialize-error

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

607
MIT
Used by 8
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
29Health
Library npm

zod-error

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

56
MIT
Used by 3
55Health
Library Cargo

SNAFU

An ergonomic Rust error handling library for mapping underlying errors into context-rich, domain-specific error types.

1,899
Other
Used by 2
35Health
Library npm

express-async-handler

A tiny wrapper that catches async errors in Express route handlers and forwards them to next().

580
MIT
Used by 2
47Health
Library npm

is-network-error

Checks whether a caught error is a genuine Fetch network failure, normalized across browsers and JS runtimes.

163
MIT
Used by 2
31Health
Library Cargo

custom_error

A macro for defining custom Rust error enums and structs without hand-writing Display and Error impls.

74
Other
Used by 1
33Health
Library Cargo

http-api-problem

A Rust library for building RFC 7807 problem+json HTTP error responses for APIs.

62
Other
Used by 1
48Health
Library Cargo

n0-error

Ergonomic Rust error handling with automatic call-site location tracking.

15
Other
Used by 1
19Health
Library Cargo

proc-macro-error2

Nice, easy error reporting for Rust procedural macros, updated for syn 2

15
Other
Used by 1
21Health
Library npm

custom-error-instance

Create custom JavaScript Error subclasses that pass instanceof checks, with inheritance, default properties, and pluggable factories.

10
MIT
Used by 1
17Health
Library Cargo

serde-error

A (de)serializable Rust Error type that captures the full causality chain for sending over the wire.

5
MIT
Used by 1
18Health
Library Cargo

simple-eyre

A minimal eyre error handler that prints just the error chain — no backtraces, spans, or extra context.

5
Other
Used by 1

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