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

subway-sim

v0.1.0

Published

Cross-platform Mobile Network Simulator (Windows & macOS)

Downloads

154

Readme

Network Relay (Subway-Sim)

License: MIT Rust Async WinDivert

A high-performance kernel-level network chaos simulator for Windows that allows you to test how your applications behave under poor network conditions like high latency, packet loss, and jitter.

Built with Rust, Tokio, and WinDivert, network-relay intercepts local network traffic in real-time to simulate real-world scenarios such as riding a subway, being in an elevator, or using a spotty 3G connection.


Features

  • Real-time Interception: Uses WinDivert to capture and manipulate packets at the kernel level.
  • Predefined Profiles: Quickly switch between common "bad network" scenarios:
    • subway: Spotty connection with 800ms latency and 10% packet loss.
    • elevator: Near dead-zone with 2.5s latency and 20% loss.
    • mountain: High-altitude latency (4s) with 5% loss.
    • 3g: Standard slow mobile network (400ms latency, 2% loss).
    • chaos: Extreme jitter (1500ms latency, 35% packet loss).
  • Customizable: Override profile defaults with your own latency and drop rate values.
  • TUI Dashboard: A live terminal interface showing packet statistics and network stability graphs.
  • Multi-port Targeting: Automatically targets common development ports (8080, 3000, 8000, 5000) or a specific port of your choice.

Getting Started

Prerequisites

  • Windows: This tool requires Windows for WinDivert support.
  • Administrator Privileges: Packet interception requires running the terminal as an Administrator.

Installation

  1. Clone the repository:

    git clone https://github.com/bhavukar/network-relay.git
    cd network-relay
  2. Build the project:

    cargo build --release

Usage

Run the simulator with a specific profile (must be run as Administrator):

# Start with the default 'subway' profile
.\target\release\subway-sim.exe start

# Target a specific port with a custom profile
.\target\release\subway-sim.exe start --port 3000 --profile elevator

# Fully custom settings
.\target\release\subway-sim.exe start --port 8080 --latency 1500 --drop 15

Technical Stack

  • WinDivert: Kernel-level packet interception.
  • Ratatui: Terminal UI for live monitoring.
  • Tokio: Asynchronous runtime for handling packet delays without blocking.
  • Clap: Robust CLI argument parsing.

License

MIT © Bhavuk Arora