axios-queue-js is a lightweight TypeScript wrapper around axios that queues HTTP requests, limiting concurrency to improve performance and prevent connection overload. Current stable version is 1.1.6. It works in both Node.js and browser environments. The library allows developers to replace axios directly with no code changes, or customize queue size and axios client via the AxiosQueueManager class. Key differentiator: it solves the problem of too many concurrent requests (e.g., 1000 requests failing with vanilla axios) by queuing them, achieving up to 478x more requests in only 3x the time. Requires axios >= 0.21.4 as a peer dependency. Release cadence appears to be active but low frequency.
npm install axios-queue-jsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This example demonstrates replacing axios with axios-queue-js to automatically queue GET requests with default concurrency settings.
Use AxiosQueueManager with a custom axios client to access interceptors: new AxiosQueueManager({ client: axios.create() }).Use const { default: axios } = require('axios-queue-js');Pin axios version to >=0.21.4 and test before upgrading.
Run npm install axios-queue-js and ensure tsconfig.json includes node module resolution.
Use const { default: axios } = require('axios-queue-js');Ensure new AxiosQueueManager() is called with valid options, e.g., new AxiosQueueManager({ queueSize: 10 }).