sindresorhus/p-retry
Some data may be outdated — see provenance labels.
Retry a promise-returning or async function observed · 2026-09-28
Health v2 · maintenance only
87/100
- Activity 95
- Release rhythm 69
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 106
- age_days: 3651
- days_rel: 49
- days_push: 32
- n_releases_24m: 6
Adoption not part of the score
1035 stars · 83 forks observed · 2026-09-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A small JavaScript library for retrying promise-returning or async functions with exponential backoff and customizable retry strategies. It supports aborting retries on non-retryable errors and provides failure context callbacks.
Use cases
- retry failed http fetch requests
- add exponential backoff to async function calls
- retry flaky network operations in node
- stop retrying on 404 errors
- retry promise with custom retry strategy
When to choose
- you need robust retry logic with exponential backoff for async operations
- you want fine-grained control over which errors are retried or aborted
- you need per-failure callbacks with retry state information
When to avoid
- you need retry logic for non-promise synchronous code
- you need circuit breaker or rate limiting beyond simple retries
- your runtime lacks Promise support
Facets
library · maturity active
concurrency error-handling developer-tools backend web-development browser promise retry exponential-backoff async npm nodejs javascript
2 sources
- readme: https://github.com/sindresorhus/p-retry · fetched 2026-09-28 · be1bcdfccbce
- registry_npm: https://registry.npmjs.org/p-retry · fetched 2026-08-29 · f02ea7c9b1f7
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| sindresorhus/p-retry | main | 87 |
For agents
markdown · JSON · MCP: product_card(name="sindresorhus/p-retry")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem