A lightweight, drop-in replacement for the native fetch API that queues HTTP requests to manage concurrency and implement automatic retries. Version 1.0.3 is the current stable release; the project appears to be in maintenance mode with no recent updates since 2021. Unlike generic queue libraries, fetch-queue is purpose-built for fetch and provides a simple API with zero dependencies, supporting custom queues with configurable concurrency, retry counts, retry delays, base URLs, and retryable HTTP status codes. It also offers debugging, queue status checks, and queue destruction. GPLv3 licensed.
npm install fetch-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows drop-in replacement for fetch using default queue with Promise.allSettled.
Add a declaration file (.d.ts) or use // @ts-ignore.
Use createQueue to customize settings: createQueue('myQueue', { concurrent: 5, retries: 0 })Ensure global fetch exists, or import a polyfill before this package.
Use checkQueue before destroyQueue to verify existence.
Consider alternative queue libraries with permissive licenses (e.g., p-limit, bottleneck).
Use default import: import fetchQueue from 'fetch-queue' or const { default: fetchQueue } = require('fetch-queue')Run npm install fetch-queue and ensure the import path is correct.
Install a fetch polyfill like 'node-fetch' and assign to global.fetch, or upgrade your runtime.
Call createQueue('myQueue', options) before using fetchQueue(url, options, 'myQueue').No dependency data recorded yet.