{"library":"mongomq2","type":"library","category":null,"description":"A lightweight Node.js library that turns MongoDB collections into general-purpose message queues or event logs without additional infrastructure. Version 1.4.1 is stable; released regularly with breaking changes documented. Key differentiators: supports both at-most-once (subscribe) and at-least-once (consume) delivery, configurable retries/visibility/delays, batch publishing, and leverages MongoDB features like indexes, capped collections, transactions, and sharding. No external broker required; designed for event-driven architectures on existing MongoDB deployments. Peer dependency mongodb >=4. Requires Node >=18. Ships TypeScript types.","language":"javascript","status":"active","version":"1.4.1","tags":["javascript","mongodb","message","messaging","queue","event","stream","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install mongomq2","imports":["import { MessageQueue } from 'mongomq2'","const { MessageQueue } = require('mongomq2')","import type { MessageQueueOptions, ConsumeOptions, SubscribeOptions } from 'mongomq2'"]},{"cmd":"yarn add mongomq2","imports":[]},{"cmd":"pnpm add mongomq2","imports":[]}],"homepage":"https://github.com/morris/mongomq2","github":"https://github.com/morris/mongomq2","docs":null,"changelog":null,"pypi":null,"npm":"mongomq2","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}