Registry / messaging / enversio-queue-client

enversio-queue-client

JSON →
library0.0.46jsnpmunverified

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.

npm install enversio-queue-client
INSTALL
IMPORT
SIG · ENVERSIO-QUEUE-CLI
E
enversio-queue-client
messagingjavascriptv0.0.46
harness data pending
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.

QueueClient
import { QueueClient } from 'enversio-queue-client'
const QueueClient = require('enversio-queue-client')
ESM-only import; default export not available.
EnqueueOptions
import { EnqueueOptions } from 'enversio-queue-client'
TypeScript type, no runtime value.
QueueMessage
import { QueueMessage } from 'enversio-queue-client'
Represents a message object.

Initializes a QueueClient, enqueues a JSON message, dequeues it, and acknowledges receipt.

import { QueueClient } from 'enversio-queue-client'; const client = new QueueClient({ baseUrl: process.env.QUEUE_BASE_URL ?? 'http://localhost:3000', apiKey: process.env.QUEUE_API_KEY ?? '', }); async function main() { // Enqueue a message await client.enqueue('my-queue', { type: 'task', data: { id: 1 } }); // Dequeue a message const message = await client.dequeue('my-queue'); if (message) { console.log('Received:', message); await client.acknowledge(message.id); } } main().catch(console.error);
Debug
Known issues
breakingv0.0.40 changed the constructor signature from (options) to (config) with config object.
fix
Pass options as config object with baseUrl and apiKey fields.
affects: <0.0.40
deprecatedThe enqueue method's callback parameter is deprecated as of v0.0.30; use async/await instead.
fix
Use await client.enqueue(queue, message) without callback.
affects: >=0.0.30
gotchaThe client does not retry failed requests automatically; you must handle network errors manually.
fix
Wrap API calls in try-catch and implement retry logic.
affects: >=0.0.0
gotchaQueue names are case-sensitive and must match exactly as configured on the server.
fix
Verify queue name with server admin.
affects: >=0.0.0
Errors
Common errors & fixes
TypeError: client.enqueue is not a function
Using default import instead of named import.
fix
Use import { QueueClient } from 'enversio-queue-client'.
Error: connect ECONNREFUSED 127.0.0.1:3000
Queue server not running or baseUrl misconfigured.
fix
Ensure server is running and set QUEUE_BASE_URL environment variable.
Upgrade
Version history
0.0.46latest on npm
Audit
Dependencies
axiosrequiredHTTP client for API requests
Agent activity
20 hits · last 30 days
node
18
OpenAI (training)
2
Resources
enversio-queue-client — npm install enversio-queue-client · libregistry