Ross ROSS = Recommend OSS · open-source software intelligence for agents

sindresorhus/p-retry

Retry a promise-returning or async function observed · 2026-08-28

github.com/sindresorhus/p-retry · JavaScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

76/100

  • Activity 74
  • Release rhythm 64
  • 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: 83.5
  • age_days: 3603
  • days_rel: 160
  • days_push: 160
  • n_releases_24m: 5

Full methodology

Adoption not part of the score

1027 stars · 83 forks observed · 2026-08-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

Member repositories

RepositoryRoleHealth v2
sindresorhus/p-retrymain76

For agents

markdown · JSON · MCP: product_card(name="sindresorhus/p-retry")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem