@openbooking-sh/postgres
v0.12.0
Published
Postgres storage for OpenBooking: bookings and holds, idempotency, Studio activity and connector records.
Maintainers
Readme
@openbooking-sh/postgres
Postgres storage. Durable stores for everything OpenBooking keeps: bookings and holds (with a per-resource lock so two servers can never sell the same time), idempotency records, Studio activity, Cal.com records, and the hosted account, calendar, email and rate-limit stores. Works with pg pools and PGlite.
Part of OpenBooking: open-source booking that every AI assistant can use.
npm install @openbooking-sh/postgresUsage
import { connectPostgres, migrate, postgresStores } from '@openbooking-sh/postgres';
const db = connectPostgres(process.env.DATABASE_URL!);
await migrate(db); // idempotent; safe on every start
const stores = postgresStores(db);
// stores.bookings, stores.idempotency, stores.activity, stores.calcom, ...Learn more
- OpenBooking on GitHub: the full SDK, docs and examples
- openbooking.sh
Apache-2.0
