best-queue

JSON →
library 3.0.7 ·javascript
verified Jun 7, 2026

best-queue is a lightweight, TypeScript-friendly library for controlling asynchronous task execution with concurrency limits, intervals, and error handling. Current stable version is 3.0.7, released under MIT license. It allows developers to create a queue that processes tasks (including Promises) with configurable max concurrency (default 1) and interval between tasks (default 0ms). Key differentiators include optional error recording (recordError mode to continue on failure), pause/resume functionality, and support for both ESM and CommonJS. Compared to similar libraries like p-limit or promise-queue, best-queue provides a single function API with built-in interval control and batch concurrency with fallback to slow tasks.