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

netwatch

v1.0.0

Published

Terminal-based network inspector for React Native apps

Downloads

8

Readme

netwatch

Terminal-based network inspector for React Native apps. Captures HTTP requests via Reactotron and displays them in a flicker-free split-pane TUI.

TypeScript Ink License

Features

  • Split-pane TUI — request list (left) + detail view (right) with borders
  • Flicker-free rendering — Ink incremental rendering + synchronized output (BSU/ESU)
  • JSON syntax highlighting — colored keys, strings, numbers, booleans in response bodies
  • Status badges — background-colored status codes with descriptions (200 OK, 404 Not Found, etc.)
  • Headers toggle — press h to show/hide request/response headers
  • Fuzzy filtering — press / to search by URL, method, or status
  • Mouse support — click to focus panes, scroll wheel on focused pane, hover highlighting
  • Follow-cursor scrolling — request list viewport follows selection
  • Request/response toggle — press r to switch between request and response body
  • Pause capture — press p to pause incoming requests
  • Terminal resize — layout adjusts dynamically on window resize
  • Config file.netwatchrc for port, mode, ignored URLs, max requests

Quick Start

# Clone and install
git clone https://github.com/kmelkon/netwatch.git
cd netwatch
npm install --registry https://registry.npmjs.org/

# Run
npm start

Then configure your React Native app to connect Reactotron to port 9090.

Keyboard Shortcuts

| Key | Action | |-----|--------| | ↑↓ / j/k | Navigate request list | | u / d | Scroll detail pane | | r | Toggle request/response body | | h | Toggle headers display | | / | Focus filter input | | Esc | Exit filter | | c | Clear all requests | | p | Pause/resume capture | | q | Quit |

Mouse Support

  • Click a pane to focus it (cyan border)
  • Scroll wheel on the focused pane to scroll content
  • Hover highlights pane border (yellow)

Requires a terminal with mouse support (iTerm2, kitty, WezTerm, Windows Terminal).

Configuration

Create a .netwatchrc file in your project root or ~/.netwatchrc:

{
  "port": 9090,
  "mode": "reactotron",
  "ignoredUrls": ["/symbolicate", "/logs"],
  "maxRequests": 500
}

| Option | Default | Description | |--------|---------|-------------| | port | 9090 | WebSocket server port | | mode | "reactotron" | Connection mode (reactotron or standalone) | | ignoredUrls | [] | URL patterns to ignore | | maxRequests | 500 | Max stored requests |

The NETWATCH_PORT environment variable overrides the config file port.

Tech Stack

  • Ink — React for terminal UIs
  • Zustand — state management
  • Fuse.js — fuzzy search
  • ws — WebSocket server
  • chalk — terminal styling

Development

npm run dev        # Watch mode
npm test           # Run tests
npm run test:watch # Watch tests

Reactotron Setup

In your React Native app:

import Reactotron from "reactotron-react-native";

Reactotron.configure({
  host: "localhost",
  port: 9090,
})
  .useReactNative({ networking: true })
  .connect();

Tip: Reactotron doesn't auto-reconnect. Add onDisconnect to retry:

Reactotron.configure({
  host: "localhost",
  port: 9090,
  onDisconnect: () => setTimeout(() => Reactotron.connect(), 3000),
})