sindresorhus/p-map
Map over promises concurrently observed · 2026-08-28
Health v2 · maintenance only
83/100
- Activity 93
- Release rhythm 61
- 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: 230
- age_days: 3603
- days_rel: 44
- days_push: 44
- n_releases_24m: 4
Adoption not part of the score
1510 stars · 76 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
p-map is a small Node.js/JavaScript library for mapping over iterables with promise-returning or async mapper functions concurrently, with controllable concurrency limits. It also provides an async iterable variant with backpressure support for streaming consumption.
Use cases
- run async functions over a list with limited concurrency
- fetch many URLs in parallel without overwhelming the server
- control how many promises run at once instead of Promise.all
- stop iteration early when a task fails
- stream mapper results as an async iterable with backpressure
When to choose
- you need bounded concurrency for promise-based work in Node.js
- you want results in input order with error control
- you need backpressure when consuming results slower than they're produced
When to avoid
- you just need Promise.all with no concurrency limit
- you're not in a JavaScript/Node.js environment
- you need worker-thread or multi-process parallelism for CPU-bound tasks
Facets
library · maturity stable
concurrency http-client developer-tools web-development backend promise async-await parallel-processing async-iterable backpressure nodejs javascript
2 sources
- readme: https://github.com/sindresorhus/p-map · fetched 2026-08-28 · 90bc269cbb17
- registry_npm: https://registry.npmjs.org/p-map · fetched 2026-08-29 · fbd8e5c3b96d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| sindresorhus/p-map | main | 83 |
For agents
markdown · JSON · MCP: product_card(name="sindresorhus/p-map")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem