# moscajs/mosca

MQTT broker as a module

Repository: https://github.com/moscajs/mosca
Canonical: https://ross.abutalabs.com/products/mosca
Language: JavaScript
License Family: other
Archived: true
Last push: 2020-01-31T18:27:49+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4947, "days_push": 2406, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3182, forks 495 (observed 2026-08-28T04:07:47.889488+00:00)

## What it is
Mosca is a Node.js MQTT broker that can run standalone or be embedded in any Node.js application. It supports MQTT 3.1/3.1.1 with QoS 0 and 1, pluggable storage backends like MongoDB and Redis, and WebSocket connections, but the project is officially unmaintained in favor of Aedes.

## Use cases
- run an mqtt broker for iot devices
- embed an mqtt broker in my node.js app
- broker mqtt messages with qos 1 offline packet storage
- serve mqtt over websockets in node.js
- persist mqtt subscriptions to mongodb or redis

## When to choose
- you need a lightweight embeddable MQTT broker inside an existing Node.js application
- you want pluggable persistence backends for MQTT QoS 1 packets

## When to avoid
- you need a maintained or production-supported MQTT broker — use Aedes or Mosquitto instead
- you need MQTT 5 support or modern Node.js versions

## Facets
- artifact type: library
- maturity: abandoned
- function: message-queue, http-server, websocket
- domain: iot, backend, microservices
- platform: cross-platform
- tags: mqtt, mqtt-broker, iot-messaging, pubsub, unmaintained, messaging, nodejs

## Member repositories
- moscajs/mosca (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:47.889488+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:25:03.729014+00:00, confidence not recorded.
  - readme: https://github.com/moscajs/mosca (fetched 2026-08-28T04:07:47.889488+00:00, sha 41c286d466ce)
- Data as of 2026-08-30T08:39:29.467469+00:00.
