This is a simple Javascript library for interacting with nomadnet that works on web or in node.
It can do basic LXMF over Reticulum.
The goal is to be able to inter-operate with nomadnet, reticulum-meshchat, or Sideband, in terms of messages (I will not implement mu display, or interface-transports, just basic communication.)
I am doing all my testing over a websocket, so it will work on web & native in a similar way, but this library is really about identity-management and LXMF packet-handling, and should work over any transport.
See notes for structure of packets.
I started working on a no-dependency set of crypto helpers as well, but library will need some rework to use it.
I have some examples in examples/
If you want to test multiple clients on a network with the examples, you can do this:
nomadnet --config demo/a/nomad --rnsconfig demo/a/rns
nomadnet --config demo/b/nomad --rnsconfig demo/b/rnsThese clients (and the examples) are configured to log & interact with a remote websocket (see here), which you can host yourself, if you like.
Note
The main thing is to copy WebsocketClientInterface.py into your reticulum interfaces/ folder, and use that. This will allow nomadnet/etc to connect to a websocket.
Now, add this to your config:
[[Konsumer Websocket]]
type = WebsocketClientInterface
interface_enabled = True
target_url = "wss://signal.konsumer.workers.dev/ws/reticulum"MIT