{"library":"bun-pg-listen","type":"library","category":null,"description":"Zero-dependency polyfill for PostgreSQL LISTEN/NOTIFY in Bun, currently at v0.1.1 with active development. Since Bun's built-in sql driver does not implement LISTEN/NOTIFY, this library provides a temporary, drop-in replacement that mirrors Bun.sql's connection configuration (env vars, URL, inline options) and adds SCRAM-SHA-256 authentication (RFC 7677), exponential backoff reconnection with automatic re-LISTEN, and TLS support (sslmode=require/verify-ca/verify-full). Designed to be removed once Bun native support lands (tracking issue oven-sh/bun#18214). Unlike alternatives like pg or postgres.js, it has zero runtime dependencies and focuses solely on the listen/notify pub/sub pattern for Bun >= 1.2 and Postgres >= 13.","language":"javascript","status":"active","version":"0.1.1","tags":["javascript","bun","postgres","postgresql","listen","notify","pubsub","sasl","scram"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install bun-pg-listen","imports":["import { PgListener } from 'bun-pg-listen'","const { PgListener } = await import('bun-pg-listen')","import PgListener from 'bun-pg-listen'"]},{"cmd":"yarn add bun-pg-listen","imports":[]},{"cmd":"pnpm add bun-pg-listen","imports":[]}],"homepage":"https://github.com/kklimuk/bun-pg-listen#readme","github":"https://github.com/kklimuk/bun-pg-listen","docs":null,"changelog":null,"pypi":null,"npm":"bun-pg-listen","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}