@authai-io/relay-store-postgres
v0.1.0
Published
Postgres storage driver for the AuthAI relay. Multi-instance persistence for self-hosted and cloud deploys.
Readme
@authai-io/relay-store-postgres
Postgres storage driver for the AuthAI relay. Multi-instance persistence — used by AuthAI Cloud and any horizontally-scaled self-host.
Use
import { createRelayApp } from "@authai-io/relay";
import { createPostgresStore } from "@authai-io/relay-store-postgres";
const store = await createPostgresStore({
connectionString: process.env.DATABASE_URL!,
});
const app = createRelayApp({ store, /* ... */ });For single-instance deploys, @authai-io/relay-store-sqlite is simpler.
See docs/installation.md for the full self-hosting walk-through.
