Lightweight Web Chat Client for XMPP Server

Lightweight Web Chat Client for XMPP Server

XMPP Web Lightweight web chat client for XMPP server.

XMPP Web

Lightweight web chat client for XMPP server.

Key features

  • Connect to an XMPP server with WebSocket or BOSH,
  • Chat and groupchat (MUC as defined in XEP-0045),
  • Retrieve contacts (roster) and bookmarked rooms (XEP-0048),
  • Send and receive files over HTTP (XEP-0066, XEP-0363),
  • Handle password protected room,
  • Display chat state notifications: is composing, is paused (XEP-0085),
  • Format messages: bold, italic, striked, link and code inline/block (XEP-0393),
  • Room configuration,
  • PWA (Progressive Web App) creating user experiences similar to native applications on desktop and mobile devices,
  • Lightweight (600 KB gzipped at the first loading and then less than 10 KB)
  • Guest access /guest?join={jid} (joining a MUC anonymously as described in RFC 4505)

Screenshot desktop Screenshot mobile home Screenshot mobile chat Screenshot guest join

Installation

XMPP Web can be installed:

  • With provided Ansible role,

  • From archive:

  • From Docker image (docker pull nioc/xmpp-web, based on nginx):

    • as standalone service:

      docker run -it -p 80:80 --rm \
      -e XMPP_HTTP=https://domain-xmpp.ltd:5281/http-bind \
      -e XMPP_WS=https://domain-xmpp.ltd:5281/xmpp-websocket \
      -e APP_DEFAULT_DOMAIN=domain-xmpp.ltd \
      --name xmpp-web-1 nioc/xmpp-web
    • in a docker-compose:

      version: "3.4"
      services:
        xmpp-web:
          image: nioc/xmpp-web:latest
          ports:
            - "80:80"
          environment: 
            - XMPP_HTTP=https://domain-xmpp.ltd:5281/http-bind
            - XMPP_WS=https://domain-xmpp.ltd:5281/xmpp-websocket
            - APP_DEFAULT_DOMAIN=domain-xmpp.ltd
  • From source (git clone, npm build, etc...)

Configuration

local.js attribute Environment Default Description
name APP_NAME "XMPP web" Application name
transports.bosh APP_HTTP "https://chat.domain-web.ltd/http-bind" BOSH endpoint used by application (proxy or direct XMPP server)
transports.websocket APP_WS "wss://chat.domain-web.ltd/xmpp-websocket" Websocket endpoint used by application (proxy or direct XMPP server)
anonymousHost XMPP_ANON_HOST null Virtual host used for guest access (anonymous)
isTransportsUserAllowed APP_IS_TRANSPORTS_USER_ALLOWED false Allow user to set endpoints on the fly in login component
hasHttpAutoDiscovery APP_HTTP_AUTODISCOVERY false Allow to retrieve a .well-known/host-meta.json if user log on a different domain
resource APP_RESOURCE "Web XMPP" Resource (client) affected to user
defaultDomain APP_DEFAULT_DOMAIN "domain-xmpp.ltd" Domain used if user do not provide a full jid
isStylingDisabled APP_IS_STYLING_DISABLED false Set to true for disable messages styling
N/A XMPP_HTTP "http://localhost:5280/http-bind" BOSH endpoint proxyfied by Nginx (on a docker installation)
N/A XMPP_WS "http://localhost:5280/xmpp-websocket" Websocket endpoint proxyfied by Nginx (on a docker installation)

Credits

  • Nioc - Initial work

See also the list of contributors to this project.

This project is powered by the following components:

Download Details:

Author: nioc

Source Code: https://github.com/nioc/xmpp-web

vue vuejs javascript

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

8 Popular Websites That Use The Vue.JS Framework

In this article, we are going to list out the most popular websites using Vue JS as their frontend framework. Vue JS is one of those elite progressive JavaScript frameworks that has huge demand in the web development industry. Many popular websites are developed using Vue in their frontend development because of its imperative features.

Vue Native is a framework to build cross platform native mobile apps using JavaScript

Vue Native is a framework to build cross platform native mobile apps using JavaScript. It is a wrapper around the APIs of React Native. So, with Vue Native, you can do everything that you can do with React Native. With Vue Native, you get

How to Make a Simple Vue Custom Select Component

In this article, you’ll learn how to build a Vue custom select component that can be easily be styled using your own CSS. In fact, it’s the same component that we use in production on Qvault, and you can see it in action on the playground.

Creating a Custom Tooltip Component in Vue

There are plenty of libraries out there that will have you up and running with a good tooltip solution in minutes. However, if you are like me, you are sick and tired of giant dependency trees that have the distinct possibility of breaking at any time.

Vue ShortKey plugin for Vue.js

Vue-ShortKey - The ultimate shortcut plugin to improve the UX .Vue-ShortKey - plugin for VueJS 2.x accepts shortcuts globaly and in a single listener.