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

hammer-load

v0.1.2

Published

HTTP load generator with coordinated-omission-corrected latency

Readme

hammer-load

An HTTP load generator that does not lie about tail latency.

Most load generators quietly under-report p99. When the server stalls, a closed-loop generator sends nothing during the stall, so the requests that would have queued behind it are never issued, never timed, and never appear in the histogram — it omits exactly the samples that mattered. hammer measures latency from when each request should have departed, and ships both measurements so you can see the difference on your own server.

npm install -g hammer-load
hammer -c 50 -t 4 -d 30 --rate 20000 --latency http://localhost:8080/

Installing downloads a prebuilt binary for Linux x86_64, macOS arm64 or Windows x86_64 and verifies its SHA-256. If there is no prebuilt binary for your platform it builds from source, which needs CMake 3.21+ and a C++20 compiler.

The point

hammer -c 20 -t 4 -d 10 --rate 2000 --latency http://127.0.0.1:8080/               # corrected
hammer -c 20 -t 4 -d 10 --rate 2000 --latency --closed-loop http://127.0.0.1:8080/ # what most tools report

Same server, same schedule, same 20,000 requests — only the stopwatch differs:

| percentile | corrected | closed loop | |-----------:|----------:|------------:| | 90% | 45.25ms | 414.46us | | 99% | 182.19ms | 3.78ms | | max | 211.81ms | 210.98ms |

A closed-loop tool reports 3.78ms at p99 and you conclude the service is healthy. The corrected number is 182ms. Nothing about the server changed between those columns.

Options

  -c, --connections N    total connections           (default 50)
  -t, --threads N        worker threads              (default 4)
  -d, --duration S       test duration in seconds    (default 10)
  -r, --rate N           target req/s; turns on open-loop mode
      --closed-loop      measure from actual send even with --rate set
  -m, --method M         HTTP method                 (default GET)
  -H, --header "K: V"    extra header, repeatable
      --body FILE        request body from file
      --timeout MS       per-request timeout         (default 2000)
      --latency          print the full percentile spectrum
      --json             machine-readable output
      --version, -h, --help

No HTTPS, no HTTP/2, no redirects. The sockets, the HTTP parsing and the HDR histogram are all hand-written — no libcurl, no boost.

Full documentation, design notes and the reasoning behind the comparison: https://github.com/AroseEditor/hammer