mqtt 4.2.8
A library for the MQTT protocol
mqtt@4.2.8 was published on 2021-06-21. Its manifest declares 14 runtime dependencies and 0 peer requirements. Type declarations are bundled according to the package metadata. The declared Node.js requirement is >=10.0.0.
All mqtt versions · Permanent reference to 4.2.8 · Latest release
Package specifications
| Version | 4.2.8 |
|---|---|
| License declaration | MIT |
| Published | 2021-06-21T18:50:40.284Z |
| Node.js requirement | >=10.0.0 |
| Type declarations | Bundled declarations |
| Runtime dependency count | 14 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 686.75 KiB |
| Published file count | 29 |
| Package type | Not declared |
| ES module entry | Not declared |
| Default entry | mqtt.js |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 38 |
| Repository stars | 9126 |
| Repository forks | 1456 |
Install mqtt 4.2.8
npm install mqtt@4.2.8 pnpm add mqtt@4.2.8 yarn add mqtt@4.2.8
Runtime dependencies
- ws ^7.5.0
- pump ^3.0.0
- debug ^4.1.1
- xtend ^4.0.2
- split2 ^3.1.0
- commist ^1.0.0
- help-me ^3.0.0
- inherits ^2.0.3
- minimist ^1.2.5
- duplexify ^4.1.1
- reinterval ^1.1.0
- mqtt-packet ^6.8.0
- concat-stream ^2.0.0
- readable-stream ^3.6.0
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- balanced-match@1.0.2 — indirect
- base64-js@1.5.1 — indirect
- bl@4.1.0 — indirect
- brace-expansion@1.1.21 — indirect
- buffer@5.7.1 — indirect
- buffer-from@1.1.2 — indirect
- commist@1.1.0 — direct
- concat-map@0.0.1 — indirect
- concat-stream@2.0.0 — direct
- debug@4.4.3 — direct
- duplexify@4.1.3 — direct
- end-of-stream@1.4.5 — indirect
- fs.realpath@1.0.0 — indirect
- glob@7.2.3 — indirect
- help-me@3.0.0 — direct
- ieee754@1.2.1 — indirect
- inflight@1.0.6 — indirect
- inherits@2.0.4 — direct
- leven@2.1.0 — indirect
- minimatch@3.1.5 — indirect
- minimist@1.2.8 — direct
- mqtt-packet@6.10.0 — direct
- ms@2.1.3 — indirect
- once@1.4.0 — indirect
- path-is-absolute@1.0.1 — indirect
- process-nextick-args@2.0.1 — indirect
- pump@3.0.4 — direct
- readable-stream@3.6.2 — direct
- reinterval@1.1.0 — direct
- safe-buffer@5.2.1 — indirect
- split2@3.2.2 — direct
- stream-shift@1.0.3 — indirect
- string_decoder@1.3.0 — indirect
- typedarray@0.0.6 — indirect
- util-deprecate@1.0.2 — indirect
- wrappy@1.0.2 — indirect
- ws@7.5.13 — direct
- xtend@4.0.2 — direct
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Code-Review | 3/10 — Found 10/28 approved changesets -- score normalized to 3 |
|---|---|
| Maintained | 4/10 — 3 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 4 |
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| Pinned-Dependencies | 3/10 — dependency not pinned by hash detected -- score normalized to 3 |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| License | 9/10 — license file detected |
| Fuzzing | 0/10 — project is not fuzzed |
| Security-Policy | 0/10 — security policy file not detected |
| SAST | 2/10 — SAST tool is not run on all commits -- score normalized to 2 |
Evidence and freshness
- https://registry.npmjs.org/mqtt/4.2.8 — retrieved 2026-10-29T10:32:35.767Z
- https://api.deps.dev/v3/projects/github.com%2Fmqttjs%2FMQTT.js — retrieved 2026-10-29T06:02:50.407Z
- https://api.deps.dev/v3/systems/npm/packages/mqtt/versions/4.2.8:dependencies — retrieved 2026-10-29T10:32:36.350Z
- https://api.deps.dev/v3/systems/npm/packages/mqtt/versions/4.2.8 — retrieved 2026-10-29T10:32:36.323Z