Registry / messaging / glim-queue

glim-queue

JSON →
library0.0.2jsnpmunverified

glim-queue is a job queue, worker thread manager, and asynchronous background processor built for the GlimLang ecosystem. Version 0.0.2 is an early pre-release blueprint not intended for production use. It provides ES Modules-first APIs with JSDoc type safety. The package is currently a future scope placeholder; no stable release is available. Key differentiators: native GlimLang integration, focus on high efficiency, and planned compatibility with BullMQ-like patterns. Development cadence is unknown; users must wait for v1.0.0.

npm install glim-queue
INSTALL
IMPORT
SIG · GLIM-QUEUE
G
glim-queue
messagingjavascriptv0.0.2
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.

initialize
✓ import { initialize } from 'glim-queue'
✗ const { initialize } = require('glim-queue')
Package is ESM-only; CommonJS require() is not supported.
Queue
✓ import { Queue } from 'glim-queue'
✗ import Queue from 'glim-queue'
Named export, not default. Only available after v1.0.0.
Worker
✓ import { Worker } from 'glim-queue'
✗ import { worker } from 'glim-queue'
Export is PascalCase 'Worker'. Case-sensitive.

Shows ESM import, queue initialization, job addition, worker processing, and shutdown.

import { initialize } from 'glim-queue'; import { Queue, Worker } from 'glim-queue'; // Initialize the queue system initialize(); // Create a queue instance const queue = new Queue('my-queue', { connection: { host: 'localhost', port: 6379 } }); // Add a job await queue.add('email-job', { to: 'user@example.com' }); // Process jobs with a worker const worker = new Worker('my-queue', async job => { console.log('Processing job:', job.id); // Do work }); // Graceful shutdown await worker.close(); await queue.close();
Debug
Known issues
breakingPackage is pre-v1.0.0 and not production-ready. APIs may change without notice.
fix
Do not use until v1.0.0 is released.
affects: >=0.0.0
gotchaESM-only package. Using require() throws a runtime error.
fix
Use import statements instead of require().
affects: >=0.0.0
gotchaAll exports are named; there is no default export.
fix
Use { initialize } syntax for imports.
affects: >=0.0.0
Errors
Common errors & fixes
ERR_REQUIRE_ESM
Using require() to import an ESM-only package.
fix
Change to import { initialize } from 'glim-queue';
TypeError: glim_initialize is not a function
Default import instead of named import.
fix
Use import { initialize } from 'glim-queue';
SyntaxError: Missing initializer in const declaration
Forgetting to call initialize() before using Queue.
fix
Call initialize() before creating queues or workers.
Upgrade
Version history
0.0.2latest on npm
Audit
Dependencies
glim-corerequiredCore GlimLang runtime required for queue initialization
Agent activity
13 hits · last 30 days
node
10
Amazon
1
OpenAI (training)
1
Resources
glim-queue — npm install glim-queue · libregistry