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

pughost

v0.0.1

Published

Production Parity for Local Development

Downloads

16

Readme

pughost

Localhost is a lie. Test in reality.

npm version License: MIT

Your API works flawlessly on localhost. Then it hits production—users on 3G in Lagos, satellite connections in rural areas, congested airport WiFi—and everything breaks. Timeouts, race conditions, spinners that never stop.

Pughost injects real-world network chaos into your local development. Find the bugs before your users do.

What It Does

Pughost is a network simulation layer between your local client and server. It introduces:

  • Latency — delayed responses (3G, satellite)
  • Jitter — variable delays (unstable connections)
  • Bandwidth limits — throttled data transfer
  • Packet loss — dropped connections

Installation

npm install -g pughost

Automatically downloads the correct binary for your OS (macOS, Linux, Windows) and architecture (x64, arm64). No manual setup required.

Quick Start

1. Initialize — Generate a config file in your project:

pughost init

This creates pughost.json:

{
  "upstream": "localhost:3000",
  "proxyPort": 3001,
  "scenarios": {
    "mobile_3g_slow": { "latency": 1000, "jitter": 500, "bandwidth": 50 },
    "wifi_cafe_crowded": { "latency": 100, "jitter": 800, "packet_loss": 0.05 },
    "satellite_link": { "latency": 800, "bandwidth": 1000 }
  }
}

2. Start your backend — Run your server on its normal port (e.g., 3000).

3. Activate chaos — Start the proxy with a scenario:

pughost start -s mobile_3g_slow

4. Test through the proxy — Point your client to http://localhost:3001 instead of :3000.

| Endpoint | Behavior | |----------|----------| | localhost:3000 | Normal (dev mode) | | localhost:3001 | Chaos (reality mode) |

Commands

| Command | Description | |---------|-------------| | pughost init | Create pughost.json config file | | pughost list | Show available scenarios | | pughost start -s <name> | Start proxy with scenario | | pughost --help | Show all commands |

Scenario Parameters

| Parameter | Unit | Description | |-----------|------|-------------| | latency | ms | Base delay added to responses | | jitter | ms | Random variance in latency | | bandwidth | kbps | Max data transfer rate | | packet_loss | 0.0–1.0 | Probability of connection drop |

Use Cases

  • Mobile app testing — Simulate 3G/4G conditions against your local API
  • Emerging markets — Test for users in Nigeria, India, Indonesia
  • Resilience testing — Verify timeout handling, retry logic, loading states
  • QA workflows — Consistent network conditions for bug reproduction

How It Works

Pughost wraps Toxiproxy (by Shopify) and manages its lifecycle automatically. You get battle-tested chaos engineering without the setup complexity.

Requirements

  • Node.js >= 18
  • Internet access on first install (downloads Toxiproxy binary)

License

MIT © Victor Durosaro