A simple mesh network communications app powered by the Reticulum Network Stack. https://meshchat.app
  • JavaScript 44.9%
  • Vue 34%
  • Python 14.3%
  • HTML 6.7%
Find a file
2024-05-05 11:28:16 +12:00
logo update logo 2024-04-30 18:13:17 +12:00
public disable send button when can't send message 2024-05-05 11:28:16 +12:00
screenshots add screenshot to readme 2024-05-01 00:07:17 +12:00
.gitignore initial commit 2024-04-29 01:09:06 +12:00
database.py move config to database 2024-05-04 21:31:12 +12:00
lxmf_message_fields.py add support in send_message function for adding images and file attachments 2024-05-04 22:45:16 +12:00
README.md update readme 2024-05-04 21:59:33 +12:00
requirements.txt migrate to aiohttp so we can have better control over normal http requests 2024-05-04 02:42:18 +12:00
web.py vacuum database on start to shrink its file size 2024-05-05 02:50:36 +12:00

Reticulum WebChat

discord twitter
donate on ko-fi donate bitcoin

What is Reticulum WebChat?

A simple open-source web based LXMF client for Reticulum.

Features

  • Supports sending and receiving messages between Reticulum WebChat, Sideband and Nomadnet.
  • Supports receiving and saving images and attachments sent from Sideband.
  • Supports saving inbound and outbound messages to a local database.
  • Supports sending an announce to the network.
  • Supports setting a custom display name to send in your announce.
  • Supports viewing and searching peers discovered from announces.

How does it work?

  • A python script (web.py) runs a Reticulum instance and a WebSocket server.
  • The web page sends and receives LXMF packets encoded in json via the WebSocket.
  • Web Browser -> WebSocket -> Python Reticulum -> (configured interfaces) -> (destination)
  • LXMF messages sent and received are saved to a local SQLite database.

How to use it?

You will need to clone the repo, and run web.py.

git clone https://github.com/liamcottle/reticulum-webchat
cd reticulum-webchat
pip install -r requirements.txt
python web.py

NOTE: You should now be able to access the web interface at http://localhost:8000

For a full list of command line options, you can run;

python web.py --help
usage: web.py [-h] [--host [HOST]] [--port [PORT]] [--identity-file IDENTITY_FILE] [--identity-base64 IDENTITY_BASE64]

ReticulumWebChat

options:
  -h, --help            show this help message and exit
  --host [HOST]         The address the web server should listen on.
  --port [PORT]         The port the web server should listen on.
  --identity-file IDENTITY_FILE
                        Path to a Reticulum Identity file to use as your LXMF address.
  --identity-base64 IDENTITY_BASE64
                        A base64 encoded Reticulum Identity to use as your LXMF address.

Using an existing Reticulum Identity

By default, a random identity is generated every time you run the script.

This is handy for quickly testing out the web ui, however you may want to use an existing identity when chatting with others.

To generate a new identity, you can use the rnid utility provided by Reticulum.

rnid --generate ./new_identity

You can then use the following to run the web ui with your new identity file;

python web.py --identity-file ./new_identity

Alternatively, you can provide a base64 encoded private key, like so;

python web.py --identity-base64 "GCN6mMhVemdNIK/fw97C1zvU17qjQPFTXRBotVckeGmoOwQIF8VOjXwNNem3CUOJZCQQpJuc/4U94VSsC39Phw=="

NOTE: this is a randomly generated identity for example purposes. Do not use it, it has been leaked!

TODO

  • send images from web ui
  • send file attachments from web ui
  • conversations/contacts list ui with unread indicators
  • button to add peer to contacts, and show a tab for contacts, separate from peers list
  • allow setting a custom name to show for a contact
  • button to forget peers and contacts
  • optimise ui to work nicely on a mobile device, such as Android/iOS
  • support for exploring/navigating a nodes micron pages
  • support for managing Reticulum config/interfaces via the web ui