Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including node-red-node-xmpp with all npm packages installed. Try it out:

node-red-node-xmpp lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("node-red-node-xmpp/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

node-red-node-xmpp v0.2.4

A Node-RED node to talk to an XMPP server


A Node-RED node to talk to an XMPP server.


Run the following command in your Node-RED user directory - typically ~/.node-red

npm install node-red-node-xmpp


Provides two nodes - one to send messages, and one to receive.


Connects to an XMPP server to receive messages.

The Buddy field is the id of the buddy or room you want to receive messages from.

Incoming messages will appear as msg.payload on the first output, while msg.topic will contain who it is from.

The second output will show the presence and status of a user in msg.payload. Again msg.topic will hold the user.


Connects to an XMPP server to send messages.

The To field is optional. If not set the msg.topic property of the message is used to set that value.

If you are joining a chat room then the To field must be filled in with the room name.

You may also send a msg with msg.presence to set your presence to one of

  1. chat
  2. away
  3. dnd
  4. xa

If you do this then the msg.payload is used to set your status message.


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free