TypeScript-first Axios retry library (v2.3.2) with concurrency limits, priority queues, token refresh, response caching, and circuit breaker plugins. Active development, monthly releases. Key differentiators: tree-shakeable plugin architecture, ESM-only from v2, full type safety, binary-heap priority scheduling, and composable lifecycle hooks. Compared to axios-retry or retry-axios, it adds concurrency control and circuit breaking out of the box.
npm install axios-retryerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an axios-retryer instance with token refresh and circuit breaker plugins, then uses it to execute a GET request with automatic retries and error handling.
Use import syntax or dynamic import(). If package.json type: module is not possible, use a bundler that can handle ESM.
Update import paths: for example, import { createCircuitBreaker } from 'axios-retryer/plugins/CircuitBreakerPlugin'.Chain .use() calls and then call .execute() or .build(). See quick start example.
Replace 'cache' config with import { createCachePlugin } from 'axios-retryer/plugins/CachePlugin' and add it via .use().Always use the axios instance passed to the refresh function — it's the same instance used for the original request.
Set maxConcurrentRequests to a higher number (e.g., 10) in createRetryer() options.
Adjust failureThreshold and openTimeoutMs to match your application's tolerance.
Switch to import { createRetryer } from 'axios-retryer' or use dynamic import().Update to axios-retryer@2.x and use import { createCircuitBreaker } from 'axios-retryer/plugins/CircuitBreakerPlugin'.Pass an axios instance to createRetryer({ axios: axiosInstance }) or provide one to retryer.execute(() => axios.get(...)).Check if the upstream is reachable, increase retries, adjust backoff strategy, or inspect circuit breaker state logs.