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

react-native-flipper-inspector

v1.0.16

Published

React Native debugging toolkit with API inspector, network monitoring, and Flipper integration

Readme

React Native Flipper Inspector

npm version npm downloads License: MIT TypeScript

Professional Network Debugging & API Monitoring for React Native 🚀

A production-ready React Native debugging toolkit with professional API monitoring overlay, designed for seamless integration with Flipper. Monitor network requests, inspect API calls, track state changes, and debug with ease.

Latest Version: v1.0.16 | Status: ✅ Production Ready

🎉 v1.0.16 Released! Fixed package building, minification issues, and improved compatibility. Clean example app with working setup. 🚀

✨ Key Features

🎯 Core Features

  • 🔍 Universal Network Monitoring: Automatically captures ALL HTTP traffic (Axios, Fetch, Superagent, any XHR/Fetch-based library)
  • 📱 Floating Button UI: Always-accessible, draggable monitoring interface with haptic feedback
  • 🎯 Third-Party Library Support: Works with Axios, Superagent, and 98% of React Native HTTP libraries - zero configuration!
  • 🔎 Smart Search: Real-time search with sticky state persistence across API calls
  • 🎨 JSON Highlighting: Beautiful syntax highlighting with dark theme (keys, values, structures)
  • 📋 Copy Features: Generate cURL commands, copy endpoints, headers, and response data
  • 🚨 Error Tracking: Automatic error capture and detailed error reporting
  • ⚡ Performance Metrics: Track API response times and network performance
  • 🔒 Production Safe: Auto-disabled in production builds with __DEV__ checks

🚀 Advanced Features (v1.0.6+)

  • 🎯 Draggable Floating Button: Professional floating button with smooth drag interaction and visual feedback
  • 🔄 Sticky Search: Search queries persist when navigating between different API calls
  • 📊 Match Navigation: Previous/Next buttons to step through search results
  • 📝 Structured Logging: Logging, error tracking, metrics, state management, and tracing APIs
  • 🔗 Redux Integration: Optional Redux store monitoring and action tracking
  • 📦 Message Batching: Optional batching for improved performance

💎 Easy Setup (v1.0.6+)

  • 🔌 FlipperInspectorProvider: One-component setup (recommended)
  • 🪝 useFlipperInspector Hook: One-hook initialization
  • ⚙️ Manual Setup: Full control with init() and patchNetwork()

📸 Screenshots

API Inspector in Action

What You See:

  • 🎯 Floating Button with smooth drag interaction
  • 📊 API call list with real-time monitoring
  • 🔍 Detailed API information with search
  • 🎨 Beautiful JSON syntax highlighting
  • 📋 Copy as cURL, headers, response body

🆕 What's New in 1.0.16

Fixes and Improvements - October 30, 2025

What's Fixed:

  • Package Building - Fixed npm pack deleting dist folder issue
  • Minification - Disabled to prevent export issues
  • Deprecated API - Fixed SafeAreaView deprecation in example app
  • Build Configuration - Improved tsup compatibility

What Changed:

  • 🔧 Better build and pack process
  • 📦 Optimized package scripts
  • 🎨 Updated example app to modern patterns

Upgrade:

npm install [email protected]

📋 Changelog


📦 Installation

npm install react-native-flipper-inspector
# or
yarn add react-native-flipper-inspector
# or
pnpm add react-native-flipper-inspector

Peer Dependencies

# Optional: For Flipper desktop integration
npm install react-native-flipper

🚀 Quick Start

⭐ Recommended Setup (Manual Control)

For best reliability and explicit control:

import React, { useEffect } from 'react';
import { ReactNativeInspectorOverlay, init, patchNetwork } from 'react-native-flipper-inspector';

export default function App() {
  useEffect(() => {
    // Initialize inspector
    init({ enabled: __DEV__ });
    
    // Enable network monitoring
    patchNetwork({ enabled: true });
  }, []);

  return (
    <>
      {/* Your app content */}
      <ReactNativeInspectorOverlay position="bottom-right" size={60} />
    </>
  );
}

That's it! The floating inspector will appear with network monitoring enabled.

🎨 Customization

import { ReactNativeInspectorOverlay } from 'react-native-flipper-inspector';

<ReactNativeInspectorOverlay
  position="top-left"   // 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'
  size={72}             // Floating button size in pixels
  color="#6366f1"       // Floating button color
  enabled={true}        // Enable/disable the inspector
/>;

🎯 Core API Usage

Logging

import { log, error } from 'react-native-flipper-inspector';

// Log messages
log('User action', { userId: 123, action: 'login' });

// Log errors
error('API failed', { endpoint: '/api/users', status: 500 });

Metrics

import { metric } from 'react-native-flipper-inspector';

