# strophe/strophejs

Strophe.js is an XMPP library for JavaScript

Repository: https://github.com/strophe/strophejs
Canonical: https://ross.abutalabs.com/products/strophejs
Homepage: http://strophe.im/strophejs
Language: TypeScript
License: MIT
License Family: permissive
Topics: xmpp, xmpp-library, javascript
Last push: 2026-08-14T11:31:16+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 97, release rhythm 94, longevity 100
- inputs: {"age_days": 4874, "days_push": 19, "days_rel": 43, "gap_med": 21.0, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1487, forks 363 (observed 2026-08-28T04:04:52.017160+00:00)

## What it is
Strophe.js is a dependency-free JavaScript/TypeScript library for building real-time XMPP applications, supporting XMPP over WebSockets (RFC 7395) and BOSH/HTTP (XEP-0124/0206). It provides stanza builders, multiple SASL mechanisms, stream management with session resumption, and runs in browsers, Node.js, and React Native.

## Use cases
- build a browser-based XMPP chat client
- connect to an XMPP server over WebSockets from JavaScript
- add real-time messaging to a web app
- resume XMPP sessions after dropped connections with stream management
- share a single XMPP connection across browser tabs
- authenticate to XMPP with SCRAM or other SASL mechanisms
- build a React Native chat app over XMPP

## When to choose
- you need XMPP support in JavaScript across browser, Node.js, or React Native
- you want a small, dependency-free client library with WebSocket and BOSH transports
- you need robust reconnection via XEP-0198 stream management
- you want modern TypeScript typings with ESM/CJS/UMD builds

## When to avoid
- your app does not use the XMPP protocol
- you need a full chat UI rather than a protocol library
- you require non-JavaScript environments or native mobile SDKs

## Facets
- artifact type: library
- maturity: active
- function: websocket, http-client, auth, serialization
- domain: messaging-platforms, web-development, apis
- platform: browser, cross-platform
- tags: xmpp, chat, bosh, stream-management, typescript, real-time-messaging, instant-messaging, real-time, nodejs, web-server

## Member repositories
- strophe/strophejs (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:52.017160+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-30T04:33:49.135062+00:00, confidence not recorded.
  - readme: https://github.com/strophe/strophejs (fetched 2026-08-28T04:04:52.017160+00:00, sha fc6ce3b85738)
  - homepage: http://strophe.im/strophejs (fetched 2026-08-29T11:40:20.032450+00:00, sha cca78560b354)
  - site_page: http://strophe.im/strophejs/doc/3.1.0/Strophe.html (fetched 2026-08-29T11:40:20.034893+00:00, sha b1bdb81c7f2a)
  - site_page: http://strophe.im/strophejs/doc/1.3.0 (fetched 2026-08-29T11:40:20.036906+00:00, sha 35ca788f3b2b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
