Back to gallery
RayElg/kafgres on GitHub — open-source project preview
RayElg
Built byRayElg/

kafgres

Stars
431
Forks
0
Watchers
0
Open issues
0
main Updated 11 hours ago~431 stars/day lifetime
Editor's take

kafgres is a Postgres extension that runs a Kafka broker inside Postgres, so librdkafka, the Java client, kcat and other Kafka clients connect on port 9092. It matters because you can insert a row and publish an event in one transaction, which removes the outbox table and relay process most event-driven apps build by hand. Prebuilt Docker images cover Postgres 13 to 18 on amd64 and arm64. Tradeoffs: it is a one-person project with about 24 commits, and the license is Elastic License 2.0, which is source-available, not open source, and restricts offering it as a managed service. Your Postgres also becomes your message broker, so its load and failure modes are now shared. About 430 stars.

Use this if

You need transactional events from Postgres and want Kafka clients without running a Kafka cluster.

Skip if

You need high-throughput streaming or a permissive license; real Kafka or Redpanda is the safer bet.

Database & ORM
Quick install
# Clone + explore:
git clone https://github.com/RayElg/kafgres
cd kafgres
# Then read the README below for setup steps.

Inferred from package · always double-check against the official README below.

Live data via GitHub REST API · Cached 30 min · Created 24 Nov 2026