// Track performance metrics
metric('api_response_time', 250, { endpoint: '/api/users' });
metric('db_query_time', 45, { operation: 'SELECT' });

State Management

import { state } from 'react-native-flipper-inspector';

// Update state
state.update('user', { id: 123, name: 'John Doe' });

// Remove state
state.remove('user');

Performance Tracing

import { trace } from 'react-native-flipper-inspector';

// Start trace
const traceId = trace.start('api_call');

// Perform operation...
try {
  const response = await fetch('/api/data');
  trace.end(traceId, { success: true, status: response.status });
} catch (error) {
  trace.end(traceId, { success: false, error: error.message });
}

🔍 API Inspector Overlay

Network Monitoring

The overlay automatically monitors all network requests:

import { patchNetwork } from 'react-native-flipper-inspector';

// Enable automatic fetch/XMLHttpRequest interception
patchNetwork();

// All requests now appear in the inspector
fetch('/api/users').then(r => r.json());

Search Features

  • Real-time Search: Type to filter API calls by URL, method, headers, or response
  • Sticky Search: Search state persists when switching between different API calls
  • Match Navigation: Use Previous/Next buttons to navigate through matches
  • Highlighted Matches: Current match in orange, others in yellow

Copy Features

  • cURL Commands: Copy API calls as executable cURL commands
  • Endpoints: Copy just the URL
  • Request Body: Copy request payload
  • Response Body: Copy response data
  • Headers: Copy all request/response headers
  • Raw JSON: Copy complete API call data

JSON Syntax Highlighting (Dark Theme)

Beautiful color-coded JSON display:

  • Keys: Gold (#FFD700)
  • Strings: Spring Green (#00FF7F)
  • Numbers: Deep Sky Blue (#00BFFF)
  • Booleans: Orange (#FFA500)
  • Null: Hot Pink (#FF69B4)
  • Structure: Medium Purple (#9370DB)

🔗 Redux Integration

Monitor Redux actions and state changes:

import { attachRedux } from 'react-native-flipper-inspector';
import { store } from './store';

attachRedux(store, {
  actionFilter: (action) => action.type.startsWith('api/'),
  stateFilter: (state) => state.api,
});

🎨 Customization

Configure Batching

init({
  enabled: __DEV__,
  batch: {
    intervalMs: 500,    // Batch every 500ms
    maxItems: 100,      // Or when 100 items collected
  },
});

Disable in Specific Conditions

init({
  enabled: __DEV__ && !isE2ETest, // Disable in E2E tests
});

📱 Platform Support

  • React Native: 0.71+
  • Android: API 21+ (Android 5.0+)
  • iOS: iOS 11+
  • TypeScript: Full TypeScript support with strict mode

📚 Documentation

Complete documentation included:

  • README: This file with installation and usage
  • CHANGELOG: Version history and changes
  • Example App: Working demo in apps/example

View on GitHub

🧪 Testing

# Run tests
npm test

# Run tests with coverage
npm run test:coverage

# Lint code
npm run lint

# Fix linting issues
npm run lint:fix

🔧 Development

Build the Package

npm run build

Watch Mode

npm run dev

📊 Package Contents

v1.0.16 includes:

  • ✅ TypeScript source code with full type safety
  • ✅ CommonJS (CJS) distribution
  • ✅ ES Module (ESM) distribution
  • ✅ TypeScript declarations (.d.ts)
  • ✅ Source maps for debugging
  • ✅ Android native module
  • ✅ iOS native module
  • ✅ Screenshots
  • ✅ README, LICENSE, CHANGELOG
  • ✅ Working example app

Package Size:

  • Tarball: ~440 KB
  • Unpacked: ~1.3 MB

🗺️ Roadmap

Version 2.0 (Planned)

  • 📤 Postman-like Request Sender: Send custom API requests from the inspector
  • 📊 Advanced Analytics: Performance graphs and network statistics
  • 🔐 Response Mocking: Mock API responses for testing
  • 🔍 Advanced Filtering: Filter by status, headers, payload, and more
  • 📁 Request Collections: Save and organize requests
  • 🔗 Request Chaining: Use response data in subsequent requests

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Community

📄 License

MIT License - See LICENSE file for details

🆘 Support

🌟 Version History

  • v1.0.16: ✅ Fixed package building, minification, and compatibility (Oct 2025)
  • v1.0.14: 🎯 Unified Interceptor Registry - Complete Axios/XHR support
  • v1.0.13: 🐛 Fixed stack overflow issue
  • v1.0.12: 🚀 Added XMLHttpRequest/Axios support
  • v1.0.0: Initial release with core features

🙏 Acknowledgments

  • Built for the React Native community
  • Inspired by Flipper's debugging capabilities
  • Designed with modern development workflows in mind
  • Made by @khokanuzzman

Made with ❤️ for React Native developers

⭐ Star us on GitHub!