finds.dev

edenhill/kcat

Generic command line non-JVM Apache Kafka producer and consumer

View on GitHub

★ 5,790CNOASSERTIONupdated Jul 2024

// the take

kcat (formerly kafkacat) is a command-line producer and consumer for Apache Kafka, built directly on librdkafka with no JVM dependency. It's aimed at anyone who needs to poke at a Kafka cluster from a terminal or shell script — ops debugging, piping data in/out of topics, inspecting metadata — without spinning up a Java client.

Exposes nearly the full librdkafka configuration surface via -X, so SASL/SSL, idempotent/transactional producing, and consumer group behavior are available without writing any code. The -M mock cluster mode spins up an in-memory broker for testing, which is genuinely useful for CI or quick experiments with no real Kafka to connect to. Output format strings (-f) and JSON envelope mode (-J) make it easy to wire into shell pipelines (jq, grep, etc.) rather than forcing a fixed output shape. Statically linked binary under 150KB means you can scp it onto a box with nothing else installed and start debugging immediately.

Last push is mid-2024, so it's gone quiet for well over a year — fine for a stable utility, but don't expect fast turnaround on bugs or new protocol features. Avro/Schema Registry support requires libavro-c and libserdes compiled in locally, which most prebuilt packages (apt, brew) don't include, so decoding Avro payloads often means building from source yourself. There's no support for Protobuf or JSON Schema from the Schema Registry, only Avro, which is a real gap now that Confluent pushes Protobuf as the default for new topics. As a thin CLI wrapper, its behavior is tightly coupled to whatever librdkafka version it was built against, so subtle protocol or performance differences can appear across distro packages without any version pinning visibility from the kcat side.

We read the README, the directory tree and a key source file in October 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
5,790
Forks
498
Language
C
License
NOASSERTION
Last commit
9 Jul 2024

// nearby

If kcat isn't quite it.

All repos →