Postgres-queue (v1.3.2) is a PostgreSQL-backed request-response queue for Node.js, designed for reliable message passing with at-least-once delivery guarantees. It uses PostgreSQL as its storage backend, leveraging its transactional semantics for durability and visibility. The library provides a simple API for enqueuing and dequeuing messages, with support for visibility timeouts, retries, and dead-letter handling. Differentiates from in-memory queues (e.g., Bull) by persisting state in PostgreSQL without additional infrastructure like Redis, making it attractive for projects already using Postgres. Release cadence is ad-hoc; maintained by Growmies.
npm install postgres-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a PostgreSQL-backed queue, enqueues a message, dequeues it, processes, and deletes.
Always await queue.createTable() after instantiating the queue.
Use named import: `import { Queue } from 'postgres-queue'`.Upgrade Node.js to version 14 or higher.
Add await queue.createTable() after queue instantiation.
Use import syntax or set type: module in package.json.
Use import { Queue } from 'postgres-queue'.