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

netsweep

v1.1.1

Published

Network Swiss Army Knife - CLI tool for comprehensive network diagnostics

Readme

netsweep

Network Swiss Army Knife - A single command for comprehensive network diagnostics.

╭──────────────────────────────────╮
│  NETSWEEP - Network Diagnostics  │
╰──────────────────────────────────╯
┌─ CONNECTION ────────────────────────────────────────────────┐
│  Interface:    Wi-Fi (en0)                                   │
│  Local IP:     192.168.0.31                                  │
│  Gateway:      192.168.0.1                                   │
│  External IP:  85.123.45.67                                  │
│  DNS:          1.1.1.1, 8.8.8.8                              │
└──────────────────────────────────────────────────────────────┘
┌─ SPEED ─────────────────────────────────────────────────────┐
│  ↓ Download:   245.3 Mbps                                    │
│  ↑ Upload:     48.7 Mbps                                     │
│  Latency:      12ms (jitter: 2.3ms)                          │
└──────────────────────────────────────────────────────────────┘
┌─ DEVICES (4 found) ─────────────────────────────────────────┐
│ IP              │ MAC                │ Vendor       │ Name   │
├─────────────────┼────────────────────┼──────────────┼────────┤
│ 192.168.0.1     │ F0:81:75:22:32:22  │ Sagemcom     │ -      │
│ 192.168.0.7     │ 00:17:88:2E:09:31  │ Philips      │ -      │
│ 192.168.0.31    │ 80:A9:97:35:64:71  │ Apple        │ This Mac│
└─────────────────┴────────────────────┴──────────────┴────────┘
┌─ GATEWAY PORTS (192.168.0.1) ───────────────────────────────┐
│  53/tcp    DNS       OPEN                                    │
│  80/tcp    HTTP      OPEN                                    │
└──────────────────────────────────────────────────────────────┘
┌─ WIFI ──────────────────────────────────────────────────────┐
│  SSID:         MyNetwork                                     │
│  Signal:       -52 dBm (Excellent)                           │
│  Noise:        -90 dBm                                       │
│  Channel:      36 (5 GHz)                                    │
│  Tx Rate:      867 Mbps                                      │
└──────────────────────────────────────────────────────────────┘
┌─ ISP & LOCATION ────────────────────────────────────────────┐
│  ISP:          Telenor Norge AS                              │
│  ASN:          AS2119                                        │
│  Location:     Oslo, Norway                                  │
│  Coordinates:  59.9139° N, 10.7522° E                        │
└──────────────────────────────────────────────────────────────┘
┌─ TRACEROUTE (to 1.1.1.1) ───────────────────────────────────┐
│   1  192.168.0.1      1.2ms   ██                             │
│   2  10.0.0.1         8.4ms   ████                           │
│   3  85.123.45.1     12.1ms   ██████                         │
│   4  1.1.1.1         14.3ms   ███████                        │
└──────────────────────────────────────────────────────────────┘
┌─ INTERNET HEALTH ───────────────────────────────────────────┐
│  Google        ✓  12ms                                       │
│  Cloudflare    ✓  8ms                                        │
│  GitHub        ✓  45ms                                       │
│  AWS           ✓  23ms                                       │
└──────────────────────────────────────────────────────────────┘

Features

  • Connection Info - Local IP, gateway, external IP, DNS servers
  • Device Discovery - Find all devices on your network via ARP with vendor identification
  • Speed Test - Download/upload speeds and latency via Cloudflare
  • Port Scanner - Scan common ports on any host
  • WiFi Info - Signal strength, noise, channel, and transmit rate
  • ISP & Geolocation - ISP name, ASN, and location lookup
  • Traceroute - Visual traceroute with latency bars
  • Internet Health - Check connectivity to major services
  • Beautiful Output - Clean terminal UI with colors and tables
  • JSON Output - Pipe results to other tools

Installation

Using Bun (recommended)

# Run directly without installing
bunx netsweep

# Or install globally
bun install -g netsweep
netsweep

Using npm

# Run directly
npx netsweep

# Or install globally
npm install -g netsweep
netsweep

From source

git clone https://github.com/Johannes-Berggren/netprobe.git
cd netprobe
bun install
bun link
netsweep

Usage

# Full network scan (all diagnostics)
netsweep

# Individual scans
netsweep -d          # Devices only
netsweep -s          # Speed test only
netsweep -p          # Gateway ports only
netsweep -w          # WiFi info only
netsweep --isp       # ISP & location only
netsweep --trace     # Traceroute only
netsweep --health    # Internet health only

# Scan specific host
netsweep -p -t 192.168.0.7

# JSON output for scripting
netsweep --json
netsweep -d --json | jq '.devices[] | select(.vendor == "Apple")'

Options

| Flag | Short | Description | |------|-------|-------------| | --all | -a | Run all scans (default) | | --devices | -d | Scan for network devices | | --speed | -s | Run speed test | | --ports | -p | Scan gateway ports | | --wifi | -w | Show WiFi info | | --isp | -i | Show ISP & geolocation | | --trace | -r | Run traceroute to 1.1.1.1 | | --health | | Check internet health | | --target <ip> | -t | Scan specific IP for ports | | --json | | Output as JSON | | --help | | Show help |

Requirements

  • Bun >= 1.0 or Node.js >= 18
  • macOS (Linux support coming soon)

How it works

  • Connection: Uses ipconfig, netstat, and ipify.org API
  • Devices: Parses the ARP table with MAC vendor lookup (1000+ vendors)
  • Speed: Tests against Cloudflare's speed test endpoints
  • Ports: TCP connect scan on common service ports
  • WiFi: Reads from macOS system_profiler
  • ISP: Queries ip-api.com (free, no API key required)
  • Traceroute: Runs native traceroute command
  • Health: HTTP HEAD requests to major services

License

MIT