{"_id":"@authai-io/relay-store-postgres","name":"@authai-io/relay-store-postgres","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@authai-io/relay-store-postgres","version":"0.1.0","description":"Postgres storage driver for the AuthAI relay. Multi-instance persistence for self-hosted and cloud deploys.","homepage":"https://authai.io","repository":{"type":"git","url":"git+https://github.com/authai-io/authai.git","directory":"packages/relay-store-postgres"},"license":"MIT","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"publishConfig":{"access":"public"},"dependencies":{"pg":"^8.13.1","@authai-io/relay":"0.1.0"},"devDependencies":{"@types/node":"^22.10.1","@types/pg":"^8.11.10","typescript":"^5.6.3","vitest":"^2.1.5"},"scripts":{"build":"tsc -p tsconfig.json","test":"vitest run"},"_id":"@authai-io/relay-store-postgres@0.1.0","bugs":{"url":"https://github.com/authai-io/authai/issues"},"_integrity":"sha512-8ZYU/3fzlJEQ6l+3U/HVV/TAr+fJmYZ1nhj6vwOENCh9Cl/YIcjtA9nhRapdk5HmWHwR2YGIR6POC58BHfLiUQ==","_resolved":"/private/var/folders/y0/__p4774x4kz6qyzbll13zqwc0000gn/T/beab324941bdb2d02d31c5f9dc7e8b33/authai-io-relay-store-postgres-0.1.0.tgz","_from":"file:authai-io-relay-store-postgres-0.1.0.tgz","_nodeVersion":"22.22.2","_npmVersion":"10.9.7","dist":{"integrity":"sha512-8ZYU/3fzlJEQ6l+3U/HVV/TAr+fJmYZ1nhj6vwOENCh9Cl/YIcjtA9nhRapdk5HmWHwR2YGIR6POC58BHfLiUQ==","shasum":"fb34fee504ba0c2178ddd9af7ab9619136ad2151","tarball":"https://registry.npmjs.org/@authai-io/relay-store-postgres/-/relay-store-postgres-0.1.0.tgz","fileCount":10,"unpackedSize":58757,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIACnCPRD2FA9//0+Xq/qWRzHnIaBrp9ReFgLR1Kz3wK2AiEA5QBYBLWYWXf5fNcx5MNzFKHxuofkWHdY+ZunlhhNQiA="}]},"_npmUser":{"name":"riccardoio","email":"me@riccardo.io"},"directories":{},"maintainers":[{"name":"riccardoio","email":"me@riccardo.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/relay-store-postgres_0.1.0_1781035771569_0.5665604261115942"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-09T20:09:31.331Z","0.1.0":"2026-06-09T20:09:31.694Z","modified":"2026-06-09T20:09:31.929Z"},"maintainers":[{"name":"riccardoio","email":"me@riccardo.io"}],"description":"Postgres storage driver for the AuthAI relay. Multi-instance persistence for self-hosted and cloud deploys.","homepage":"https://authai.io","repository":{"type":"git","url":"git+https://github.com/authai-io/authai.git","directory":"packages/relay-store-postgres"},"bugs":{"url":"https://github.com/authai-io/authai/issues"},"license":"MIT","readme":"# @authai-io/relay-store-postgres\n\nPostgres storage driver for the [AuthAI](https://authai.io) relay. Multi-instance persistence — used by AuthAI Cloud and any horizontally-scaled self-host.\n\n## Use\n\n```ts\nimport { createRelayApp } from \"@authai-io/relay\";\nimport { createPostgresStore } from \"@authai-io/relay-store-postgres\";\n\nconst store = await createPostgresStore({\n  connectionString: process.env.DATABASE_URL!,\n});\nconst app = createRelayApp({ store, /* ... */ });\n```\n\nFor single-instance deploys, [`@authai-io/relay-store-sqlite`](https://www.npmjs.com/package/@authai-io/relay-store-sqlite) is simpler.\n\nSee [docs/installation.md](https://github.com/authai-io/authai/blob/main/docs/installation.md) for the full self-hosting walk-through.\n","readmeFilename":"README.md","_rev":"1-ef161aa337f8f7b383e3417c50c09060"}