Analysis updated 2026-07-10 · repo last pushed 2023-07-19
Retry API calls that occasionally time out so your app stays resilient.
Re-attempt file uploads to cloud storage when a connection briefly drops.
Wrap any flaky async operation so it automatically retries with backoff.
| vercel/async-retry | stemdeckapp/stemdeck | aattaran/deepclaude | |
|---|---|---|---|
| Stars | 1,918 | 1,836 | 2,180 |
| Language | JavaScript | JavaScript | JavaScript |
| Last pushed | 2023-07-19 | 2026-06-30 | 2026-05-16 |
| Maintenance | Dormant | Active | Maintained |
| Setup difficulty | easy | moderate | moderate |
| Complexity | 2/5 | 2/5 | 3/5 |
| Audience | developer | general | developer |
Figures from each repo's GitHub metadata at analysis time.
Install via npm and wrap your async function, no external infrastructure or configuration required.
Vercel's async-retry is a small JavaScript library that automatically re-runs a failed task until it either succeeds or hits a limit you set. If you've ever had code that occasionally fails because a server was slow or a network connection hiccupped, this library handles the "try again" logic for you without writing messy loops or manual timers. You wrap your task in a function and pass it to the library. If anything in that function throws an error, the library waits a moment and tries again. By default it retries up to 10 times, with each wait getting progressively longer (starting at 1 second and doubling each time). You can also set a hard stop: if your function encounters a problem it knows won't fix itself on retry, like a 403 Unauthorized response, it can call a "bail" function to immediately abort the whole process instead of wasting time on pointless retries. This is useful for any developer building apps that talk to external services. If your app pulls data from a third-party API that occasionally times out, or uploads files to cloud storage and the connection briefly drops, this library makes sure those operations don't just fail and frustrate your users. Instead of writing custom error-handling code every time, you get a clean, battle-tested retry mechanism in a few lines. A couple of design choices stand out. The library builds on top of another well-established project called node-retry, so the retry timing logic is proven rather than improvised from scratch. It also randomizes the wait times by default, which sounds odd but actually helps: when many services fail at once and all retry at the exact same interval, they can overwhelm the recovering server. Randomizing the intervals spreads the load out naturally.
A small JavaScript library that automatically re-runs failed async tasks with smart backoff and a bail-out option, so you don't have to write custom retry loops.
Mainly JavaScript. The stack also includes JavaScript, Node.js, node-retry.
Dormant — no commits in 2+ years (last push 2023-07-19).
The explanation does not specify the license, so permission terms are unknown.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.