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

wirescope

v0.1.0

Published

In-app network inspector and API explorer for React — like React Query Devtools, but for every request your app makes.

Readme

wirescope

An in-app network inspector and API explorer for React. A small round button sits in the corner of your app; click it and a devtools panel slides up (think React Query Devtools, but for every request your app makes).

  • Network: every fetch and XMLHttpRequest (so axios too), live, with status, timing, size, headers, payload and a pretty JSON viewer. Filter, pause, clear, replay, or copy as cURL.
  • Explorer: type an endpoint, hit Enter, see the response. The base URL comes from your env. Params, headers, JSON body and bearer auth are all supported. The sidebar lists your predefined endpoints, saved requests, endpoints discovered from live traffic, and history.
  • Stays out of the way: rendered in a Shadow DOM, so its Tailwind styles never touch your app and yours never touch it. Resizable, full-screen mode, Alt+Shift+W to toggle.
  • Zero config, zero runtime deps. No CSS import needed. It's disabled in production builds by default.

Install

npm i -D wirescope

Until it's published on npm, install straight from GitHub:

npm i -D github:aziz-codes/wirescope

Usage

Render it once, near the root of your app:

import { WireScope } from 'wirescope'

export function App() {
  return (
    <>
      <YourApp />
      <WireScope />
    </>
  )
}

Base URL from env

The Explorer sends requests to a base URL. Set it in your .env:

| Framework | Variable | | ------------- | -------------------------- | | Vite | VITE_API_BASE_URL | | Next.js | NEXT_PUBLIC_API_BASE_URL | | Create React App | REACT_APP_API_BASE_URL |

# .env
VITE_API_BASE_URL=https://api.example.com

Bundlers don't always expose env vars to code inside node_modules, so the most reliable option is to pass the value explicitly:

<WireScope baseUrl={import.meta.env.VITE_API_BASE_URL} />

With no base URL set, the Explorer uses the current origin. You can also override it from the panel at any time; the override is remembered in localStorage and can be reset.

Predefined endpoints

<WireScope
  endpoints={[
    { method: 'GET', path: '/users', name: 'List users' },
    { method: 'POST', path: '/auth/login', name: 'Login', body: { email: '', password: '' } },
    { method: 'DELETE', path: '/users/1' },
  ]}
/>

Next.js (App Router)

The bundle ships with 'use client', so you can render it straight from app/layout.tsx:

import { WireScope } from 'wirescope'

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        {children}
        <WireScope baseUrl={process.env.NEXT_PUBLIC_API_BASE_URL} />
      </body>
    </html>
  )
}

Props

| Prop | Type | Default | | ---------------- | ---------------------------------------------------------- | ---------------------------- | | baseUrl | string | env, then current origin | | endpoints | WireScopeEndpoint[] | [] | | defaultHeaders | Record<string, string> | {} | | position | 'bottom-right' \| 'bottom-left' \| 'top-right' \| 'top-left' | 'bottom-right' | | initialOpen | boolean | false | | defaultTab | 'network' \| 'explorer' | 'network' | | ignore | Array<string \| RegExp \| (url) => boolean> | dev-server noise | | maxRequests | number | 300 | | hotkey | string \| false (used as Alt+Shift+<key>) | 'W' | | enabled | boolean | NODE_ENV !== 'production' |

Capturing requests before React mounts

<WireScope /> starts capturing when it first renders, which is before any useEffect in your app runs. To also catch requests fired at module load, install it first thing in your entry file:

import { installWireScope } from 'wirescope'
installWireScope()

Notes

  • CORS: browsers only expose CORS-safelisted response headers to JavaScript on cross-origin requests unless the server sends Access-Control-Expose-Headers. The Explorer is subject to the same CORS rules as your app.
  • Production: wirescope renders nothing when NODE_ENV === 'production' unless you pass enabled. If you do enable it in production, it is visible to every user, so gate it yourself (e.g. behind an admin check).
  • Response bodies over 1 MB are truncated in the inspector only; your app always gets the full response.

Development

npm install
npm run dev        # playground at http://localhost:5199 (hot-reloads src/)
npm test
npm run build      # dist/ (ESM + CJS + types, CSS inlined)

License

MIT