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 🙏

© 2024 – Pkg Stats / Ryan Hefner

lime-updater

v1.0.4

Published

A command-line tool for updating LibreMesh on all nodes in a mesh network

Downloads

2

Readme

WIP: LibreMesh updater CLI

Install

Download an executable for your system from the release page.

Or, if you have NodeJS installed, just install the cli with npm i -g lime-updater.

Usage

It's best if the machine you'll run this command has it's ssh key in all nodes in the mesh, or provide the path to the private-key file with the flag --ssh_key.

To set same password for all nodes:

lime-updater --firmware=/home/user/firmware --password=super-secret

To set a different password for each node, or to run without authorized_keys:

lime-updater --firmware=/home/user/firmware

Options

  • --firmware can be an absolute path in your system of a url where the firmware live. The program expects the files to be arranged as they are cooked ex.: targets/ar71xx/generic/..

  • --password is used to set the same password for every node in the mesh

  • --ssh_key can be an absolute path in your system of a url where the private ssh key file lives, defaults to your system's id_rsa file

  • --nodes limits the upgrade to only the listed ones separated by , wihout spaces; ex.: lime-updater --firmware=/home/user/firmware --nodes=san,nico,marcos

  • --post_install only run post install, copying files and setting configs to the nodes

After upgrade

If you have acess points which aren't running LibreMesh, and just connect to a node thru ethernet, you'll have to reboot them manually. In case sending the backups back to the nodes fail, you can use --post_install to only run the post-upgrade part.

How it works?

  • checks for the most current LibreMesh release from https://github.com/LibreRouterOrg/openwrt
  • ssh's into each node in the mesh and finds out their model and checks if they are using outdated firmware
  • creates a backup up of their Lime, Pirania and Dropbear configs, as well as Pirania's database and Dropbear's authorized_keys in ~/.libremesh
  • finds the distance between the node you're running this from and all the other nodes
  • starting from the most distant nodes, it copies the firmware according to the node's model and does a sysupgrade -n
  • after all nodes have been upgraded it copies the backups back to each one, applies the settings and sets again the password

Future plans

Ideally this should also be an Android application so that community members can run it on their phones. There should be a social network layer on top for sharing firmware files, making something like a distributed Chef able to provide even offline community networks with new LibreMesh releases.