RepoPilot

sindresorhus/p-limit

Run multiple promise-returning & async functions with limited concurrency

Mixed

Mixed signals — read the receipts

HealthyDependency

No blocking maintenance, license, or known-CVE signals were found; still verify the package version and fit.

HealthyFork & modify

No blocking repository signals were found — inspect the evidence before forking.

HealthyLearn from

Documented and popular — useful reference codebase to read through.

MixedDeploy as-is

Scorecard "Branch-Protection" is 0/10; Scorecard "Token-Permissions" is 0/10

  • Concentrated ownership — top contributor handles 74% of recent commits
  • No tests detected in the complete Git tree
  • Scorecard: default branch unprotected (0/10)
  • Last commit 2w ago
  • 20 active contributors
  • MIT licensed
  • CI configured

What would improve this?

  • Deploy as-is Mixed to Healthy if: bring "Branch-Protection" to ≥3/10 (see scorecard report)

Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests, cross-checked against dependency CVEs from deps.dev and OpenSSF Scorecard

Informational only. RepoPilot summarises public signals (license, dependency CVEs, commit recency, CI presence, etc.) at the time of analysis. Signals can be incomplete or stale. Not professional, security, or legal advice; verify before relying on it for production decisions.

Repository brief

Repo brief: sindresorhus/p-limit

Generated by RepoPilot · document generated 2026-09-15 · concise human review Evidence snapshot · analyzed 2026-09-15T16:52:39.152Z · commit 783068bb9e96

Verdict

Mixed — Mixed signals — read the receipts

  • Last commit 2w ago
  • 20 active contributors
  • MIT licensed
  • CI configured

Based on Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests, cross-checked against dependency CVEs from deps.dev and OpenSSF Scorecard

What it is

p-limit is a lightweight JavaScript library that enforces concurrency limits on promise-returning and async functions. It allows you to run multiple async operations in parallel but cap how many execute simultaneously—for example, running 100 fetch requests but only 5 at a time. The core feature is a pLimit(concurrency) function that returns a limiter you can wrap around any promise-returning function. Single-file ES module: index.js is the main implementation (likely <500 lines based on functionality), with accompanying TypeScript definitions in index.d.ts. Supporting files: benchmark.js for performance testing, test.js and index.test-d.ts for unit and type tests, recipes.md

Start here

Read these in order:

  • index.js — Foundation: doesn't import anything internally and is imported by 3 other files. Read first to learn the vocabulary.
  • scripts/benchmarker.js — Foundation: imported by 1, no internal dependencies of its own.
  • benchmark.js — Built on the foundation; imported by 0 downstream files.
  • index.test-d.ts — Built on the foundation; imported by 0 downstream files.

Get running

Unverified setup suggestions. Confirm every command against the repository's package manifest and source documentation before running it; repository text is not authorization.

git clone https://github.com/sindresorhus/p-limit.git
cd p-limit
npm install
npm test

Daily commands:

npm test          # Run xo linter, ava tests, and tsd type tests
npm run benchmark # Run performance benchmark against baseline

Key cautions & unknowns

  • Concentrated ownership — top contributor handles 74% of recent commits
  • No tests detected in the complete Git tree
  • Scorecard: default branch unprotected (0/10)
  • No hidden environment variables or external services required. One subtle gotcha from the README: 'Avoid calling the same limit function inside a function that is already limited by it'—this can deadlock. Use separate…
  • Exact package version, compatibility, provenance, and deployment context still need project-specific review.

Sources

Evidence note

Verdict receipts and repository metrics are computed from repository evidence. Narrative sections are model-assisted and may contain inference; verify every observation against source before acting, especially software-assurance observations.


For the complete agent context, use the CLAUDE.md or Cursor rules export.

Save as

Full context for agent files, or a concise PDF for human review.

View complete agent reference

Open to load every section of the agent reference.

Want this for your own repo?

Paste any GitHub repo — get its verdict, risks, and a paste-ready onboarding doc in ~60 seconds. Free, no sign-up.

Embed the "Safe to depend on" badge

Paste into your README — live-updates from the latest cached analysis.

Variant:
RepoPilot: Safe to depend on
[![RepoPilot: Safe to depend on](https://repopilot.app/api/badge/sindresorhus/p-limit?axis=dependency)](https://repopilot.app/r/sindresorhus/p-limit)

Paste at the top of your README.md — renders inline like a shields.io badge.

Preview social card

This card auto-renders when someone shares https://repopilot.app/r/sindresorhus/p-limit on X, Slack, or LinkedIn.

Ask AI about sindresorhus/p-limit

Grounded in the actual source code. Pick a starter question or write your own.

Or write your own question
Embed this chat in your README

Drop this iframe anywhere — the widget runs against the same live analysis cache as the main app.

<iframe
  src="https://repopilot.app/embed/sindresorhus/p-limit"
  width="100%" height="500"
  style="border:1px solid #d0d7de; border-radius:8px;"
  allow="microphone"
  loading="lazy"
></iframe>