PostgreSQL storage adapter for boardgame.io, version 1.0.16. Uses Sequelize ORM under the hood to persist game state to PostgreSQL (or other SQL databases with JSON support). Designed for boardgame.io >=0.40.0, ships TypeScript types, and requires Node >=20. Different from the built-in in-memory or flat-file stores by providing a scalable, persistent database backend suitable for production multiplayer games. Release cadence is irregular; latest update is stable but the package is relatively small with limited maintenance.
npm install bgio-postgresNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a PostgresStore instance with a connection URI and use it with boardgame.io server.
Upgrade Node to version 20 or higher.
Upgrade boardgame.io to version 0.40.0 or higher.
Monitor for v2 breaking changes if Sequelize v7 becomes default.
Either use URI alone or options alone; do not mix URI with options that override connection parameters.
Ensure your database engine supports JSON (Postgres, MySQL, SQLite). For others, test thoroughly.
Use import syntax or set type: module in package.json. For Node <20, upgrade Node.
Provide either a full URI as first argument or an options object with all required fields (database, username, password, host).
Install boardgame.io: npm install boardgame.io@>=0.40.0