HUB
Sign inSign up

khusshvii54/coffeeql

By khusshvii54

•Updated 5 days ago

Self-hosted server that runs CoffeeQL queries on your databases, with safe writes and undo

Image
0

2.6K

khusshvii54/coffeeql repository overview

⁠CoffeeQL server

One query language for PostgreSQL, MySQL, MongoDB and Redis, with every write recorded and undoable.

coffeeql-server runs CoffeeQL queries against your own databases. Every change it makes is journaled with the rows before and after, so any write can be reverted. AI tools reach it over MCP, and it can link to code.coffeeql.dev⁠ to show those changes and your databases in a dashboard.

⁠Tags

TagWhat it is
latest, 0.4, 0.4.4The current release. latest always follows the newest one.
0.4.4-amd64, 0.4.4-arm64One architecture only. You rarely need these: the tags above pick the right one.

Images are built for linux/amd64 and linux/arm64 (Apple silicon, Graviton, Raspberry Pi 4/5).

⁠Run it

docker run -d --name coffeeql -p 3080:3080 \
  -e COFFEEQL_TOKEN=change-me-to-a-long-random-value \
  -e COFFEEQL_ALLOWED_CONNECT_HOSTS=host.docker.internal \
  -v coffeeql-state:/var/lib/coffeeql \
  khusshvii54/coffeeql

Then open http://localhost:3080⁠ (Studio) and give it the token. Every API call needs Authorization: Bearer <token>. Without COFFEEQL_TOKEN, the first start makes one and prints it once: docker logs coffeeql.

A database on your own computer is host.docker.internal from inside the container (Docker Desktop), and its host must be allowed with COFFEEQL_ALLOWED_CONNECT_HOSTS.

Make a server key on Settings → Servers in the dashboard and pass it:

docker run -d -p 3080:3080 -e COFFEEQL_TOKEN=… -e COFFEEQL_LINK_KEY=cql_srv_… khusshvii54/coffeeql

The server then takes its plan from your account, sends its commits to the project's commit list, connects the databases you save on the dashboard, and can be asked to revert a commit from there.

⁠Settings

VariableDefaultWhat it does
COFFEEQL_TOKENgeneratedAPI token(s), comma separated.
COFFEEQL_ALLOWED_CONNECT_HOSTSlocalhost,127.0.0.1Database hosts the server may connect to.
COFFEEQL_LINK_KEYnoneLinks the server to a code.coffeeql.dev project.
COFFEEQL_SYNC_ROWS10 sends commits to the dashboard without their rows.
COFFEEQL_REMOTE_REVERT10 refuses reverts asked for on the dashboard.
COFFEEQL_TRUSTED_PROXIESnoneAddress or range of a proxy in front of it, for per-client rate limits.
COFFEEQL_STATE_DIR/var/lib/coffeeqlToken hash, link and licence proof. Keep it on a volume.
PORT3080Port to listen on.

⁠Health

GET /health needs no token and is what the image's HEALTHCHECK calls. GET /ready says whether any database is connected.

⁠Security

The image runs as a non-root user, keeps only the SHA-256 of generated tokens, and never sends connection strings to the dashboard (only collection names and masked addresses).

Tag summary

Content type

Image

Digest

sha256:d94537e55…

Size

43.1 MB

Last updated

5 days ago

docker pull khusshvii54/coffeeql