Description
xmpp.js is a JavaScript library for XMPP, the Extensible Messaging and Presence Protocol used for instant messaging, presence, multi-party chat, voice and video calls, and collaboration. The library is built around a few goals. It runs wherever JavaScript runs, including browsers, Node.js, WebWorker, React Native, Bun, Deno, GJS and Duktape, and it uses the best network transport available. It is designed to be reliable: by default it handles errors and reconnects automatically, and with the right configuration it can loop through a list of endpoints, so you do not need to write code for network failures. Each feature is a module that can be added or removed, including core XMPP features. The project avoids third-party dependencies and says the default web client stays under 13 kB gzipped. The packages cover the client, component, XML, JID, time and URI, and the README maps the supported RFCs to the packages that implement them, including core XMPP, TLS, the WebSocket transport and the address format. Projects built with it include Fluux Messenger, Snikket, WorkAdventure and openHAB. The library is on GitHub, and questions go to its Discussions section.…
Highlights
- XMPP client and component libraries for JavaScript
- Runs in browsers, Node.js, Deno, Bun and React Native
- Automatic reconnection and endpoint failover
- Modular features and a small default web client
- Implements the core XMPP RFCs through separate packages
Ratings & Reviews
No ratings yet
Be the first to rate Xmpp.js.
People also visit
Xmpp.js FAQ
What is xmpp.js?
A JavaScript library for XMPP, the open messaging and presence protocol used for chat, presence, voice and video.
Where can it run?
The README lists browsers, Node.js, WebWorker, React Native, Bun, Deno, GJS and Duktape.
Is it free?
Yes. It is open source and developed on GitHub.
How does it handle network failures?
By default it handles errors and reconnects automatically. With the right configuration it can loop through a list of endpoints.
How big is it?
The project says the default web client stays under 13 kB gzipped and avoids third-party dependencies.
Which protocols does it cover?
The README maps RFC 6120 core XMPP, RFC 7590 TLS, RFC 7622 addressing, RFC 7395 WebSocket and other specifications to packages.
Where can I get help?
Post in the Discussions section of the GitHub project.
What are the best Xmpp.js alternatives?
Popular alternatives to Xmpp.js include Converse.js, Fluux Messenger and Jabber / XMPP (Protocol). See all Xmpp.js alternatives

