# sindresorhus/p-map

Map over promises concurrently

Repository: https://github.com/sindresorhus/p-map
Canonical: https://ross.abutalabs.com/products/p-map
Language: JavaScript
License: MIT
License Family: permissive
Topics: promise, async-functions, concurrency, mapper, nodejs, javascript, parallel, promises, async, async-await, await, iteration
Last push: 2026-07-20T21:21:12+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 93, release rhythm 61, longevity 100
- inputs: {"age_days": 3603, "days_push": 44, "days_rel": 44, "gap_med": 230, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1510, forks 76 (observed 2026-08-28T04:04:55.839775+00:00)

## What it is
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
- artifact type: library
- maturity: stable
- function: concurrency, http-client
- domain: developer-tools, web-development, backend
- platform: -
- tags: promise, async-await, parallel-processing, async-iterable, backpressure, nodejs, javascript

## Member repositories
- sindresorhus/p-map (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:55.839775+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:32:27.685965+00:00, confidence not recorded.
  - readme: https://github.com/sindresorhus/p-map (fetched 2026-08-28T04:04:55.839775+00:00, sha 90bc269cbb17)
  - registry_npm: https://registry.npmjs.org/p-map (fetched 2026-08-29T11:36:40.764980+00:00, sha fbd8e5c3b96d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
