PostgreSQL backend for the zag metrics system, providing persistent storage and querying for time-series metrics data. Current stable version 1.0.0 requires TimescaleDB for hypertable support. Release cadence is low, as the package appears stable and mature. Key differentiator: integrates directly with zag's metrics pipeline, leveraging PostgreSQL and TimescaleDB for efficient time-series storage.
npm install zag-backend-pgNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a new PostgreSQL backend instance, connects to the database using environment variables for configuration.
Install TimescaleDB extension in PostgreSQL before running setup.
Run `./bin/setup.js` with appropriate database connection parameters.
Install 'zag' alongside 'zag-backend-pg': npm install zag zag-backend-pg
Run the setup script `./bin/setup.js` against your PostgreSQL database.