Skip to content
CAI
Software that uses CAICheck a score

embeddedkafka/embedded-kafka

57.7

Adequate · 6 November 2026

1.6k

lines of production code

Scala

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Added embedded Kafka Connect server support

Users can now run an embedded Kafka Connect server within tests using the new \EmbeddedKafkaConnect\ trait and \startConnect\ method. This allows starting a Connect instance with configurable ports, offset storage paths, and extra configuration, executing a code block while the server is active, and automatically stopping it afterwards.

kafka-connect/src/main · high confidence

Added support for running embedded Kafka Streams in tests

Users can now execute Kafka Streams topologies against an embedded Kafka instance using the new \EmbeddedKafkaStreams\ trait. This addition provides \runStreams\ and \runStreamsOnFoundPort\ methods that automatically create specified topics, start a \KafkaStreams\ instance with a unique application ID and temporary state directories, and allow users to run test code blocks while the streams are active. The implementation handles configuration mapping and ensures the streams are properly closed after the test block completes.

kafka-streams/src/main · high confidence

Initial project setup with embedded-kafka 4.0.0 and Scala 2.13

The repository is initialized with the embedded-kafka library configured for Kafka 4.0.0 and Scala 2.13. This version requires Java 17+ and uses a combined broker/controller mode without Zookeeper, meaning users must configure \controllerPort\ instead of \zookeeperPort\. The project is formatted with scalafmt 3.11.5, licensed under MIT, and includes documentation for the new compatibility matrix and upgrade paths.

(repo-wide) · high confidence

Removals

Removal of legacy EmbeddedKafka trait

The legacy \EmbeddedKafka\ trait in \src/main/scala/net/manub/embeddedkafka/EmbeddedKafka.scala\ has been removed. This trait previously provided a \withEmbeddedKafka\ method that manually instantiated ZooKeeper and Kafka servers with hardcoded ports (6000 and 6001) and basic configurations. Its removal indicates a shift toward newer, more robust embedded Kafka implementations (such as the \withRunningKafka\ or \EmbeddedKafka\ objects mentioned in commit history) that offer better lifecycle management, configuration flexibility, and shutdown handling.

src/main · high confidence

Behavioural changes

Migrated embedded Kafka to KRaft mode with new package structure

The embedded Kafka implementation has been migrated from ZooKeeper-based startup to the new KRaft (Kafka Raft) mode, requiring explicit configuration of both broker and controller ports (defaulting to 6001 and 6002 respectively) and introducing a \controllerPort\ parameter in \EmbeddedKafkaConfig\. The library has moved to the \io.github.embeddedkafka\ package, and the codebase has been restructured into a modular trait-based architecture (\AdminOps\, \ConsumerOps\, \ProducerOps\, \KafkaOps\) to improve maintainability and separation of concerns.

embedded-kafka/src/main · high confidence

Test coverage

Added comprehensive test suite for EmbeddedKafka; Added test logging configuration for embedded Kafka; Added test utilities for JSON serialization; Added tests for Kafka Streams integration; Added tests for the embedded Kafka Connect server; Removal of legacy EmbeddedKafkaSpec test suite.

Dependencies

Reorganized build into multi-module structure with Scala 2.13/3 support

The project has been restructured from a single module into three sub-modules: embedded-kafka, kafka-streams, and kafka-connect, with dependencies now managed via a centralized Dependencies.scala file. The build targets Scala 2.13 and 3, replacing the previous Scala 2.11 target, and includes updated settings for compilation, testing, coverage, and release processes.

(dependencies) · high confidence

Upgrade to SBT 2.x and modernize build configuration

The build system has been upgraded from SBT 0.13.8 to SBT 2.0.10, requiring users to have a compatible SBT version installed. The project now uses a centralized \Dependencies.scala\ file to manage versions for Scala 2.13 (2.13.18), Scala 3 (3.3.8), Kafka (4.3.1), and other libraries. Several SBT plugins have been updated or added, including sbt-release (1.5.0), sbt-scalafmt (2.6.2), sbt-ci-release (1.12.1), sbt-scoverage (2.4.4), and sbt-tpolecat (0.5.7).

project · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 59 → 58 (-1.5)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 63 → 63 (+0.0)
  • Architecture 100 → 100 (+0.0)
  • Maturity 51 → 51 (+0.0)
  • Readiness 60 → 58 (-1.5)
  • Security 79 → 65 (-13.9)

Resolved (3)

  • Documentation: no installation or build instructions (README.md)
  • Documentation: no usage examples (README.md)
  • Outdated: com.fasterxml.jackson.module:jackson-module-scala_2.13

New (1)

  • Dependency hygiene PARTLY measured — sbt declarations read, dependency currency not (Maven Central unreachable)

Changes since last survey

  • 3 commits — 3 feature/other, 0 fixes

By area

  • (root) — 1 commit
  • project/Dependencies.scala — 1 commit
  • project/build.properties — 1 commit

Notable commits

  • change: Update sbt to 2.0.12
  • change: Update scala3-library to 3.3.9
  • change: renovate: stop suggesting upgrades for V3 branch

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

embeddedkafka/embedded-kafka was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 6 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit bad53718b8cd7ff181b899e1e80ad66967350efd — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-60d1b390edf0.