Sem descrição

Georg Lukas 90051472c5 Move XMPP disclaimer to bottom after display/enter blocks há 10 meses atrás
assets 5617b399af Add graphics há 2 anos atrás
lang 282875ff58 Update DE translation há 10 meses atrás
scripts 90051472c5 Move XMPP disclaimer to bottom after display/enter blocks há 10 meses atrás
stylesheets 06d4fa5369 Add UI for easily creating new links from a JID or URI há 10 meses atrás
.gitignore eed5dd62dd Autodiscover preferred browser language, enhances #4 há 3 anos atrás
LICENSE eff90ea151 Licensed under MIT há 4 anos atrás
README.md 9e69d95099 README: fix xmpp.link address, thx Axel há 10 meses atrás
clients_Android.json 35072cf842 Fix Xabber URL há 2 anos atrás
clients_Linux.json 3422715e31 Add Converse aans Psi há 2 anos atrás
clients_OSX.json 4dd12c3061 Add list of apps for Mac há 2 anos atrás
clients_Tizen.json 8d085752cd Add list of apps for Tizen há 2 anos atrás
clients_Windows.json a76b2b7172 Add list of apps for Windows há 2 anos atrás
clients_iOS.json 7c62fd0ead Add Siskin IM and Jitsi Meet há 2 anos atrás
config.js.dist b3fe8e5f63 Update config.js.dist há 2 anos atrás
index.html 90051472c5 Move XMPP disclaimer to bottom after display/enter blocks há 10 meses atrás

README.md

Easy XMPP Invitation Landing Page

This is an XMPP invitation landing page that client developers or XMPP server admins can host on their servers. It allows users to send XMPP invitations (contacts or chat rooms) to people who do not have an XMPP client yet. This is part of the Easy XMPP initiative to improve the "first contact" experience.

For the JID romeo@montague.lit, it will create the following page (live example):

Romeo has invited you to chat

Add Romeo to your contact list by clicking the following link:

[ Add Romeo ]

If this link does not work, you need to install and configure an XMPP client, and visit this page again afterwards.

[snipped client list and disclaimer]

The project's official hosted landing page is at xmpp.link.

Principal operation

  • Romeo clicks on his XMPP client's "Create Invitation" button
    • The XMPP client creates a link according to RFC 5122, e.g., xmpp:romeo@montague.lit?otr=23
    • The client automatically transforms the link into a landing page link by removing xmpp: and adding the address as a URI fragment to the hosted landing page, e.g., https://www.xmpp.example/i/#romeo@montague.lit?otr=23
  • Romeo sends the resulting invitation link via email, text message, QR code, RFC 1149 or any other means to the user Juliet
  • Juliet opens the link in a web browser and the displayed page contains an "Add" or "Join" button with the xmpp: URI
    • If Juliet has an XMPP client, it will handle the button click and open the "Add to roster" dialog
    • If Juliet does not have an XMPP client, the link won't work. Juliet must install a client and return to the link later

Design decisions

  • The (privacy-sensitive) JID and the parameters are put in the URI fragment which is not transmitted to the hosting server
  • The fragment is parsed by the receiving client, this requires JavaScript
  • I18N and client suggestions are performed dynamically
  • MUCs get a special treatment in the UI to show they are a chat room and not a contact, based on the presence of ?join in the address

Setup

The following steps are needed to get started:

  1. Create a copy of config.js.dist in the same directory, rename it to config.js and adjust it to your needs
  2. Open index.html in your web browser
  3. Append # and the JID you want to create the invitation for to the URL

TODO

  • I18N / Translation
    • Drop-down / language list for manual override
    • More languages
  • Platform specific client recommendations:
    • Option to switch platform dynamically
  • "Edit" mode to manually create invitation links

Inspiration

This project was inspired by mod_invite and Conversations' contact sharing page.

License

This code is licensed under the MIT License.