Onirii is a universal queue SDK for Node.js that provides a unified interface across multiple message queue providers. Version 1.3.6 is the latest stable release. The library is actively developed with two providers currently supported fully (RabbitMQ and AmazonSQS) and others in progress. It specializes in RabbitMQ confirm channel support and connection management with configurable maximum channel count. Compared to using raw amqplib or AWS SDK, Onirii offers an abstraction layer to switch between providers with minimal code changes.
npm install oniriiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to RabbitMQ, creates a confirm channel, declares a queue and exchange, binds them, publishes a message, and consumes messages with acknowledgement. ESM imports are required.
Switch from require() to import syntax. For TypeScript, ensure module resolution is set to 'node16' or 'nodenext'.
Do not use TubeMQ provider; it will not be developed further.
When setting maxChannels, the SDK will create new channels up to that limit but may exceed if channel is not closed properly. Monitor channel usage manually.
Use RabbitMQ for full feature support. Check the README feature matrix before relying on SQS-specific features.
Add "type": "module" to your package.json, or rename .js files to .mjs. If using TypeScript, set "module": "ESNext" or "Node16" in tsconfig.json.
Change to import Onirii from 'onirii' or use dynamic import: const Onirii = (await import('onirii')).default;No dependency data recorded yet.