explaingit

n8n-io/p-retry

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

4JavaScriptAudience · developerComplexity · 2/5DormantSetup · easy

TLDR

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

What do people build with it?

USE CASE 1

Automatically retry a flaky API call with exponential backoff.

USE CASE 2

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

USE CASE 3

Reliably retry a cloud storage upload or webhook delivery job.

What is it built with?

JavaScript

How does it compare?

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 get it running?

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

Copy-paste 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

What 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.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.