npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mesh-tools

v1.1.0

Published

A helpful package for automating the Meshtastic node api

Readme

Mesh-Tools

This is a package made for use with the Meshtastic Project. I am not affiliated with or sponsored by Meshtastic. This project is just for fun. Meshtastic

This package is currently deployed to npm!

Download: Mesh Tools NPM

Use npm i mesh-tools to use in your project!

Documentation

Documentation

What this package does

This package is meant to abstract the functions of the meshtastic node.js cli package. It is meant to make the developement of programs that interact with the mesh network easier and more efficient.

This is a side project so don't expect this to always be up to date but I'll try my best.

It can easily handle connecting to nodes, detect when someone has dmed you, sending dms, sending on channels, receiving on channels and more. All of the stuff you would ever want. It can even manage an optional Database of Nodes and store custom data for each node.

How it works

I tried my best to abstract many of the Meshtastic CLI's functions.

Here is all of the code needed to connect to your node. It is much shorter than what would be needed if you were not using my package.

// Import the package. Install with npm i mesh-tools
const MeshTools = require('mesh-tools');
// Define the port your node is on over serial
const node = new MeshTools.SerialNode('/dev/ttyACM1');
// Connect the node to your computer
node.connect()

If you wanted to listen for a direct messages to your node, it is as easy as this chunk of code.

// Connect to the receiveDm event
node.events.on('receiveDm',(data) => {
    // Send a DM back to the sender
    node.sendDirectMessage(`Hello!`,data.from)
})

It's that easy! I'll have more examples later.

Why I made this

I made this because I was annoyed at how difficult it was to work with the nodejs cli for Meshtastic. There was little documentation and I frequently ran into issues. To solve these issues, I made this package that bundles all the most common features of the cli into one easy to use package.

Thanks for checking this out! Please give it a star :)

-JStudios6118