Skip to content

0004. Postgres with Drizzle ORM

Source: docs/decisions/0004-postgres-drizzle.md. Generated at build time; edit the source file.

Date: 2026-11-21 Status: Accepted

The data is relational (users, games, moves, metrics, KPI snapshots) and needs heavy aggregation.

Postgres 17 with Drizzle ORM (Apache-2.0) and SQL migrations.

Prisma, MongoDB, ClickHouse for analytics.

Only one database to run. Revisit a columnar store only if KPI aggregation gets slow.

See docs/superpowers/specs/2026-11-21-chess-improver-design.md.