Smart request balancer with fine tuning of rates and limits of queue execution. Current stable version is 2.2.0. This library allows developers to define multiple rate-limiting rules per resource, with per-key granularity and automatic retry support. It provides priority-based queueing, overall and default limits, and an ignoreOverallOverheat option. Written in TypeScript with full type definitions. Compared to similar libraries like bottleneck or p-limit, it offers more flexible rule configuration and built-in retry mechanism. Release cadence is irregular; last update was in 2021.
npm install smart-request-balancerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a queue with custom rules and makes a request with retry on 429.
Use the configuration object as described in the README; no fix needed.
Upgrade to 2.0.0 or higher and use the new configuration object format.
Avoid using ignoreOverallOverheat if possible, or monitor for future changes.
Run 'npm install smart-request-balancer' and ensure import uses default export.
Use 'import Queue from "smart-request-balancer"' or 'const Queue = require("smart-request-balancer")' and then instantiate with 'new Queue({...})'.Ensure the first argument is a function like '(retry) => fetch(...).then(...).catch(...)'.
No dependency data recorded yet.