Skip to content
JS
Package

mqtt

A library for the MQTT protocol

v5.16.0, 16 Sept 2026MITESM + CommonJSTypes: BundledWebSockets and realtime
$ npm install mqtt

Key numbers

As of 25 Sept 2026
Weekly downloads
1.8m
+60% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
15
Direct, from package.json
Last release
8 days ago
v5.16.0
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3mSept 2025Mar 2026Sept 2026High 2.6m (25 Aug 2026)Low 854k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

1,843,375 downloads last week, 9,379,951 in the last month. The 12-month change of +60% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
4208 in total
Latest version
5.16.0, 16 Sept 20268 days ago
First published
12 Feb 2013
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
-

Major versions

  1. v5 first release 5.0.0, 25 Jul 2023
  2. v4 first release 4.0.0, 27 Apr 2020
  3. v3 first release 3.0.0, 27 May 2019
  4. v2 first release 2.0.0, 15 Sept 2016
  5. v1 first release 1.0.0, 13 Jan 2015
  6. v0 first release 0.1.8, 12 Feb 2013

Recent releases

VersionPublished
5.16.016 Sept 2026
5.15.26 Jul 2026
5.15.124 Mar 2026
5.15.02 Feb 2026
5.14.14 Sept 2025
5.14.030 Jul 2025
5.13.318 Jul 2025
5.13.27 Jul 2025
5.13.13 Jun 2025
5.13.09 May 2025
5.12.16 May 2025
5.12.028 Apr 2025
5.11.123 Apr 2025
5.11.010 Apr 2025
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=16.0.0
Runtimes
-
Unpacked size (npm)
1.8 MB
Dependencies (15)
wsrfdcdebugsockssplit2commisthelp-meminimist@types/wslru-cachemqtt-packetconcat-streamworker-timersreadable-stream@types/readable-stream
npm install mqtt

CDN

jsDelivr: 377.7k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/mqtt@5.16.0/
  • unpkghttps://unpkg.com/mqtt@5.16.0/
  • esm.shhttps://esm.sh/mqtt@5.16.0
PackageWeekly downloadsGzipLast releaseModuleComparison
pubsub-js235.4k--CommonJS-
Sources: npm registry, npm downloads API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet.