emqx/emqtt
62.7
Adequate · 13 November 2026
5.2k
lines of production code
Erlang
primary language
8
measurements over time
What this system is
This system is an Erlang-based MQTT v5.0 client library that supports TCP, WebSocket, and QUIC transports. It provides core publish/subscribe APIs, reconnection logic, and a command-line interface for interacting with MQTT brokers. The project includes comprehensive test coverage for protocol behaviors and transports, along with packaging infrastructure for Debian and RPM distributions.
Features
Add Debian packaging infrastructure for emqtt
This change introduces the build system and metadata required to create .deb packages for the emqtt Erlang MQTT client. It adds a Makefile to orchestrate the build, a debian/rules file to define the build and install steps, a control file specifying the package name, dependencies, and description, a changelog, copyright, and a post-installation script that sets permissions and creates symlinks for the emqtt and emqtt\_cli binaries in /usr/bin.
packages/deb · high confidence
Added RPM packaging infrastructure for emqtt
Introduced a new Makefile and emqtt.spec file in the packages/rpm directory to automate the build and installation of RPM packages for the emqtt Erlang MQTT client. This change enables users to generate versioned RPM artifacts and handles the installation of the emqtt and emqtt\_cli binaries to the system path during package installation.
packages/rpm · high confidence
Added public type definitions and structured logging macros
The library now exposes public Erlang record and macro definitions in the include directory, allowing users to directly reference MQTT protocol constants (such as QoS levels, packet types, and V5 reason codes) and internal packet structures like \mqtt\_packet\_connect\. Additionally, a new \logger.hrl\ header introduces structured logging macros (\SLOG\) that integrate with the Erlang/OTP logger, providing automatic metadata injection (module, function, line) for library log messages.
include · high confidence
Initial release of the Erlang MQTT v5.0 client library
This change introduces the emqtt library, an Erlang MQTT v5.0 client that supports TCP, WebSocket, and QUIC transports. It provides a full set of publish/subscribe APIs, handles reconnection logic, and includes a command-line interface (CLI) for connecting, publishing, and subscribing. The implementation relies on the gun library for HTTP/WebSocket handling and the quicer library for QUIC support.
src · high confidence
Behavioural changes
emqtt now requires Erlang/OTP 27 and upgrades WebSocket dependencies
The minimum supported Erlang/OTP version has been raised to 27.0, enforced in rebar.config, which also drops support for older OTP releases in the build matrix. To support this requirement and improve compatibility, the project has upgraded its WebSocket dependencies: cowlib is pinned to \~\> 2.13 and gun to \~\> 2.1, allowing emqtt to coexist with other packages requiring newer 2.x releases. Additionally, the build system now bundles rebar3 3.27.0 and includes a pre-compile script to dynamically manage the gun dependency based on WebSocket support flags.
(repo-wide) · high confidence
Test coverage
Added release upgrade testing and helper scripts; Expanded test coverage for MQTT client features and transports.
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 64 → 63 (-1.6)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.
Lenses
- Code Health 94 → 94 (+0.0)
- Architecture 100 → 100 (+0.0)
- Maturity 53 → 50 (-3.4)
- Readiness 67 → 67 (+0.0)
- Security 68 → 68 (+0.0)
Resolved (3)
- Documentation: no architecture or design documentation (README.md)
- Hotspot: src/emqtt.erl (src/emqtt.erl)
- No ADRs found
New (7)
- Edited copy of a member (10 corresponding lines) (src/emqtt.erl)
- Edited copy of a member (12 corresponding lines) (src/emqtt.erl)
- Edited copy of a member (17 corresponding lines) (src/emqtt_quic.erl)
- Edited copy of a member (4 corresponding lines) (src/emqtt.erl)
- Edited copy of a member (6 corresponding lines) (src/emqtt.erl)
- Edited copy of a member (6 corresponding lines) (src/emqtt_inflight.erl)
- No ADRs found (rebar.config)
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
emqx/emqtt 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 13 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 400e8c8b298782aca661f86156b321cf803e0791 — the exact code this score is about.
- Scored under rubric-2026.11.3 — 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.61+preprod-b8b1a43ae4c3.