# sindresorhus/p-queue

Promise queue with concurrency control

Repository: https://github.com/sindresorhus/p-queue
Canonical: https://ross.abutalabs.com/products/p-queue
Language: TypeScript
License: MIT
License Family: permissive
Topics: queue, queue-data-stucture, async-functions, async-queue, promise-queue, promise, node-module, npm-package
Last push: 2026-07-22T20:25:14+00:00

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

## Adoption (not part of the score)
Stars 4265, forks 220 (observed 2026-08-28T04:08:40.705808+00:00)

## What it is
p-queue is a TypeScript promise queue library for Node.js that provides concurrency control for async or sync operations. It lets you rate-limit tasks with configurable concurrency, timeouts, priorities, and pause/resume behavior.

## Use cases
- rate-limit requests to a REST API
- run async tasks with a concurrency limit
- throttle CPU or memory intensive operations
- queue background jobs in a Node.js app
- prioritize certain async tasks over others
- add timeouts to queued async operations

## When to choose
- you need in-process concurrency control for promises in Node.js
- you want a lightweight rate limiter for API calls or batch tasks
- you need priority queues or per-task timeouts for async work

## When to avoid
- you need a persistent or distributed job queue across servers (use a Redis-backed queue like BullMQ)
- your project uses CommonJS since the package is ESM-only
- you need features beyond what the feature-complete library offers

## Facets
- artifact type: library
- maturity: maintenance
- function: concurrency, scheduling, rate-limiting
- domain: developer-tools, backend
- platform: -
- tags: promise-queue, async, rate-limiting, task-queue, esm, automation, nodejs, javascript, typescript

## Member repositories
- sindresorhus/p-queue (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:40.705808+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-29T18:22:03.777403+00:00, confidence not recorded.
  - readme: https://github.com/sindresorhus/p-queue (fetched 2026-08-28T04:08:40.705808+00:00, sha 9eb4a9d771b8)
  - registry_npm: https://registry.npmjs.org/p-queue (fetched 2026-08-29T09:11:49.408690+00:00, sha d62717c6f32e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
