gitwtfhub

wtf is p-retry?

n8n-io/p-retry — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2024-03-14

4JavaScriptAudience · developerComplexity · 2/5DormantSetup · easy

TL;DR

A JavaScript library that automatically retries failed operations, like API calls, with smart exponential backoff.

Mindmap

mindmap
  root((p-retry))
    What it does
      Retries failed functions
      Uses exponential backoff
      Lets you skip pointless retries
    Tech stack
      JavaScript
    Use cases
      Retry flaky API calls
      Retry failed file uploads
      Reliably deliver webhooks
    Audience
      Developers
      Backend engineers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Automatically retry a flaky API call with exponential backoff.

REASON 2

Skip retries immediately when an error like a 404 means retrying is pointless.

REASON 3

Reliably retry a cloud storage upload or webhook delivery job.

What's in the stack?

JavaScript

How it stacks up

n8n-io/p-retryarata-ae/purupurupngtubercarrycooldude/nova-ide
Stars444
LanguageJavaScriptJavaScriptJavaScript
Last pushed2024-03-14
MaintenanceDormant
Setup difficultyeasymoderate
Complexity2/53/5
Audiencedevelopergeneralvibe coder

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 5min
The README does not specify license terms for this repository.

Yoink these prompts

Prompt 1
Show me how to wrap an async fetch call with p-retry so it retries on failure.
Prompt 2
Help me configure p-retry to bail out immediately on 404 errors but retry on 500s.
Prompt 3
Explain how to use AbortController with p-retry to cancel retries in progress.
Prompt 4
Write a logging hook that fires every time p-retry attempts a retry.

Frequently asked questions

wtf is p-retry?

A JavaScript library that automatically retries failed operations, like API calls, with smart exponential backoff.

What language is p-retry written in?

Mainly JavaScript. The stack also includes JavaScript.

Is p-retry actively maintained?

Dormant — no commits in 2+ years (last push 2024-03-14).

What license does p-retry use?

The README does not specify license terms for this repository.

How hard is p-retry to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is p-retry for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.