Qyu 2.1.3 (stable, semver releases) is a flexible, promise-based asynchronous job queue for both Node.js (>=10) and browser environments. It prioritizes simplicity and always-on readiness, accepting jobs any time and executing them up to a configurable concurrency limit. Unlike simple async pools, Qyu supports per-job priority, per-job timeout, queue capacity limits, pause/resume, and an AbortSignal. It ships both CJS and ESM builds with full TypeScript type definitions. Key differentiator: designed for large-scale web scrapers and API throttling, with a minimal API surface (the instance itself is callable).
npm install qyuNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows import, instance creation, job queuing (basic and with options), waiting for queue drain, pause/resume, and capacity error handling.
Use `import { Qyu } from 'qyu'` instead of `import Qyu from 'qyu'`.Replace `q.push(job)` with `q(job)`.
Wrap synchronous code in an async function or return a Promise.
Always await or .catch() the promise returned by q(job).
Use `timeout` option to cancel a job after a duration.
Ensure argument to q() is a function returning a promise.
Increase `capacity` or wait for jobs to complete before queuing more.
Always handle the promise: `q(job).catch(err => ...)` or use try/catch with await.
Use `import { Qyu } from 'qyu'`.No dependency data recorded yet.