meshtastic / network-management-client

A Meshtastic desktop client, allowing simple, offline deployment and administration of an ad-hoc mesh communication network. Built in Rust and TypeScript.
GNU General Public License v3.0
188 stars 14 forks source link
client desktop emergency-response lora mesh mesh-networks meshtastic network network-analysis reactjs rust-lang typescript

GitHub Header (V2)

Meshtastic Network Management Client

A desktop client for analyzing and managing large-scale, low-bandwidth mesh networks

Application testing action status GitHub last commit GitHub issues GitHub top language Open Collective backers Stand with Ukraine

:wave: Introduction

This application is a desktop client for the Meshtastic Project, designed to allow users to reliably manage large, decentralized mesh networks. Currently the Meshtastic client ecosystem has strong support for managing single nodes, but minimal support for network-level management and analysis. The goal of this project is to give users confidence in their Meshtastic networks as a reliable communications infrastructure through novel algorithmic analysis and connection-level insights.

image

This application is built using the Tauri Framework, a modern, secure successor to the Electron Framework. This allows us to natively support Linux, macOS, and Windows within the same codebase without the performance or memory overhead of a Chromium browser. Our core application infrastructure is written in Rust due to its performance and safety, and our UI and client functionality is written in React TypeScript using Vite. This project is in early stages of development, and as such is not yet suitable for production use.

:pray: Call for Contributions

At the time of writing, this project is currently maintained by a single developer. As such, the project is looking for developers willing to contribute towards or take lead on the following major initiatives:

:rocket: Functionality

This project is still in early stages of development, but here's a rough roadmap of functionality we're working on. We're placing a high priority on getting our core infrastructure right, since this is the core of any robust and effective UI layer.

📻 Hardware Requirements

This project is built on the Meshtastic hardware ecosystem, and as such this client requires that you have access to a Meshtastic radio. This may change in the future, but for the time being a physical radio is required to use this client.

I've written up some personal hardware recommendations here.

:computer: Development

Prerequisites

This project is built in Rust and React TypeScript, and managed using the PNPM package manager. As such, this project requires the following programs to be installed on your development machine:

Installation

To run this project locally, follow the steps below:

  1. Ensure you have Rust, Node.js, and PNPM installed (see Prerequisites)
  2. Ensure that you have all Tauri dependencies installed (depends on your OS)
  3. Clone this repositiory to a local directory. This can be done by running git clone https://github.com/meshtastic/network-management-client.git
  4. Recursively clone our Git submodules by running git submodule update --init
  5. Install all required NPM packages with pnpm i
  6. Once you have completed these steps, verify your installation with the pnpm run rust:dev command. The application should compile successfully, and you should see the application open successfully. If this process fails for you, please let us know!

Recommended IDE Setup

While this project can be developed within any text editor, we recommend the Visual Studio Code editor. If using VSCode, we strongly recommend that you install the following Visual Studio Code extensions. These extensions both enforce code style and enable language and framework support for our tech stack.

Some optional extensions that aren't required but we find very helpful:

Development Commands

To standardize our development flow, we utilize PNPM commands, defined in package.json. These commands can be run with the pnpm run NAME ...ARGS syntax. Our commands are broken out into two primary categories, rust:* commands and ui:* commands. The rust:* commands run the entire desktop application, where the ui:* commands only run the UI layer.

Note: We strongly recommend against using the ui:dev and ui:build commands manually. These commands are invoked internally by the rust:dev and rust:build commands, respectively. You will not be able to connect to a serial devce when running the ui:dev command, as this logic is not handled in the UI layer.

We are currently working to add support for the Storybook framework, which will allow contributors to develop UI components without running the entire desktop application.

Note: On Linux, your user may not have permission to access a given serial port. If this happens, you will likely need to add your user to the group that controls the serial port you want to access. You can find the group that controls a serial port via the ls -ld PATH_TO_PORT_HERE command. You can add your user to this group via the usermod -a -G GROUP_NAME_HERE $USER command.

:heart: Contributing

As we are still very early in development, we don't yet have a standardized framework for accepting contributions. This being said, we are very open to suggestions and/or code changes! If you're interested in contributing to this repository, we would ask that you first check our issue board to ensure your work isn't duplicating the work of others. Then, please make an issue on our board so we know what you're interested in working on. If you have any questions about the project, we would love to hear from you!