@nexusts/resilience
v0.9.4
Published
Retry + Circuit Breaker + Bulkhead
Downloads
1,942
Readme
@nexusts/resilience
NexusTS — Bun-native fullstack framework
Description
Retry + Circuit Breaker + Bulkhead.
Three primitives in a single DI singleton. retry() for backoff. CircuitBreaker for closed → open → half-open state machine. Bulkhead for FIFO concurrency limits. Shared named registry. Zero external dependencies.
Install
This module is part of the NexusTS monorepo. Each module is published as its own npm package under the @nexusts/ scope.
Most apps start with just the core:
bun add @nexusts/coreThen add this module only if you need it:
bun add @nexusts/resiliencePeer dependencies
None. No external dependencies. Pure TypeScript — retry, circuit breaker, bulkhead are all implemented in-house.
Usage
import { /* public API */ } from "@nexusts/resilience";See the user guide and the example app for a working demo.
License
MIT — see the root LICENSE.
