{"id":46738,"library":"ut-queue","title":"UT Queue","description":"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.","status":"active","version":"6.2.3","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/softwaregroup-bg/ut-queue","tags":["javascript"],"install":[{"cmd":"npm install ut-queue","lang":"bash","label":"npm"},{"cmd":"yarn add ut-queue","lang":"bash","label":"yarn"},{"cmd":"pnpm add ut-queue","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM only (the package exports an ES module).","wrong":"const queues = require('ut-queue')","symbol":"queues","correct":"import { queues } from 'ut-queue'"},{"note":"CJS require pattern: destructure the named export 'queues'. No default export.","wrong":"const queues = require('ut-queue').default","symbol":"queues","correct":"const { queues } = require('ut-queue')"},{"note":"Method is on the `queues` object, not default import.","wrong":"queues.create()","symbol":"queues.create","correct":"const q = queues.create({ context, callback });"}],"quickstart":{"code":"import { queues } from 'ut-queue';\n\nconst q1 = queues.create({\n    context: { conId: 'my-queue' },\n    callback: () => console.log('queue ended')\n});\nconsole.log('Queue count:', queues.count());\n\nconst q2 = queues.get({ conId: 'my-queue' });\nconsole.log('Queue retrieved:', q2 === q1);\n\nqueues.delete({ conId: 'my-queue' });\nconsole.log('Queue deleted, count:', queues.count());","lang":"javascript","description":"Shows create, get, delete, and count operations using context with conId."},"warnings":[{"fix":"Use named import or destructure require.","message":"Version 6.x dropped support for CommonJS require without destructuring?","severity":"breaking","affected_versions":">=6.0.0"},{"fix":"Ensure context.conId is a consistent unique identifier (e.g., string).","message":"context.conId must be a string or value that serializes correctly; otherwise queues.get may not find the queue.","severity":"gotcha","affected_versions":"*"},{"fix":"Update import to named export { queues }.","message":"Older versions (pre-6) may have exported a default function; check import path if upgrading.","severity":"deprecated","affected_versions":"<6.0.0"}],"env_vars":null,"search_vec":"'6.2.3':25 'allow':60 'api':54 'bg':20 'conid':59 'connect':57,63 'contextu':52 'current':21 'ecosystem':71 'framework':17 'general':80 'general-purpos':79 'generic':7 'handl':38,42 'id':58 'javascript':83 'less':74 'librari':10,48 'limit':40 'manag':9,65 'messag':35 'metric':44 'monorepo':32 'node.js':12 'offer':50 'overflow':37 'part':13,28 'per':62 'per-connect':61 'primarili':66 'priorit':36 'provid':34 'purpos':81 'queue':2,4,8,47,53,64,82 'rate':39 'releas':26 'simpl':46 'softwaregroup':19 'softwaregroup-bg':18 'stabl':22 'standalon':78 'suit':75 'tie':55 'timeout':41 'unlik':45 'use':67 'ut':1,3,16,31,70 'version':23 'within':68","created_at":"2026-06-07T13:01:22.942640+00:00","updated_at":"2026-06-07T13:01:22.942640+00:00","problems":[{"fix":"Use `import { queues } from 'ut-queue'`.","cause":"Using default import `import queues from 'ut-queue'` but the package exports a named export.","error":"TypeError: queues is not a function"},{"fix":"Run `npm install ut-queue`.","cause":"Package not installed.","error":"Cannot find module 'ut-queue'"},{"fix":"Ensure you use `import { queues } from 'ut-queue'` and then `queues.create()`.","cause":"Importing the module as a function instead of an object with methods.","error":"queues.create is not a function"}],"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/softwaregroup-bg/ut-queue#readme","github":"ssh://git@github.com/softwaregroup-bg/ut-queue","docs":null,"changelog":null,"pypi":null,"npm":"ut-queue","openapi_spec":null,"status_page":null,"smithery":null,"categories":["messaging"],"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}}