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

@mspvirajpatel/react-native-network-monitor

v0.6.2

Published

A powerful, production-ready debug monitor for React Native apps. Intercepts network requests (fetch & XHR), captures console logs, and provides a beautiful in-app debug UI with password protection, environment switching, and log export.

Readme

React Native Network Monitor

React Native Network Monitor Banner

npm version npm downloads License: MIT TypeScript React Native

Professional Debug Overlay for React Native Apps

🚀 Demo • 📦 Installation • 📖 Documentation • 🤝 Contributing


✨ Features

| Feature | Description | |---------|-------------| | 🌐 Network Monitoring | Automatic interception of fetch & XMLHttpRequest with request/response details | | 📊 Performance Tracking | Real-time FPS monitoring, memory usage, and historical charts | | 🔌 WebSocket Logging | Track WebSocket connections, messages, and errors | | 📝 Console Capture | Capture console.log, warn, error, and info messages | | 💾 State Tracking | Redux & Zustand middleware for state change visualization | | 📲 Push Notifications | Log and inspect push notification payloads | | 🧭 Navigation Flow | Visualize screen transitions with timing and deep links | | 🔍 Advanced Filtering | Filter by method, status, domain, time range, and regex | | 📤 Export Capabilities | JSON, text reports, and HAR file export | | 🔐 Security | Password protection, tap-count authentication, and shake gestures | | 🌍 i18n | 13 languages with RTL support | | 🎨 Theming | Dark/Light modes with custom color support |


📦 Installation

npm install @mspvirajpatel/react-native-network-monitor
# or
yarn add @mspvirajpatel/react-native-network-monitor

🚀 Quick Start

1. Wrap Your App

import { DebugTrigger } from '@mspvirajpatel/react-native-network-monitor';

export default function App() {
  return (
    <DebugTrigger password="2026">
      <YourApp />
    </DebugTrigger>
  );
}

2. Open the Debugger

  • Tap the floating DEBUG button 5 times
  • Enter password (default: 2026)
  • Done! 🎉

📱 Demo

Debug Monitor Preview

Real-time network monitoring with advanced filtering


⚙️ Configuration

Basic Props

<DebugTrigger
  password="2026"           // Password for authentication
  clicksNeeded={5}          // Taps needed to open
  enableShake={true}        // Enable shake gesture
  theme="dark"              // 'light' | 'dark' | 'auto'
  language="en"             // Language code
>
  <YourApp />
</DebugTrigger>

Feature Flags

<DebugTrigger
  features={{
    network: true,          // Network monitoring
    console: true,          // Console capture
    websocket: true,        // WebSocket logging
    performance: true,      // FPS tracking
    memory: true,           // Memory monitoring
    notifications: true,    // Push notification logging
    navigationFlow: true,   // Navigation tracking
    errorBoundary: true,    // Error boundary
    persistence: true,      // Log persistence
  }}
>
  <YourApp />
</DebugTrigger>

Custom Theme

<DebugTrigger
  theme="dark"
  colors={{
    primary: '#38BDF8',
    secondary: '#22C55E',
    success: '#10B981',
    accent: '#8B5CF6',
  }}
>
  <YourApp />
</DebugTrigger>

🔧 Advanced Usage

Programmatic Control

import { useDebugger } from '@mspvirajpatel/react-native-network-monitor';

function MyComponent() {
  const { openDebugger, closeDebugger, isDebuggerOpen } = useDebugger();
  
  return (
    <Button 
      title="Open Debug" 
      onPress={openDebugger} 
    />
  );
}

State Tracking (Redux)

import { createReduxMiddleware } from '@mspvirajpatel/react-native-network-monitor';

const store = createStore(rootReducer, applyMiddleware(
  createReduxMiddleware({ storeName: 'MyStore' })
));

State Tracking (Zustand)

import { createZustandMonitor } from '@mspvirajpatel/react-native-network-monitor';

const useStore = create(
  createZustandMonitor(
    (set) => ({ count: 0, increment: () => set((state) => ({ count: state.count + 1 })) }),
    { storeName: 'Counter' }
  )
);

Manual Notification Logging

import { logNotification } from '@mspvirajpatel/react-native-network-monitor';

// In your notification handler
logNotification({
  title: 'New Message',
  body: 'You have a new message',
  data: { screen: 'Chat', id: 123 },
  source: 'remote',
});

Navigation Tracking

import { logNavigationEvent } from '@mspvirajpatel/react-native-network-monitor';

// In your navigation listener
logNavigationEvent({
  screen: 'Profile',
  method: 'push',
  params: { userId: 123 },
  deepLink: 'myapp://profile/123',
});

📊 Tabs Overview

| Tab | Description | |-----|-------------| | All | Combined view of all logs | | Network | HTTP requests and responses | | Console | Console.log, warn, error messages | | WS | WebSocket events | | FPS | Performance monitoring | | Memory | Heap usage tracking | | Store | State changes (Redux/Zustand) | | Notifs | Push notification logs | | Flow | Navigation flow visualization | | Settings | Configuration and export |


🛠️ Development

# Clone the repository
git clone https://github.com/mspvirajpatel/react-native-network-monitor.git

# Install dependencies
cd packages/network-monitor
npm install

# Build the package
npm run build

# Type check
npm run typescript

# Lint
npm run lint

📝 Export Features

JSON Report

import { generateExportReport } from '@mspvirajpatel/react-native-network-monitor';

const report = generateExportReport();

HAR Export

import { saveReportToFile } from '@mspvirajpatel/react-native-network-monitor';

await saveReportToFile('network.har');

Share Report

import { formatReportAsText } from '@mspvirajpatel/react-native-network-monitor';

const text = formatReportAsText();
await Share.share({ message: text });

🌍 Supported Languages

English, Spanish, French, German, Portuguese, Italian, Japanese, Korean, Chinese (Simplified), Chinese (Traditional), Arabic, Russian, Turkish, Hindi, Gujarati, Azerbaijani


🤝 Contributing

Contributions are welcome! Please read our Contributing Guide before submitting a PR.

Development Setup

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


🙏 Support

If this project helps you, please consider giving it a ⭐ on GitHub!

GitHub stars


📞 Contact


Made with ❤️ for the React Native community