Monedula

monedula-sim-bridge v1.0.1, Apache-2.0

Connect your own Kafka apps to the simulator

monedula-sim-bridge runs on your computer and speaks the Kafka protocol on 127.0.0.1. Pair it with a free-play session of the Kafka Simulator, point a client at 127.0.0.1:19092, and your producers and consumers work against the simulated cluster while the canvas shows them as apps. Kill a broker and watch the real client fail over.

go install
go install github.com/monedula-dev/monedula-sim-bridge/cmd/monedula-sim-bridge@v1.0.1
GitHub Release
VERSION=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-bridge
terminal
monedula-sim-bridgemonedula-sim-bridge 1.0.1Pairing code: K7Q2MZWebSocket:    ws://127.0.0.1:19190/# enter the code in Connect your apps, then, in another terminal:kafka-console-producer.sh --bootstrap-server 127.0.0.1:19092 --topic orders

The pairing code is new on every start.

How it works

  1. 01

    Run monedula-sim-bridge

    Start the bridge. It prints a six-character pairing code and waits on 127.0.0.1.

  2. 02

    Pair Connect your apps

    In free play, open Connect your apps, enter the code and press Connect. Nothing reaches your computer before that click.

  3. 03

    Point bootstrap.servers

    Set bootstrap.servers=127.0.0.1:19092. Each simulated broker listens on its own port from 19092 up.

  4. 04

    Watch watch the canvas

    Each client appears on the canvas as an app, and its records land in the simulated partitions.

  5. 05

    Break kill a broker

    Kill a broker on the canvas. The client gets the errors a real cluster sends and moves to the new leader.

39
Kafka APIs the bridge speaks
200
records per second per app
1000
newest records kept per partition
  1. Your Kafka app console tools, Java, Go
  2. monedula-sim-bridge Kafka protocol on 127.0.0.1
  3. Playground tab the simulated cluster
  4. Canvas your app next to the simulated ones
The client talks Kafka to the bridge on your computer; the bridge relays each request over a local WebSocket to the playground tab, which answers it from the simulated cluster.

Stock clients with their default settings

The bridge answers the Kafka protocol itself, so there is no client library to swap: the console tools, Java kafka-clients, franz-go and librdkafka-based tools connect as they would to any broker. Producers can be idempotent and transactional, consumers can join groups with the classic or the KIP-848 consumer protocol and move between them, and admin clients can create and delete topics, describe groups and run the transaction tools.

Compatibility

client.properties
# Any Kafka client: the bridge is the bootstrap server
bootstrap.servers=127.0.0.1:19092
# Defaults are fine: idempotence on, classic group protocol
group.id=my-app

Failure lab

Kill a broker, watch a real client recover

The bridge opens one listener per simulated broker and closes it when the broker dies. Leadership moves on the canvas, the client sees the errors a real cluster would send, refreshes its metadata and carries on against the new leader. A Java consumer keeps its group even when the broker you kill is the group coordinator.

Watch a client fail over

Tested end to end
Java producer
default settings, idempotence on; writing to a new topic creates it
Java group
two consumers split the partitions and rebalance
Java consumer
keeps going when its group coordinator broker is killed
franz-go producer
default settings: idempotent, snappy compression
franz-go group
a restarted group resumes from its committed offset

Opt in with a click, every time

A web page should never reach into your computer on its own. The playground opens no local connection until you press Connect, and the bridge accepts only the simulator and a pairing code you typed.

Security

Four safeguards
1Every port listens on 127.0.0.1 only. No flag binds another address.
2The WebSocket accepts only the Kafka Simulator's own origins.
3A six-character pairing code, new on every start, and one paired tab at a time.
4No outbound connections, no files written, and nothing from your apps goes into a share link.

What it does not do

The simulator is a teaching cluster, not a test broker, and the bridge says no where it would otherwise pretend.

Limits

  • Transactions and the KIP-848 consumer protocol on some diskless setups, which answer as their implementations do.
  • Joining a group the simulator runs itself: pick a group id of your own.
  • TLS, SASL and clients on another machine: every port is plaintext on 127.0.0.1.
  • ACLs and broker config changes: the bridge has no authorizer, and broker configs are read-only.
  • Scripted scenarios and embeds: the bridge pairs with free play in the full playground only.
  • Safari, which blocks ws://127.0.0.1 from an https page.

Install

go install
go install github.com/monedula-dev/monedula-sim-bridge/cmd/monedula-sim-bridge@v1.0.1
GitHub Release
VERSION=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-bridge

Release archives for Linux, macOS and Windows on amd64 and arm64 are on the releases page. Building from source needs Go 1.26 or newer. Next: connect your first app.

Questions

Does anything leave my computer?
No. The bridge listens on 127.0.0.1, makes no outbound connections and writes no files. Your records go from the client to the bridge and over a local WebSocket to the playground tab, and they stay in that tab: the playground keeps them in memory and leaves them out of every share link. See security.
Which clients work?
Any client that speaks the Kafka protocol and uses the APIs the bridge advertises: the console tools, Java kafka-clients, franz-go and librdkafka-based tools. Default settings work, idempotent producers, transactions with read_committed consumers and both consumer group protocols included, with exceptions on some diskless setups. See compatibility and supported APIs.
Why is my producer slow?
The playground admits 200 records a second per app and asks the client to slow down with Kafka's own throttle time. The simulated cluster runs at the pace of the canvas, one step per tick, so you can watch each record arrive. See limits.
Can I use it at work?
Yes. Apache-2.0 allows commercial use, modification and redistribution as long as you keep the license and notices. Apache Kafka is a trademark of the Apache Software Foundation; monedula-sim-bridge is an independent project that works with Apache Kafka clients and is not affiliated with, endorsed by or sponsored by the ASF.

Support

Help from the people who build it

We can help you run monedula-sim-bridge across a large estate, from design to day-to-day operations.

Part of
Monedula Flock

More free tools for Apache Kafka from the same team. About Flock

Go, AGPL-3.0, v1.1.0

monedula-gitops

GitOps for Apache Kafka: topics, access, quotas, schemas, SCRAM users and Confluent RBAC, from a CLI or a Kubernetes operator.

Go, AGPL-3.0, v0.20.0

monedula-acl-rbac-converter

A CLI that converts Apache Kafka ACLs into Confluent RBAC role bindings through a checksummed plan and verifies effective access before any ACL is deleted.

Go, Apache-2.0, v0.25.0

monedula-sim-link

A read-only Go CLI that turns a real Kafka cluster into a shareable Kafka Simulator link, with an MCP server for AI agents.

Free, runs in your browser

Kafka Simulator

An interactive, deterministic Apache Kafka simulator in the browser: break a cluster, scrub the timeline and read why it reacted.