pg-listener

JSON →
library 1.1.3 ·javascript
verified Jun 5, 2026

pg-listener is a lightweight PostgreSQL NOTIFY/LISTEN client designed to work exclusively with pg-promise (v10+). At version 1.1.3, it provides automatic reconnection via retry-async, zero external dependencies besides pg-promise, and full TypeScript support. It simplifies listening to multiple channels on a single connection, supports both event-based and async iterable consumption of notifications, and offers configurable retry strategies for initial and ongoing connections. It differentiates from raw pg-promise usage by abstracting connection management and providing higher-level ergonomics for PostgreSQL notifications.