A badge for linking to your XMPP chatxmpp Converse
You’ve probably noticed the coloured badges at the top of project READMEs on Github and Gitlab.
These badges indicate various metrics about the project’s current state and its supporting infrastructure.
For example, the README page for Converse contains the following badge:
It indicates how many open bounties there are for Converse on Bountysource.
There are dozens such badges available nowadays, just take a look at shields.io.
Some projects have badges that link to a chatroom, hosted by Gitter, Slack etc.
Converse, being an XMPP-based project, has its own XMPP chatroom at email@example.com.
So I created a badge for its README, which points to that chatroom and also indicates how many users are currently in it.
It looks like this:
The Markdown syntax for showing the badge looks like this:
[Link to XMPP chat](https://firstname.lastname@example.org)
The target URL for this badge is https://email@example.com,
which means that it takes the user to https://inverse.chat and then
once the user has logged in, the room
firstname.lastname@example.org will be opened.
To go to a different room, just specify a different JID (Jabber ID) in the URL parameters.
Here you specify the room JID with the room URL parameter.
The code is open source, and hosted on Github at jcbrand/xmpp-chat-badge.
If you’re using this badge for your project, I’d be happy to hear about it.
Hello, I'm JC Brand, software developer and consultant.
I created and maintain Converse, a popular web-based XMPP chat client,
I can help you integrate chat and instant messaging features into your website or intranet.
You can follow me on the Fediverse or on Twitter.