{"id":44841,"library":"enversio-queue-client","title":"enversio-queue-client","description":"A TypeScript client library for interacting with the Enversio queue system, currently at version 0.0.46. This package provides methods to enqueue, dequeue, and manage queue messages. It is in early development with frequent updates. Compared to other queue clients, it is specifically designed for the Enversio ecosystem. The library ships TypeScript declarations and supports both ESM and CommonJS usage.","status":"active","version":"0.0.46","language":"javascript","source_language":"en","source_url":"https://github.com/Enversio/enversio-queue-client","tags":["javascript","typescript"],"install":[{"cmd":"npm install enversio-queue-client","lang":"bash","label":"npm"},{"cmd":"yarn add enversio-queue-client","lang":"bash","label":"yarn"},{"cmd":"pnpm add enversio-queue-client","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"HTTP client for API requests","package":"axios","optional":false}],"imports":[{"note":"ESM-only import; default export not available.","wrong":"const QueueClient = require('enversio-queue-client')","symbol":"QueueClient","correct":"import { QueueClient } from 'enversio-queue-client'"},{"note":"TypeScript type, no runtime value.","symbol":"EnqueueOptions","correct":"import { EnqueueOptions } from 'enversio-queue-client'"},{"note":"Represents a message object.","symbol":"QueueMessage","correct":"import { QueueMessage } from 'enversio-queue-client'"}],"quickstart":{"code":"import { QueueClient } from 'enversio-queue-client';\n\nconst client = new QueueClient({\n  baseUrl: process.env.QUEUE_BASE_URL ?? 'http://localhost:3000',\n  apiKey: process.env.QUEUE_API_KEY ?? '',\n});\n\nasync function main() {\n  // Enqueue a message\n  await client.enqueue('my-queue', { type: 'task', data: { id: 1 } });\n\n  // Dequeue a message\n  const message = await client.dequeue('my-queue');\n  if (message) {\n    console.log('Received:', message);\n    await client.acknowledge(message.id);\n  }\n}\n\nmain().catch(console.error);","lang":"typescript","description":"Initializes a QueueClient, enqueues a JSON message, dequeues it, and acknowledges receipt."},"warnings":[{"fix":"Pass options as config object with baseUrl and apiKey fields.","message":"v0.0.40 changed the constructor signature from (options) to (config) with config object.","severity":"breaking","affected_versions":"<0.0.40"},{"fix":"Use await client.enqueue(queue, message) without callback.","message":"The enqueue method's callback parameter is deprecated as of v0.0.30; use async/await instead.","severity":"deprecated","affected_versions":">=0.0.30"},{"fix":"Wrap API calls in try-catch and implement retry logic.","message":"The client does not retry failed requests automatically; you must handle network errors manually.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Verify queue name with server admin.","message":"Queue names are case-sensitive and must match exactly as configured on the server.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'0.0.46':19 'client':4,7,43 'commonj':62 'compar':39 'current':16 'declar':56 'dequeu':26 'design':47 'develop':35 'earli':34 'ecosystem':51 'enqueu':25 'enversio':2,13,50 'enversio-queue-cli':1 'esm':60 'frequent':37 'interact':10 'javascript':64 'librari':8,53 'manag':28 'messag':30 'method':23 'packag':21 'provid':22 'queue':3,14,29,42 'ship':54 'specif':46 'support':58 'system':15 'typescript':6,55,65 'updat':38 'usag':63 'version':18","created_at":"2026-06-07T12:52:06.418099+00:00","updated_at":"2026-06-07T12:52:06.418099+00:00","problems":[{"fix":"Use import { QueueClient } from 'enversio-queue-client'.","cause":"Using default import instead of named import.","error":"TypeError: client.enqueue is not a function"},{"fix":"Ensure server is running and set QUEUE_BASE_URL environment variable.","cause":"Queue server not running or baseUrl misconfigured.","error":"Error: connect ECONNREFUSED 127.0.0.1:3000"}],"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/Enversio/enversio-queue-client#readme","github":"https://github.com/Enversio/enversio-queue-client","docs":null,"changelog":null,"pypi":null,"npm":"enversio-queue-client","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}}