Registry / messaging / ut-queue

ut-queue

JSON →
library6.2.3jsnpmunverified

UT Queue is a generic queue management library for Node.js, part of the UT framework (softwaregroup-bg). Current stable version is 6.2.3, released as part of the UT monorepo. It provides message prioritization, overflow handling, rate limiting, timeout handling, and metrics. Unlike simple queue libraries, it offers a contextual queue API tied to connection IDs (conId), allowing per-connection queue management. Primarily used within the UT ecosystem, it's less suited as a standalone general-purpose queue.

messaging
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ESM only (the package exports an ES module).

import { queues } from 'ut-queue'

CJS require pattern: destructure the named export 'queues'. No default export.

const { queues } = require('ut-queue')

Method is on the `queues` object, not default import.

const q = queues.create({ context, callback });

Shows create, get, delete, and count operations using context with conId.

import { queues } from 'ut-queue'; const q1 = queues.create({ context: { conId: 'my-queue' }, callback: () => console.log('queue ended') }); console.log('Queue count:', queues.count()); const q2 = queues.get({ conId: 'my-queue' }); console.log('Queue retrieved:', q2 === q1); queues.delete({ conId: 'my-queue' }); console.log('Queue deleted, count:', queues.count());
Debug
Known footguns
breakingVersion 6.x dropped support for CommonJS require without destructuring?
gotchacontext.conId must be a string or value that serializes correctly; otherwise queues.get may not find the queue.
deprecatedOlder versions (pre-6) may have exported a default function; check import path if upgrading.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources