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

@suniltaneja/netscan-cli

v1.0.5

Published

A CLI tool to scan network for active hosts and their hostnames

Readme

Network Scan CLI

A command-line tool built with React Ink and TypeScript that scans your local network for active hosts and displays their IP addresses and hostnames in real-time.

Features

  • 🔍 Scans your local network (typically /24 subnet) for active hosts
  • 🏃‍♂️ Real-time display of scanning progress
  • 🏷️ Resolves hostnames for discovered IP addresses
  • 💻 Shows MAC addresses of discovered devices (optional)
  • 🔎 Filter hosts by hostname using regular expressions
  • ⚡ Fast concurrent scanning with batched updates
  • 🎨 Modern terminal UI with React Ink

Installation & Usage

Using npx (Recommended)

The easiest way to use this tool is with npx, which runs it directly without installation:

# Run directly with npx
npx @suniltaneja/netscan-cli

# Run with hostname filter
npx @suniltaneja/netscan-cli --hostname raspberry

# Show MAC addresses
npx @suniltaneja/netscan-cli --mac

# Show MAC addresses with hostname filter
npx @suniltaneja/netscan-cli --mac --hostname raspberry

# Run from local directory during development
npx .

Global Installation

If you prefer to install the tool globally:

# Install globally
npm install -g @suniltaneja/netscan-cli

# Then run from anywhere
netscan-cli

Local Development

For local development or contributing:

# Clone and install
git clone <repository-url>
cd netscan-cli
npm install

# Link globally
npm link

# Build and run locally
npm run build
npx .

Usage

# Scan all hosts in your network
netscan-cli

# Filter hosts by hostname pattern
netscan-cli --hostname "raspberry"
network-scan -n "^esp32"

# Show help
netscan-cli --help

Options

  • -n, --hostname: Filter hostnames using a regular expression pattern
  • -m, --mac: Show MAC addresses of discovered hosts
  • --help: Show help information
  • --version: Show version number

Examples

# Find all Raspberry Pi devices
netscan-cli --hostname raspberry

# Find ESP32 devices
netscan-cli -n "^esp32"

# Find devices in a specific domain
netscan-cli -n "\.home\.com$"

Development

# Clone the repository
git clone https://github.com/suniltaneja/netscan-cli.git
cd netscan-cli

# Install dependencies
npm install

# Build the project
npm run build

# Run in development mode
npm run dev

# Run the built version
npm start

Technical Details

  • Built with TypeScript and React Ink for a modern terminal UI
  • Uses Node.js DNS and network utilities for host discovery
  • Concurrent scanning with Promise-based architecture
  • Real-time updates with React state management
  • ES modules for modern JavaScript support

Requirements

  • Node.js 16.0.0 or higher
  • Network access (requires permission to ping hosts)

License

MIT © Sunil Taneja