nodeshift/opossum
Node.js circuit breaker - fails fast ⚡️ observed · 2026-08-28
Health v2 · maintenance only
96/100
- Activity 98
- Release rhythm 90
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 14.5
- age_days: 3594
- days_rel: 70
- days_push: 12
- n_releases_24m: 7
Adoption not part of the score
1680 stars · 112 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Opossum is a Node.js circuit breaker library that wraps asynchronous functions (promises and callbacks) and monitors their execution, failing fast when error thresholds are exceeded. It supports timeouts, fallback functions, AbortController-based cancellation, caching, health checks, and event-based status monitoring.
Use cases
- prevent cascading failures when calling unreliable network services
- fail fast instead of hanging on slow HTTP requests
- provide fallback responses when a dependency is down
- add timeouts and automatic circuit tripping to async calls
- monitor failure rates of external API calls
- implement the circuit breaker pattern in Node.js microservices
When to choose
- you need a battle-tested, actively maintained circuit breaker for Node.js promises
- you want Hystrix-style resilience with fallbacks and health checks
- you need AbortController support to cancel in-flight requests on timeout
When to avoid
- you are not on Node.js (it requires Node >= 22 in recent versions)
- you need client-side or browser circuit breaking
- you want a full service mesh or proxy-level resilience solution rather than a library
Facets
library · maturity active
rate-limiting middleware error-handling backend developer-tools apis microservices circuit-breaker fail-fast hystrix resilience fallback promises fault-tolerance nodejs
3 sources
- readme: https://github.com/nodeshift/opossum · fetched 2026-08-28 · 8a23f66f8717
- homepage: https://nodeshift.dev/opossum/ · fetched 2026-08-29 · 5ec4e48c5939
- registry_npm: https://registry.npmjs.org/opossum · fetched 2026-08-29 · af06138b8030
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| nodeshift/opossum | main | 96 |
For agents
markdown · JSON · MCP: product_card(name="nodeshift/opossum")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem