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

rexpo-debugger

v1.1.4

Published

Professional debugging tool for Expo and React Native apps. Inspect network traffic and console logs in real-time with Chrome DevTools-like UI.

Downloads

528

Readme

Rexpo Debugger

Professional debugging tool for Expo and React Native apps. Inspect network traffic and console logs in real-time with Chrome DevTools-like UI.

✨ Features

Network Monitoring

  • fetch API (native, automatically captured)
  • axios (with interceptors, automatically detected)
  • ✅ Custom axios instances (via addAxiosInstance())

Console Monitoring (NEW! 🎉)

  • All console methods (log, warn, error, info, debug)
  • Stack traces for errors and warnings
  • Rich formatting (objects, arrays, errors, dates, etc.)

🏗️ How It Works

Rexpo Debugger consists of two parts:

  1. Desktop Inspector (Electron app) - Must be running on your computer
  2. npm package - Installed in your Expo app

Your Expo app connects to the desktop inspector via WebSocket to send network/console data.

💡 Desktop Inspector: Download pre-built binaries for macOS, Windows, and Linux from GitHub Releases

📦 Installation

Install via npm:

npm install rexpo-debugger

or with yarn:

yarn add rexpo-debugger

🚀 Quick Start

1. Install the Package

npm install rexpo-debugger

2. Initialize the Agent

In your main file (e.g. App.tsx or app/_layout.tsx):

import { initNetworkAgent, initConsoleAgent } from "rexpo-debugger";

if (__DEV__) {
  // Network monitoring
  initNetworkAgent({
    wsUrl: "ws://192.168.1.100:5051", // Your computer's local IP address
    enabled: true,
  });

  // Console monitoring (NEW!)
  initConsoleAgent({
    wsUrl: "ws://192.168.1.100:5051", // Same WebSocket connection
    enabled: true,
    captureStackTrace: true, // Capture stack traces for errors/warnings
  });
}

3. (Optional) Add Custom Axios Instances

If you use custom axios instances:

import {
  initNetworkAgent,
  initConsoleAgent,
  addAxiosInstance,
} from "rexpo-debugger";
import { apiClient } from "./api/client"; // Your custom axios instance

if (__DEV__) {
  // Network monitoring
  initNetworkAgent({
    wsUrl: "ws://192.168.1.100:5051",
  });

  // Add your custom axios instance
  addAxiosInstance(apiClient);

  // Console monitoring
  initConsoleAgent({
    wsUrl: "ws://192.168.1.100:5051",
    enabled: true,
  });
}

4. Find Your Local IP Address

macOS / Linux:

ifconfig | grep "inet " | grep -v 127.0.0.1

Windows:

ipconfig

Look for an address like 192.168.x.x or 10.0.x.x in the output.

5. Download and Start the Desktop Inspector

Download the desktop application for your platform:

📦 All releases: View all releases on GitHub

After downloading, open the application. It will automatically start a WebSocket server at ws://localhost:5051.

6. Run Your Expo Application

npx expo start

Open your app on a physical device or emulator. Network requests will automatically start appearing in the inspector! 🎉

Configuration Options

initNetworkAgent({
  // WebSocket URL (required)
  wsUrl: "ws://192.168.1.100:5051",

  // Enable/disable the agent (optional, default: true)
  enabled: true,

  // Maximum body snippet length (optional, default: 3000)
  maxBodyLength: 3000,

  // Enable detailed logging (optional, default: false)
  // When false, only critical errors are logged
  // When true, all network activity is logged
  debug: false,
});

Debug Mode

By default, the agent runs in silent mode and only logs critical errors. To see detailed logs of all network activity:

// Silent mode (default) - only critical errors
initNetworkAgent({
  wsUrl: "ws://192.168.1.100:5051",
});

// Debug mode - detailed logging
initNetworkAgent({
  wsUrl: "ws://192.168.1.100:5051",
  debug: true,
});

Debug logs include:

  • Connection status
  • Health checks (every 10 seconds)
  • Request/response capturing
  • Metadata tracking
  • Interceptor setup

Always logged (even in silent mode):

  • WebSocket connection errors
  • Request/response errors
  • Critical failures

Troubleshooting

"Connection refused" error

  • Make sure you entered your computer's IP address correctly
  • Make sure the inspector application is running
  • Make sure your device is on the same WiFi network
  • Check firewall settings

Requests not showing up

  • Enable debug mode to see detailed logs: debug: true
  • Check for the "[NetworkAgent] Connected to inspector" message in the console (requires debug mode)
  • Make sure you are in __DEV__ mode
  • Make sure the agent is initialized correctly
  • Verify the desktop inspector app is running

Body not showing up

Some request/response bodies may be binary or stream-based. The agent only displays text-based bodies.