Fracture is a Node.js error-first callback work queue that splits work on a hashed key, providing deterministic execution order and backpressure handling. The current stable version is 0.2.0, with a slow release cadence (last updated 2018). Unlike generic queues (e.g., async.queue), Fracture groups tasks by key, ensuring tasks with the same key execute serially while different keys can run concurrently. It supports error-first callbacks and custom concurrency limits.
npm install fractureNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a fracture queue with concurrency 2, pushes three jobs where keys 'a' are serial and 'b' parallel, then starts processing.
Migrate to p-queue or async.queue.
Call queue.start() after pushing all jobs.
Always include a 'key' string in the task object.
Wrap callbacks in promises or use a promisify wrapper.
Use create() to get the queue instance.
npm install fracture and use require('fracture') in CommonJS.No dependency data recorded yet.