
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@meshtastic/meshtasticjs
Advanced tools
Meshtastic.js is a JavaScript library that provides an interface to Meshtastic devices. It can be used to build applications to interface with a Meshtastic network. Currently HTTP(S) and Bluetooth connections are supported.
The library is available from NPM and can be installed with:
yarn add @meshtastic/meshtasticjs
npm install @meshtastic/meshtasticjs
The library has a built in connection manager that will handle multiple devices of different connection types.
import {
Client,
Types,
SettingsManager,
} from "meshtasticjs";
/**
* Instantiate a new device manager
*/
const client = new Client();
/**
* Optional: Set the logging level
*/
SettingsManager.setDebugMode(Protobuf.LogLevelEnum.DEBUG);
/**
* Create the connection type of your choice
*/
const httpConnection = client.createHTTPConnection();
const bleConnection = client.createBLEConnection();
/**
* Connect to the device with the desired paramaters
*/
httpConnection.connect(...connectionParams);
bleConnection.connect(...connectionParams);
/**
* Device can now be accessed individually or via `deviceInterfaces`
*/
client.deviceInterfaces.forEach(connection => {
...
});
All events can be handled via any of the inbuilt onxEvent methods.
httpConnection.onFromRadioEvent.subscribe(event => {
...
});
Data in multiple formats can be send over the radio
/**
* Plaintext message
*/
bleConnection.sendText("Message");
/**
* With recipient
*/
bleConnection.sendText("Message", 1234);
/**
* Arbitrary data
*/
bleConnection.sendPacket(
new Uint8Array([...data]),
Protobuf.PortNumEnum.PRIVATE_APP
);
/**
* Send custom location
*/
bleConnection.sendPosition(lat, lng, alt, time);
The Bluetooth connection option relies on the availability of the Web Bluetooth API, which is represented in the compatibility matrix below.
FAQs
Browser library for interfacing with meshtastic devices
We found that @meshtastic/meshtasticjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.