Postgres sink and read API for llmmeter, designed for self-hosted, multi-instance production deployments. Current stable version is 0.1.1. The package auto-creates the database schema on first write and supports batching, configurable flush intervals, and skip of schema initialization. It ships TypeScript types and requires Node >=18.18.0. Compared to the default in-memory store, it provides persistence, scalability, and query capabilities for production use.
npm install llmmeter-postgresNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Postgres sink with connection string, batch size, and flush interval for production llmmeter deployments.
Use import syntax instead of require().
Set skipSchemaInit: true in config and run migrations manually.
Pin dependency and test upgrades thoroughly.
Switch to import syntax or use dynamic import() if in CJS context.
Grant CREATE privilege or set skipSchemaInit: true and run manual migrations.
No dependency data recorded yet.