# ehmicky/modern-errors

Handle errors in a simple, stable, consistent way

Repository: https://github.com/ehmicky/modern-errors
Canonical: https://ross.abutalabs.com/products/modern-errors
Language: JavaScript
License: MIT
License Family: permissive
Topics: browser, cause, code-quality, error, error-handler, error-handling, error-monitoring, error-reporting, errors, exceptions, javascript, library, message, monitoring, nodejs, stacktrace, typescript, framework, error-classes, plugins
Last push: 2026-08-04T13:49:55+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 51, longevity 100
- inputs: {"age_days": 1545, "days_push": 29, "days_rel": 328, "gap_med": 20.0, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1486, forks 20 (observed 2026-08-28T04:04:51.847584+00:00)

## What it is
A JavaScript library for handling errors in a simple, stable, and consistent way across Node.js and browsers. It provides error class creation, error wrapping/aggregation, normalization of invalid errors, and an extensible plugin system.

## Use cases
- create custom error classes in javascript
- wrap and aggregate errors with causes
- normalize invalid thrown errors
- separate known from unknown errors
- serialize and parse errors across processes
- clean and prettify stack traces
- handle errors in cli modules
- log errors with winston

## When to choose
- you want consistent, typed error handling across node and browser code
- you need a plugin-based error handling framework with serialization and logging support
- you want to distinguish known errors from unexpected bugs

## When to avoid
- you only need minimal try/catch without structured error classes
- your project is not javascript or typescript

## Facets
- artifact type: library
- maturity: stable
- function: error-handling, logging, monitoring, serialization, plugin-system
- domain: developer-tools, web-development, backend
- platform: browser, cross-platform
- tags: error-classes, exceptions, stacktrace, typescript, error-monitoring, error-reporting, nodejs, javascript

## Member repositories
- ehmicky/modern-errors (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:51.847584+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:33:50.991712+00:00, confidence not recorded.
  - readme: https://github.com/ehmicky/modern-errors (fetched 2026-08-28T04:04:51.847584+00:00, sha 6fe8ab3f8e0c)
  - registry_npm: https://registry.npmjs.org/modern-errors (fetched 2026-08-29T11:40:18.100948+00:00, sha 737ec2b11983)
- Data as of 2026-08-30T08:39:29.467469+00:00.
