
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Localhost is a lie. Test in reality.
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.
Pughost is a network simulation layer between your local client and server. It introduces:
npm install -g pughost
Automatically downloads the correct binary for your OS (macOS, Linux, Windows) and architecture (x64, arm64). No manual setup required.
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) |
| 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 |
| 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 |
Pughost wraps Toxiproxy (by Shopify) and manages its lifecycle automatically. You get battle-tested chaos engineering without the setup complexity.
MIT © Victor Durosaro
FAQs
Production Parity for Local Development
We found that pughost demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.