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

webscope-inspector

v2.0.3

Published

WebScope — A zero-dependency debugging & inspection toolkit for React. Track network requests, images, routes, and storage with a beautiful built-in dev UI. Works with Next.js, Vite, Angular, and more.

Readme

WebScope

A zero-dependency debugging & inspection toolkit for React applications.

Track network requests, images, routes, and browser storage — with a polished inspector panel built in. Works with Next.js (App & Pages Router), Vite/React, Remix, Angular, and any JavaScript environment.

Full documentation →


Features

| Feature | Description | |---|---| | Network | Captures fetch, axios, and XMLHttpRequest with status, headers, bodies, timing, and cURL export | | Images | Tracks images loaded on the page — local, network, or broken | | Storage | Inspect, search, edit, and delete localStorage / sessionStorage with a JSON tree viewer | | Routes | Navigation timeline with push / replace / pop / initial actions | | Decryptors | Register custom functions to decode encrypted responses inline | | Settings | Toggle tabs, change accent colour, switch dark/light mode | | Resizable | Drag-to-resize panel on desktop, bottom sheet on mobile | | Zero Dependencies | No runtime dependencies — React is a peer, and only the panel UI needs it |


Install

npm install webscope-inspector

Quick start

// app/layout.tsx  (Next.js App Router)
import { WebScopeProvider } from 'webscope-inspector';

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        <WebScopeProvider>{children}</WebScopeProvider>
      </body>
    </html>
  );
}
# .env.local
NEXT_PUBLIC_ALICE_ENABLED=true

That's it. A floating WebScope button appears in the corner — click it to open the inspector.

No CSS import needed. WebScope injects its own stylesheet at runtime, so it is styled correctly with zero configuration. You can still import 'webscope-inspector/styles' if you'd rather control load order.

See Getting Started for Vite, Pages Router, Remix, Angular, and vanilla JS.


Capturing axios

fetch and XMLHttpRequest are intercepted automatically. Axios needs one line per instance:

import axios from 'axios';
import { attachWebScopeAxiosInterceptor } from 'webscope-inspector';

const api = axios.create({ baseURL: 'https://api.example.com' });
attachWebScopeAxiosInterceptor(api);

More in Interceptors.


Enabling WebScope

WebScope activates when either check passes — or whenever you pass an explicit enabled prop, which overrides both:

  1. process.env.NEXT_PUBLIC_ALICE_ENABLED === 'true'
  2. sessionStorage.getItem('ALICE_ENABLED') === 'true'

The second is useful for debugging a deployed build without a rebuild:

sessionStorage.setItem('ALICE_ENABLED', 'true');
location.reload();

Recommended for most apps:

<WebScopeProvider enabled={process.env.NODE_ENV === 'development'}>

The flag is still named ALICE_ENABLED for backward compatibility with WebScope's previous name. See Configuration.


Documentation

| Guide | | |---|---| | Getting Started | Install and wire up any framework | | Configuration | Enabling, env vars, persisted settings, memory limits | | Interceptors | fetch, axios, XHR, manual logging | | Decryptors | Decode encrypted responses inline | | Theming | Accent, dark/light, style isolation, CSP | | API Reference | Every export, prop, and type | | Troubleshooting | Fixes for the problems people hit |

Contributing? See CONTRIBUTING.md and DEVELOPMENT.md.


Backward compatibility

All earlier Alice exports still work as backward-compatible aliases:

import { AliceProvider } from 'webscope-inspector';        // still works
import { WebScopeProvider } from 'webscope-inspector';     // prefer this

The CSS class prefix changed from alice-* to ws-*. Update any custom selectors targeting the old prefix. Full mapping in the API Reference.


License

MIT