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-debug-logger

v1.3.0

Published

A premium hidden debug logger and network monitor for React Native apps

Readme

React Native Debug Logger 🚀

A premium, high-performance debug monitor and network logger for React Native applications. Intercept Network requests (Fetch, XHR, Axios) and track logs with a beautiful hidden UI.

Zero forced dependencies. Works with any storage engine (MMKV, AsyncStorage, Realm, etc.).

Aesthetic Type Deps

Features ✨

  • 🛠 Universal Network Monitoring: Automatically intercepts fetch and XMLHttpRequest.
  • 📦 Optional Axios Support: Move beyond standard interceptors. Works only if you have Axios.
  • 📱 Premium UI: Dark-themed, glassmorphic design for the debug console.
  • 🔍 Advanced Filtering: Search by URL, Method, or Filter by log type (Request, Response, Error).
  • 🔐 Secure Access: Clicks-based hidden trigger with optional password protection.
  • 🧪 Dynamic Security: isEnabled and checkAccess props for role-based debugging.
  • 📤 Log Export: Share entire log history via native share sheet.
  • 🌐 Flexible Environment Switcher: Built-in toggle that works with ANY storage solution.

Installation 📥

npm install react-native-debug-logger

Usage 🛠

⚡️ Quickest Setup (Automatic)

Just wrap your main app entry (or any component) with DebugTrigger. That's it! Everything — including network monitoring — is automatically configured and works in Release mode.

import { DebugTrigger } from 'react-native-debug-logger';

const App = () => {
  return (
    <DebugTrigger>
      <MainApp />
    </DebugTrigger>
  );
};

🎨 Custom Configuration (All Optional)

| Prop | Type | Default | Description | |------|------|---------|-------------| | clicksNeeded | number | 5 | Clicks to reveal the password modal | | password | string | '2024' | Secret password to access the monitor (Set null for none) | | isDemo | boolean | false | Initial environment state | | enabled | boolean | true | Completely enable/disable the trigger | | checkAccess | function| - | Sync/Async function to verify permission | | onEnvChange | function| - | Optional switcher (if provided, shows toggle) |

🔘 Persistent Floating Button

Once the debug menu is opened for the first time (via clicks/password), a small DEBUG button will appear on the screen (fixed position). This allows you to quickly re-open the menu while navigating through different pages and testing requests. To hide it, use the "Xitam ver" button inside the debug menu header.

<DebugTrigger 
  password="ADMIN_PASSWORD"
  clicksNeeded={10}
  onEnvChange={(newEnv) => {
    // optional: handle environment toggles
    Storage.set('api_env', newEnv);
  }}
>
  <YourApp />
</DebugTrigger>

🔬 Manual Setup (Optional)

If you only want the logger without the UI trigger, or need it to start before your UI renders, call setupNetworkMonitor manually in index.js. It's safe to call multiple times.

import { setupNetworkMonitor } from 'react-native-debug-logger';

setupNetworkMonitor();

API Reference 📚

DebugTrigger

| Prop | Type | Default | Description | |------|------|---------|-------------| | clicksNeeded | number | 5 | Clicks to reveal the password modal | | password | string | '2024' | Secret password to access the monitor | | isDemo | boolean | false | Current environment state | | enabled | boolean | true | Completely enable/disable the trigger | | checkAccess | function| - | Sync/Async function to verify user permission | | onEnvChange | function| - | Callback when environment is toggled |

Logger

Manual logging if needed:

import { Logger } from 'react-native-debug-logger';

Logger.logRequest({ url: '...', method: 'POST', data: { ... } });
Logger.logResponse({ status: 200, data: { ... } });
Logger.logError({ message: 'Something went wrong' });

Support & Donation ☕️

If this library has been helpful to you, consider supporting its development! Your contributions help maintain the project and introduce new features.


Created with ❤️ by Alijanov