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

insomnia-plugin-slow-network

v1.0.3

Published

Simulates slow network conditions (3G, EDGE, 2G) to test APIs under poor connectivity. Use the X-Slow-Network header with chunk|delay format or template tags for ready-made presets.

Readme

slow-network

Insomnia plugin that simulates slow network conditions to test APIs under poor connectivity.

Installation in Insomnia

  1. Open Insomnia
  2. Go to ApplicationPreferences (or Ctrl/Cmd + ,)
  3. Click the Plugins tab
  4. Click Install Plugin
  5. Enter insomnia-plugin-slow-network and confirm
  6. The plugin will be installed and appear in the list

How to Use in Insomnia

  1. Create or open a request
  2. In the Headers tab, add the X-Slow-Network header
  3. Set the value (see options below) and send the request
  4. The response will be delivered in chunks with delay, simulating a slow network

Configuration Options

Option 1: Template Tags (recommended)

  1. Add the header: use {% slowNetworkHeader %} as header name, or type X-Slow-Network
  2. Set the value to a template tag: {% slowNetwork3g %}, {% slowNetworkEdge %}, etc.
  3. Send the request

Available presets:

| Tag | Returns | Simulates | | ------------------------------------- | -------------- | ----------- | | {% slowNetworkHeader %} | X-Slow-Network | Header name | | {% slowNetwork3g %} | 256 B, 200 ms | 3G | | {% slowNetworkEdge %} | 128 B, 400 ms | EDGE | | {% slowNetwork2g %} | 64 B, 700 ms | 2G | | {% slowNetworkCustom chunk delay %} | custom | Custom |

Option 2: Manual value

Set the X-Slow-Network header to a value in the format chunk|delay:

X-Slow-Network: 256|200
  • chunk – Size of each chunk in bytes (e.g. 256)
  • delay – Delay between chunks in milliseconds (e.g. 200)

Example

GET https://api.example.com/users
Headers:
  X-Slow-Network: 128|400

This simulates an EDGE-like connection: 128 bytes per chunk, 400 ms between chunks.

The Problem

APIs are usually tested on fast, stable connections. In production, many users face:

  • Weak mobile signals (3G, EDGE, 2G)
  • Congested networks
  • Unstable connections

Without testing under these conditions, you may ship APIs that:

  • Time out too early or too late
  • Provide poor loading feedback
  • Fail in ways you didn't anticipate

What This Plugin Solves

This plugin throttles request and response transfers by sending data in small chunks with configurable delays. You can:

  • Test how your API behaves on slow networks
  • Tune timeouts and retry logic
  • Validate loading states and UX before production

How It Works

  1. Proxy – When a request includes the X-Slow-Network header, the plugin starts a local proxy server.
  2. Interception – The request is redirected to localhost. The proxy receives it and forwards to the actual target.
  3. Throttling – Both the request body and response body are sent in chunks of N bytes, with M ms delay between each chunk.
  4. Cleanup – After the response finishes, the proxy is stopped.

The format is chunk|delay (e.g. 256|200 = 256 bytes per chunk, 200 ms between chunks).