sindresorhus/p-limit
Run multiple promise-returning & async functions with limited concurrency observed · 2026-08-28
Health v2 · maintenance only
90/100
- Activity 93
- Release rhythm 81
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 79.5
- age_days: 3603
- days_rel: 44
- days_push: 44
- n_releases_24m: 7
Adoption not part of the score
2919 stars · 141 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A tiny JavaScript library that limits the concurrency of promise-returning and async functions, so only a fixed number run at once. It works in Node.js and browsers and provides queue introspection, dynamic concurrency adjustment, and batch mapping helpers.
Use cases
- limit concurrent http requests to avoid rate limits
- run async tasks with a maximum of N at a time
- throttle promise-based function calls in node
- process a batch of items with limited parallelism
- control how many database queries run concurrently
- queue async jobs and clear pending ones on shutdown
When to choose
- you need simple, dependency-free concurrency limiting for promises in Node.js or the browser
- you want queue counts, dynamic limit changes, or a map helper for batched async work
When to avoid
- you need full job queues with retries, persistence, or workers (use a task queue library)
- you need rate limiting by time window rather than concurrency
- you're not using promises/async functions
Facets
library · maturity stable
concurrency rate-limiting developer-tools developer-tools web-development backend browser cross-platform promise async throttle task-queue batch-processing npm automation nodejs javascript
2 sources
- readme: https://github.com/sindresorhus/p-limit · fetched 2026-08-28 · de38c80a88f5
- registry_npm: https://registry.npmjs.org/p-limit · fetched 2026-08-29 · 6df0bc7ff485
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| sindresorhus/p-limit | main | 90 |
For agents
markdown · JSON · MCP: product_card(name="sindresorhus/p-limit")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem