oxk is a blazing fast, modern CLI (Command Line Interface) for Apache Kafka, written in Rust. Designed for developers who need performance, simplicity, and low resource usage when interacting with Kafka clusters.
- Produce: Send messages quickly via direct text or file input.
- Consume: Stream messages in real-time with Consumer Group control.
- List: Visualize available topics in the cluster.
- High Performance: Built on top of
librdkafkaandtokio.
Ensure you have Rust and Cargo installed.
# Clone the repository
git clone https://github.com/niwau/oxk.git
cd oxk
# Install the binary to your PATH
cargo install --path .The default broker endpoint is localhost:9092. You can change it using the -b or --brokers flag.
See which topics exist in your cluster.
oxk topic list
oxk -b "kafka-prod:9092" topic listSimple Send (Key/Value):
oxk topic produce my-topic -k "id-123" -p "json payload here"Send from File: Useful for large payloads or complex JSONs.
oxk topic produce my-topic -f ./payload.jsonStarts a consumer in the default group oxk-group.
oxk topic consume my-topicCustom Consumer Group:
oxk topic consume my-topic -g "debug-group"Contributions are welcome! Feel free to open Issues or Pull Requests.
- Fork the project
- Create your Feature Branch (
git checkout -b feature/MyFeature) - Commit your changes (
git commit -m 'Add: MyFeature') - Push to the Branch (
git push origin feature/MyFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.