# xmppjs/xmpp.js

XMPP for JavaScript

Repository: https://github.com/xmppjs/xmpp.js
Canonical: https://ross.abutalabs.com/products/xmppjs
Language: JavaScript
License: ISC
License Family: permissive
Topics: xmpp, javascript, client, component, nodejs, browser, react-native, node, chat, real-time
Last push: 2026-08-21T05:52:17+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 54, longevity 100
- inputs: {"age_days": 5943, "days_push": 12, "days_rel": 308, "gap_med": 25, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2275, forks 383 (observed 2026-08-28T04:06:33.416334+00:00)

## What it is
xmpp.js is a modular JavaScript library implementing the XMPP (Extensible Messaging and Presence Protocol) for building chat clients and components. It runs universally across browsers, Node.js, React Native, Bun, Deno, and other JavaScript environments with automatic reconnection and a small footprint.

## Use cases
- build a chat application in the browser
- connect to an XMPP server from Node.js
- add real-time messaging to a React Native app
- write an XMPP bot or chatbot
- implement a server component that talks to an XMPP server
- send and receive presence and instant messages over XMPP

## When to choose
- you need XMPP support in JavaScript across multiple runtimes (browser, Node, React Native)
- you want a small, modular client library with automatic reconnection
- you're building chat, presence, or real-time messaging features on open standards

## When to avoid
- you need a ready-made chat UI rather than a protocol library
- your messaging needs are better served by WebSockets or a proprietary SDK like Firebase
- you require a non-JavaScript language runtime

## Facets
- artifact type: library
- maturity: active
- function: websocket, http-client, middleware, serialization
- domain: messaging-platforms, web-development, developer-tools
- platform: browser, cross-platform, bun
- tags: xmpp, jabber, chat, instant-messaging, react-native, presence, real-time-messaging, real-time, nodejs, deno, javascript

## Member repositories
- xmppjs/xmpp.js (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:33.416334+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-30T02:41:31.405621+00:00, confidence not recorded.
  - readme: https://github.com/xmppjs/xmpp.js (fetched 2026-08-28T04:06:33.416334+00:00, sha 9b7b673ca8b9)
  - registry_npm: https://registry.npmjs.org/xmpp.js (fetched 2026-08-29T10:22:15.779770+00:00, sha fd6eb9bb1266)
- Data as of 2026-08-30T08:39:29.467469+00:00.
