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

@redredchen01/monitoring-tools

v1.0.0

Published

Network monitoring and health check CLI — ping, healthcheck, port-scan, uptime, alert, dashboard, watch

Downloads

18

Readme

@redredchen01/monitoring-tools

Network monitoring and health check CLI — ping, healthcheck, port-scan, uptime, alert, dashboard, watch

npm version License: MIT

Install

npm install -g @redredchen01/monitoring-tools

Quick Start

monitoring-tools ping --host google.com
monitoring-tools healthcheck --url https://example.com
monitoring-tools port-scan --host 192.168.1.1 --ports 22,80,443
monitoring-tools uptime --url https://example.com --count 5
monitoring-tools dashboard --config ./monitoring.json

Commands

ping — Measure latency

ICMP ping to a host or HTTP ping to a URL. Reports avg/min/max latency and packet loss.

monitoring-tools ping --host 8.8.8.8 --count 10
monitoring-tools ping --url https://example.com --count 5 --json

Options: --host HOST, --url URL, --count N, --timeout SECS, --json


healthcheck — HTTP health check

Validate HTTP status code and response time. Exits 0 on pass, 1 on fail.

monitoring-tools healthcheck --url https://api.example.com/health
monitoring-tools healthcheck --url https://example.com --expected-status 200 --max-time 2

Options: --url URL, --expected-status CODE, --max-time SECS, --method METHOD, --json


port-scan — Scan open ports

Scan a host's ports using bash /dev/tcp or nc. Reports open ports with service names.

monitoring-tools port-scan --host example.com
monitoring-tools port-scan --host 192.168.1.1 --ports 1-1024 --timeout 1

Options: --host HOST, --ports RANGE, --timeout SECS, --json


uptime — Availability monitoring

Run repeated HTTP checks and report uptime percentage. Single-run (not a daemon).

monitoring-tools uptime --url https://example.com --count 20 --interval 10

Options: --url URL, --count N, --interval SECS, --json


alert — Threshold alerting

Compare a numeric value against a threshold. Reads from --value or stdin. Exits 0 if OK, exits 1 if threshold exceeded.

monitoring-tools alert --value 95 --threshold 90 --above
echo "3" | monitoring-tools alert --threshold 5 --below --message "Too few workers"

Options: --value N, --threshold N, --above, --below, --message MSG, --json


dashboard — Multi-URL summary

Check multiple URLs from a JSON config or stdin and display a summary table.

monitoring-tools dashboard --config ./monitoring.json
echo '[{"url":"https://example.com","name":"Main"}]' | monitoring-tools dashboard

Config format: JSON array with url (required) and name (optional) per entry.

Options: --config FILE, --timeout SECS, --json


watch — Periodic command runner

Re-run any shell command at an interval, displaying output with timestamps.

monitoring-tools watch --interval 5 --count 12 -- curl -s https://example.com/status
monitoring-tools watch --diff --count 6 -- df -h

Options: --interval SECS, --count N, --diff, --json


Pipe Protocol

All commands support --json for structured output compatible with the Skill Foundry pipe protocol:

# Alert if uptime drops below 95%
monitoring-tools uptime --url https://example.com --count 10 --json | \
  monitoring-tools alert --threshold 95 --below --message "Uptime degraded"

# Dashboard output piped downstream
monitoring-tools dashboard --config ./urls.json --json | some-other-tool

License

MIT