pg-notify

JSON →
library 1.0.6 ·javascript
verified Jun 5, 2026

pg-notify (v1.0.6) is a lightweight Postgres pub/sub client using PostgreSQL's built-in NOTIFY/LISTEN commands, built on top of the popular pg library. It provides automatic reconnection, payload size validation (default max 7999 bytes to match PostgreSQL's limit), and channel/payload sanitization. Active maintenance with frequent releases, focused on simplicity and minimal overhead compared to alternatives like pg-pubsub or message brokers.