pgrls-test
JSON →Code-first RLS testing for Postgres — TypeScript port of pgrls.testing (Python). Current stable version is 0.6.3, with a release cadence of minor versions every few months. Implements the cross-language Layer 1 protocol (PROTOCOL_VERSION 1). Key differentiators: per-test transactions with role and JWT-claims switching, five RLS-specific assertion helpers (assertRows, assertRejected, etc.), and works with both pg and postgres.js drivers without forking or replacing your existing Postgres client. ESM-only, requires Node.js >=20, and ships TypeScript types.