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

checker-tools

v1.1.4

Published

tool for monitoring node

Downloads

45

Readme

Node-Height-Tracker

Node Height Tracker

This is a python3 script that checks the node's status every minute and prints it to the console.

Original less featureful bash version still available. Instructions here]

Usage

  1. Save the file node_height_checker_w_estimate.py to your computer that is running the node.

  2. Run the script:

    python3 node_height_checker_w_estimate.py

One-Liner

curl https://github.com/sevenminute/Node-Tools/blob/main/python3%20node_height_checker_w_estimate.py | python3

Output Example

Output will look something like this:

Current Local Height: 78845
Current Global Height: 79989 (Age: 4 minutes)

Block Increase Over Time:
Interval (min)  Blocks Increased
1               139
5               641
15              983
30              1602
60              0

Estimated Time to Catch Up: 6 minutes, 4 seconds

Notes

  • The script only keeps track while it is running. As soon as you kill it, it loses all memory. You can re-run it, but it will only keep tracking since the start of the script.

  • You can run it in the background by appending & to the end of the command like this:

    python3 node_height_checker_w_estimate.py &

    If you do this, it will run forever and print logs into the terminal seemingly from nowhere. You are not hacked. To kill the process, run:

    ps -ef | grep python

    You will see an output that looks like this:

    root         519       1  0 17:02 ?        00:00:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-s
    root         610       1  0 17:02 ?        00:00:00 /usr/bin/python3 /usr/share/unattended-upgrades/unatt
    user        3222    2612  0 17:48 pts/1    00:00:00 python3 node_height_checker_w_estimate.py
    user        3631    2612  0 18:21 pts/1    00:00:00 grep --color=auto python
    

    You will see a process with the script name in it. Find the leftmost number in the same line (in this example, it is 3222). You need to kill this process:

    kill 3222

Disclaimer

This script is provided AS-IS.