qmetrics.net

MQTT.js

JavaScript MQTT client for Node.js and browsers

MQTT.js is a client library for the MQTT protocol in JavaScript. It targets Node.js and browser environments and can connect to brokers over TCP, TLS, and WebSockets.

Overview

MQTT.js implements an MQTT client you embed in Node.js or browser applications. It speaks to brokers using protocols such as mqtt, mqtts, ws, wss, and related variants, and exposes connect, publish, subscribe, and unsubscribe APIs plus synchronous async wrappers.

The client wraps connections over arbitrary transports, handles server keepalives, QoS flows, and optional automatic reconnection. You can tune reconnect timing, refresh WebSocket URLs on reconnect via hooks, and customize WebSocket creation for proxies or extra headers.

MQTT 5 features include topic alias handling, session properties, custom acknowledgment handling, and stores for incoming and outgoing packets. TypeScript types are part of the codebase, and the package can run in React Native with the documented setup.

A bundled CLI can publish and subscribe when installed globally. Documentation also points to external brokers such as Mosquitto or Aedes when you need your own server.

Key features

  • MQTT client for Node.js and browsers
  • TCP, TLS, and WebSocket transports
  • Automatic reconnection with tunable options
  • MQTT 5 properties and topic alias support
  • Async connect with Promise-based API
  • Bundled mqtt CLI for broker interaction
  • TypeScript-oriented client implementation
  • React Native usage with example guidance

Use cases

  • IoT device telemetry to an MQTT broker
  • Browser apps over WebSocket MQTT
  • Pub/sub messaging in Node.js services
  • Testing brokers from the command line

Tags

Similar software

Zenoh

Low-overhead pub/sub, query, storage, and compute protocol

Eclipse Zenoh merges publish-subscribe, geo-distributed storage, queries, and compute in one protocol. It targets cloud, edge, robotics, and constrained devices.

★ 3.4k⟳ 4 days agoApache-2.0

RuView

WiFi CSI spatial sensing without cameras

RuView turns WiFi channel state into presence, motion, breathing, heart rate, and activity signals using low-cost ESP32 nodes. Processing can stay on edge hardware with optional visualization and smart-home bridges.

★ 105.3k⟳ 2 days agoMIT

Home Assistant

Local-first open home automation platform

Home Assistant connects smart home devices and services for local control and privacy. It suits Raspberry Pi or a server at home, with companion apps for phones and watches.

★ 92.6k⟳ todayApache-2.0
Open Source Alternative to:Google HomeHomey+3

openpilot

In-vehicle advanced driver assistance for supported cars

openpilot upgrades driver assistance on hundreds of supported vehicle models when paired with comma hardware and a car harness. It provides adaptive cruise and automated lane centering with driver monitoring.

★ 64.2k⟳ yesterdayMIT

Socket.IO

Bidirectional real-time communication for web and Node

Socket.IO enables low-latency, event-based communication between clients and servers. It prefers WebSockets and falls back to HTTP long-polling when needed.

★ 63.3k⟳ 4 days agoMIT
Frameworks & PlatformsDesktop/CLI app

ntfy

HTTP pub-sub push notification service

Ntfy sends push notifications to phones and desktops via simple HTTP PUT or POST requests and a REST API, without requiring sign-up on the public host.

★ 35.8k⟳ todayApache-2.0