# legastero/stanza

Modern XMPP, with a JSON API

Repository: https://github.com/legastero/stanza
Canonical: https://ross.abutalabs.com/products/legastero-stanza
Language: TypeScript
License: MIT
License Family: permissive
Topics: xmpp, stanza, jingle, jxt
Last push: 2026-03-28T19:49:24+00:00

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

## Adoption (not part of the score)
Stars 1244, forks 250 (observed 2026-08-28T04:04:06.785782+00:00)

## What it is
StanzaJS is a JavaScript/TypeScript library for modern XMPP that exposes all stanzas as JSON instead of XML. It supports WebSocket and BOSH transports, Jingle/WebRTC signaling, PubSub, stream management, and plugin creation.

## Use cases
- build an xmpp chat client in javascript
- send and receive xmpp messages without touching xml
- add webrtc jingle calls to a web app
- connect to xmpp from react native
- implement pubsub messaging over xmpp
- create a browser-based chatbot over xmpp

## When to choose
- you need XMPP in JavaScript/TypeScript with a clean JSON API
- you want browser, Node.js, or React Native XMPP support
- you need Jingle/WebRTC or PubSub over XMPP

## When to avoid
- you need a non-XMPP chat protocol like Matrix or MQTT
- you require direct low-level XML stanza manipulation
- you need a ready-made chat UI rather than a protocol library

## Facets
- artifact type: library
- maturity: active
- function: websocket, serialization, sdk, plugin-system
- domain: messaging-platforms, apis, web-development
- platform: browser, cross-platform
- tags: xmpp, jingle, json-api, chat, webrtc, messaging, real-time, nodejs, typescript

## Member repositories
- legastero/stanza (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:06.785782+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-30T05:08:15.438265+00:00, confidence not recorded.
  - readme: https://github.com/legastero/stanza (fetched 2026-08-28T04:04:06.785782+00:00, sha 6a78deaaae02)
  - registry_npm: https://registry.npmjs.org/stanza (fetched 2026-08-29T12:19:52.791780+00:00, sha ad3eab689c7b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
