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-web-inspector-ui

v0.1.6

Published

A React component library for debugging in environments where browser DevTools are unavailable (mobile browsers, WebViews, embedded browsers, etc.). View console logs and network requests directly in your app.

Readme

react-web-inspector-ui

A React component library for debugging in environments where browser DevTools are unavailable (mobile browsers, WebViews, embedded browsers, etc.). View console logs and network requests directly in your app.

Features

  • Console Panel: View console.log, console.warn, console.error and other console outputs
  • Network Panel: Monitor fetch/XHR requests and responses
  • Draggable Toggle Button: Position the inspector button anywhere on screen
  • Resizable Panel: Adjust panel height by dragging
  • Mobile Friendly: Responsive design for all screen sizes

Installation

npm install react-web-inspector-ui
yarn add react-web-inspector-ui
pnpm add react-web-inspector-ui

Usage

Basic Usage (Recommended)

Just wrap your app with <WebInspector> - that's all you need!

import { WebInspector } from 'react-web-inspector-ui';

function App() {
  return (
    <WebInspector>
      <YourApp />
    </WebInspector>
  );
}

Next.js App Router

Works directly in layout.tsx - no wrapper needed:

// app/layout.tsx
import { WebInspector } from 'react-web-inspector-ui';

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html>
      <body>
        <WebInspector>
          {children}
        </WebInspector>
      </body>
    </html>
  );
}

Advanced Usage

For more control, you can use individual components:

import {
  WebInspectorProvider,
  WebInspectorButton,
  WebInspectorPanel,
} from 'react-web-inspector-ui';

function App() {
  return (
    <WebInspectorProvider>
      <YourApp />
      <WebInspectorButton />
      <WebInspectorPanel />
    </WebInspectorProvider>
  );
}

Custom Control with Hooks

import { useWebInspector } from 'react-web-inspector-ui';

function CustomControls() {
  const { isOpen, open, close, toggle } = useWebInspector();

  return (
    <div>
      <button onClick={toggle}>{isOpen ? 'Close Inspector' : 'Open Inspector'}</button>
    </div>
  );
}

API

<WebInspector> (Recommended)

All-in-one component that includes Provider, Button, and Panel. The simplest way to add the inspector to your app.

| Prop | Type | Default | Description | | ------------- | ------------------------- | ------- | ------------------------------------ | | children | ReactNode | - | Child elements | | defaultOpen | boolean | false | Whether the panel is open by default | | showButton | boolean | true | Show the toggle button | | showPanel | boolean | true | Show the panel | | buttonProps | WebInspectorButtonProps | - | Props to pass to the button | | panelProps | WebInspectorPanelProps | - | Props to pass to the panel |

<WebInspectorProvider>

Provider component that manages the inspector state. Use this when you need more control over component placement.

| Prop | Type | Default | Description | | ------------- | ----------- | ------- | ------------------------------------ | | children | ReactNode | - | Child elements | | defaultOpen | boolean | false | Whether the panel is open by default |

<WebInspectorButton>

A draggable button that toggles the inspector panel.

| Prop | Type | Default | Description | | ----------- | -------- | ------- | ----------------- | | className | string | - | Custom class name |

<WebInspectorPanel>

Panel displaying console logs and network information.

| Prop | Type | Default | Description | | ----------- | -------- | ------- | ----------------- | | className | string | - | Custom class name |

useWebInspector()

Hook that provides inspector state and control functions.

const {
  isOpen, // boolean - Whether the panel is open
  open, // () => void - Open the panel
  close, // () => void - Close the panel
  toggle, // () => void - Toggle the panel
} = useWebInspector();

Requirements

  • React 18.x or 19.x
  • React DOM 18.x or 19.x

Development

# Start development server
npm run dev

# Build
npm run build

# Run tests
npm run test

# Lint
npm run lint

License

MIT