monedula-sim-bridge
A local Go program that lets real Apache Kafka clients produce, consume and join consumer groups on a Kafka Simulator free-play cluster.
On this page
monedula-sim-bridge runs on your computer and lets your own Kafka clients talk to the Kafka Simulator playground. It listens on 127.0.0.1, takes the Kafka protocol requests of your clients and relays them over a local WebSocket to the playground tab, which answers them from the simulated cluster. Your apps show up on the canvas next to the simulated producers and consumers.
What it does
With the bridge paired to a free-play session, stock clients with their default settings can produce (idempotent, transactional or neither), consume, join consumer groups with the classic or the KIP-848 consumer protocol, commit offsets, run Kafka Streams with exactly-once, and use admin tools on topics, configs, groups, transactions and records. Kill a broker on the canvas and the real client sees the errors a real cluster sends, then moves to the new leader. How it works explains the path of a request.
Nothing connects until you ask: the playground opens no local connection before you press Connect in its Connect your apps panel, and the bridge accepts only the simulator and the pairing code it printed. See Security.
Try it
monedula-sim-bridge
It prints its version, a pairing code and the WebSocket address, then waits:
monedula-sim-bridge 1.0.1
Pairing code: K7Q2MZ
WebSocket: ws://127.0.0.1:19190/
Enter the code in free play, then point a client at bootstrap.servers=127.0.0.1:19092. Connect your first app walks through it.
Install
go install github.com/monedula-dev/monedula-sim-bridge/cmd/monedula-sim-bridge@v1.0.1VERSION=1.0.1
curl -L -o monedula-sim-bridge.tar.gz \
https://github.com/monedula-dev/monedula-sim-bridge/releases/download/v${VERSION}/monedula-sim-bridge_${VERSION}_linux_amd64.tar.gz
tar -xzf monedula-sim-bridge.tar.gz monedula-sim-bridgeBuilding from source needs Go 1.26 or newer. The release example fetches linux_amd64; the releases page has the other platforms. monedula-sim-bridge --version prints the installed version.
Verify a release archive
Each release signs one file, checksums.txt, with cosign keyless signing through GitHub OIDC, so there is no public key to manage. The archives are not signed one by one: you trust the checksums file through its signature, then check the archive against it. You need cosign and sha256sum.
VERSION=v1.0.1
curl -LO https://github.com/monedula-dev/monedula-sim-bridge/releases/download/$VERSION/checksums.txt
curl -LO https://github.com/monedula-dev/monedula-sim-bridge/releases/download/$VERSION/checksums.txt.sig
curl -LO https://github.com/monedula-dev/monedula-sim-bridge/releases/download/$VERSION/checksums.txt.pem
cosign verify-blob \
--certificate-identity-regexp '^https://github.com/monedula-dev/monedula-sim-bridge/.*' \
--certificate-oidc-issuer 'https://token.actions.githubusercontent.com' \
--signature checksums.txt.sig \
--certificate checksums.txt.pem \
checksums.txt
A successful verification prints Verified OK. Then check your archive against its line in the checksums file, before you extract it:
ARCHIVE=monedula-sim-bridge_1.0.1_linux_amd64.tar.gz
grep "$ARCHIVE" checksums.txt | sha256sum -c -
Each archive also has a Syft SBOM next to it, <archive>.sbom.json. The SBOMs are plain files, not signed attestations. To scan one for known vulnerabilities, run grype sbom:<archive>.sbom.json.
Requirements
- Chrome, Edge or Firefox. Safari blocks the local WebSocket from an https page.
- A free-play session of the playground. Scripted scenarios and embedded playgrounds do not offer the bridge.
- Kafka clients on the same computer as the bridge, which listens on
127.0.0.1only.
Where to start
- Connect your first app with the console tools.
- Use the Java client, run a consumer group and create topics.
- Watch a client fail over when you kill a broker.
- Limits before you plan anything bigger.
- The reference: command-line flags, supported APIs, error codes and compatibility.
Version and license
These docs describe monedula-sim-bridge 1.0.1. The tool is open source under the Apache-2.0 license, and its source is on GitHub.
Apache Kafka, Kafka and the Kafka logo are trademarks of the Apache Software Foundation. monedula-sim-bridge is an independent project that works with Apache Kafka clients; it is not affiliated with, endorsed by or sponsored by the ASF.