{"id":44358,"library":"axios-queue-js","title":"axios-queue-js","description":"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.","status":"active","version":"1.1.6","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/AndersonSMed/axios-queue-js","tags":["javascript","nodejs","typescript","queue","pipeline","requests","axios"],"install":[{"cmd":"npm install axios-queue-js","lang":"bash","label":"npm"},{"cmd":"yarn add axios-queue-js","lang":"bash","label":"yarn"},{"cmd":"pnpm add axios-queue-js","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency; the library wraps axios instances to queue requests","package":"axios","optional":false}],"imports":[{"note":"Default export is an axios-like instance with built-in queuing. Named export 'axios' does not exist.","wrong":"import { axios } from 'axios-queue-js';","symbol":"default (axios)","correct":"import axios from 'axios-queue-js';"},{"note":"Named export for creating custom queue managers. CommonJS users should use require with destructuring.","wrong":"const AxiosQueueManager = require('axios-queue-js');","symbol":"AxiosQueueManager","correct":"import { AxiosQueueManager } from 'axios-queue-js';"},{"note":"CommonJS require returns the module object; default export is under .default.","wrong":"const axios = require('axios-queue-js');","symbol":"default (CommonJS)","correct":"const { default: axios } = require('axios-queue-js');"},{"note":"Direct destructuring works for named exports.","wrong":null,"symbol":"AxiosQueueManager (CommonJS)","correct":"const { AxiosQueueManager } = require('axios-queue-js');"}],"quickstart":{"code":"import axios from 'axios-queue-js';\n\nasync function main() {\n  try {\n    const response = await axios.get('https://jsonplaceholder.typicode.com/todos/1');\n    console.log('Response:', response.data);\n  } catch (error) {\n    console.error('Error:', error);\n  }\n}\n\nmain();","lang":"typescript","description":"This example demonstrates replacing axios with axios-queue-js to automatically queue GET requests with default concurrency settings."},"warnings":[{"fix":"Use AxiosQueueManager with a custom axios client to access interceptors: new AxiosQueueManager({ client: axios.create() }).","message":"Default export is not a native axios instance but a queue-wrapper. Methods like axios.CancelToken or axios.interceptors are not directly available on the default export.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use const { default: axios } = require('axios-queue-js');","message":"When using CommonJS, require('axios-queue-js') returns an object with a default property for the queue-enabled axios. Using const axios = require('axios-queue-js') will give an object, not a function.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Pin axios version to >=0.21.4 and test before upgrading.","message":"No deprecation warnings at this version, but the library has low maintenance activity. Check for compatibility with future axios versions.","severity":"deprecated","affected_versions":"=1.1.6"}],"env_vars":null,"search_vec":"'0.21.4':99 '1.1.6':33 '1000':77 '3x':94 '478x':89 'achiev':86 'activ':109 'allow':44 'appear':106 'around':14 'axio':2,6,15,48,59,82,98,119 'axios-queue-j':1,5 'axiosqueuemanag':63 'browser':40 'cadenc':105 'chang':53 'class':64 'client':60 'code':52 'concurr':21,74 'connect':27 'current':29 'custom':55 'depend':103 'develop':45 'differenti':66 'direct':49 'e.g':76 'environ':41 'fail':79 'frequenc':112 'http':18 'improv':23 'javascript':113 'js':4,8 'key':65 'librari':43 'lightweight':11 'limit':20 'low':111 'mani':73 'node.js':38 'nodej':114 'overload':28 'peer':102 'perform':24 'pipelin':117 'prevent':26 'problem':70 'queu':84 'queue':3,7,17,56,116 'releas':104 'replac':47 'request':19,75,78,91,118 'requir':97 'size':57 'solv':68 'stabl':30 'time':96 'typescript':12,115 'vanilla':81 'version':31 'via':61 'work':35 'wrapper':13","created_at":"2026-06-07T12:49:44.186226+00:00","updated_at":"2026-06-07T12:49:44.186226+00:00","problems":[{"fix":"Run npm install axios-queue-js and ensure tsconfig.json includes node module resolution.","cause":"Package not installed or TypeScript cannot resolve types.","error":"Cannot find module 'axios-queue-js' or its corresponding type declarations."},{"fix":"Use const { default: axios } = require('axios-queue-js');","cause":"CommonJS require returns the module object instead of the default export.","error":"TypeError: axios.get is not a function"},{"fix":"Ensure new AxiosQueueManager() is called with valid options, e.g., new AxiosQueueManager({ queueSize: 10 }).","cause":"AxiosQueueManager or client not properly initialized.","error":"Cannot read properties of undefined (reading 'get')"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/AndersonSMed/axios-queue-js#readme","github":"ssh://git@github.com/AndersonSMed/axios-queue-js","docs":null,"changelog":null,"pypi":null,"npm":"axios-queue-js","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}