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

@rbwsam/zhi

v1.0.4

Published

Concurrent web crawler that detects slow pages, broken links, and unhealthy HTTP status codes across your site

Readme

zhi 🕷️

A concurrent web crawler that detects slow pages, broken links, and unhealthy HTTP status codes across your site.

Features

  • Concurrent crawling - Process multiple pages simultaneously (default: 10 workers)
  • Comprehensive reporting - Identifies slow responses, broken links, and HTTP errors
  • Smart link extraction - Crawls HTML pages, CSS stylesheets, images, and scripts
  • Same-domain filtering - Only crawls pages on the starting domain
  • Configurable limits - Control concurrency and maximum URLs to crawl

Requirements

  • Node.js 20.0.0 or higher

Installation

From npm (Recommended)

npm install -g @rbwsam/zhi
zhi <url> [options]

From source (Development)

git clone https://github.com/rbwsam/zhi.git
cd zhi
npm install
npm run build
node dist/index.js <url> [options]

Quick Start

# Basic usage (https is assumed if no protocol specified)
zhi example.com

# With explicit protocol
zhi https://example.com
zhi http://example.com

# With custom concurrency
zhi example.com -c 20

# Limit total URLs to crawl
zhi example.com -m 500

# Combine options
zhi example.com -c 15 -m 1000

Usage

zhi <url> [options]

Arguments:
  url                    The starting URL for the crawl

Options:
  -c, --concurrency <n>  Maximum number of concurrent requests (default: 10)
  -m, --max-urls <n>     Maximum number of unique URLs to crawl (default: 2000)
  -h, --help             Show this help message
  -V, --version          Show version number

Reports

The tool generates a health report with three main sections:

Slow Responses

Pages taking longer than 350ms to load. Sorted by latency (slowest first).

Unhealthy Status Codes

Pages returning HTTP status codes > 299 or network errors.

Summary

Total URLs processed and overall site health.

Example Output

Starting crawl on https://example.com with 10 concurrent workers and max 2000 URLs.

======================================================
         🌐 Website Health Report for example.com
======================================================
Total URLs Processed: 42

## 🐢 Slow Responses (> 350ms) (3 found)
┌─────────────────────┬───────┬────────┬──────────────┐
│ URL                 │ Type  │ Status │ Latency (ms) │
├─────────────────────┼───────┼────────┼──────────────┤
│ https://example.com │ page  │ 200    │ 523          │
└─────────────────────┴───────┴────────┴──────────────┘

---

✅ All processed links returned healthy status codes (<= 299).

======================================================

Development

Build

npm run build

Build and test

npm run build
node dist/index.js https://example.com

License

MIT