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

hping

v0.2.1

Published

HTTP ping CLI with Node.js that sends HEAD or GET or POST requests to web or api servers and checks if they alive

Downloads

216

Readme

hPING (HTTP ping)

Node.js CLI that sends HTTP HEAD, GET, or POST requests to web/api servers.

Node.js Support

  • Supported: Node.js 20+ (validated against current major runtimes, including Node 22+).

Installation

hPING is installable via npm:

$ npm install hping -g

Usage

hPING single server www.google.com:

$ hping www.google.com

hPING server www.google.com with a 10-second interval:

$ hping www.google.com -i 10

hPING single server with GET method:

$ hping get www.google.com

hPING multiple servers:

$ hping www.google.com www.apple.com www.microsoft.com

hPING group of servers from config file (default config: ~/.hping/hping.conf.yaml):

$ hping "apple production"

hPING can mix group of servers and separate hosts with single command:

$ hping "apple production" www.github.com

Explicit ping command (modern style):

$ hping ping www.google.com

Settings

hPING default settings (~/.hping/hping.conf.yaml):

interval: 1 # (seconds) interval between hPING requests
type: HEAD # (type or requests): HEAD, GET, POST, PUT
timeout: 5000 # (milliseconds) request connection timeout
use_colors: true # (true || false), use colors for hPING output
show_stats_for_last: 100 # (number of requests) show hPING statistics for last X number of requests, set 0 to disable
max_run_time: 600 # (seconds) hPING maximum running time, set 0 to disable

log_status_change: false # (true || false) if true, hPING will log status changes to log file
log_file: logs/hping.log # (path) to hPING log file, default path in users home .hping folder
log_stats_on_exit: true # (true || false) if true, hPING will log statistics to file on exit

display_in_output: # use true || fasle to turn on/off log output sections
  status: true 
  url: true
  ip: true
  type: false
  status_code: true
  status_info: true
    server: true
    content_length: false
    response_time: true

Show hPING server groups:

$ hping servers

Display hPING current settings:

$ hping settings

hPING server www.google.com with custom config:

$ hping www.google.com -c /etc/hping.conf.yaml

Help

hPING quick usage help:

$ hping 
usage: hping [ping|head|get|post] [http(s)://]www.webserver.com[:port] [another host] [server group]

hPING full help:

$ hping -h

Log to file

Enable status-change logging with log_status_change: true.

Default log file location: ~/.hping/logs/hping.log (override with log_file).

Development

Install deps:

$ npm install

Run tests:

$ npm test

##License The MIT License (MIT) Copyright (c) 2014 Sergey Kurdin