p-queue
Promise queue with concurrency control for managing async task execution.
Jobs, queues and workflows npm MIT
Used in agent projects
21
0.2% of 12,697 public repos built with AI coding agents
Rank in jobs, queues and workflows
#6 of 7
by use in those projects
Downloads
37.3M
npm, last 7 days, p-queue
GitHub stars
4,283
last push Jul 22, 2026
How p-queue is used
p-queue is a dependency in 21 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.2%), #6 of 7 in jobs, queues and workflows. The most used alternative there is node-cron. Projects that use it most often also use Zod (71.4%), Vitest (52.4%), Zustand (38.1%).
Often used with p-queue
| Zod | 71.4% of p-queue projects · 4.2× more than average |
|---|---|
| Vitest | 52.4% of p-queue projects · 4.3× more than average |
| Zustand | 38.1% of p-queue projects · 6.4× more than average |
| TypeScript | 81.0% of p-queue projects |
| Model Context Protocol SDK (JavaScript) | 23.8% of p-queue projects · 5.0× more than average |
| Electron | 23.8% of p-queue projects · 36.9× more than average |
| uuid | 23.8% of p-queue projects · 6.7× more than average |
| jsdom | 23.8% of p-queue projects · 4.4× more than average |
By coding agent
| Claude Code | 0.3% of projects set up for it |
|---|---|
| Cursor | 0.2% of projects set up for it |
Share of public repos configured for each agent that list p-queue as a dependency.
Install
| Package | npm install p-queue |
|---|---|
| Main stacks | TypeScript / JavaScript (14), Next.js (6), Python (1) |
| Example projects | LeagueAkari/LeagueAkari, regenrek/deepwiki-mcp, ruvnet/marketing, mkdir700/EchoPlayer, instructa/nowledge |
Alternatives to p-queue
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| node-cron npm Job scheduling for Node.js with overlap prevention and distributed coordination. |
74 (0.6%) | 5.1M | 3,280 | ISC |
| APScheduler pypi In-process task scheduler with Cron-like capabilities for Python applications. |
50 (0.4%) | 8.9M | 7,652 | MIT |
| Celery pypi Distributed task queue for Python executing jobs asynchronously across workers. |
48 (0.4%) | 11M | 28.9K | BSD-3-Clause |
| BullMQ npm Fast, reliable Redis-backed queue for jobs and messages in Node.js. |
43 (0.3%) | 9.6M | 9,490 | MIT |
| schedule pypi Simple Python library for scheduling jobs to run at regular intervals. |
29 (0.2%) | 1.3M | 12.3K | MIT License |
| amqplib npm AMQP 0-9-1 client library for RabbitMQ and message-based workflows. |
20 (0.2%) | 3M | 3,844 | MIT |