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

@spoosh/devtool

v0.1.3

Published

Visual debugging plugin for Spoosh - floating devtool panel with plugin execution visualization

Readme

@spoosh/devtool

Visual debugging panel for Spoosh. See every request, plugin step, and cached state in your browser.

Installation

npm install @spoosh/devtool

Usage

import { Spoosh } from "@spoosh/core";
import { devtool } from "@spoosh/devtool";

const client = new Spoosh("/api").use([
  devtool(),
  // other plugins...
]);

A floating icon appears in the corner. Click it to open the panel.

Features

| Feature | Description | | ---------------------- | ------------------------------------------------------------------ | | Request Timeline | See every request with timing, status, and duration | | Plugin Steps | Watch middleware execution order with before/after diffs | | State Inspector | Browse cache entries, subscriber counts, refetch or delete | | Event Log | View invalidations, refetch triggers, custom plugin events | | Status Badges | Pending, success, error, stale, fresh indicators | | Filter & Search | Filter by operation type, search by path or query key | | Keyboard Shortcuts | Navigate with keyboard (Esc, arrows, Ctrl+K, etc.) | | Resizable Panel | Drag to resize sidebar and split panels | | Theme Switching | Dark and light mode | | Position Config | Button position (corners) and sidebar position (right/left/bottom) | | Sensitive Headers | Toggle to reveal/hide auth headers with eye icon | | Export/Import | Save traces as JSON, import for analysis | | Settings | Max history size, auto-follow, show/hide passed plugins |

Options

devtool({
  enabled: true, // Turn off in production
  showFloatingIcon: true, // Hide icon, use toggle() instead
  containerId: "my-devtool-container", // Render panel in a specific container
  sensitiveHeaders: [
    // Headers to redact (defaults below)
    "authorization",
    "cookie",
    "x-api-key",
  ],
});

Container Mode

By default, the devtool renders as a floating overlay. Use containerId to render the panel inside a specific DOM element instead, enabling side-by-side layouts.

<!-- index.html -->
<body>
  <div id="root"></div>
  <div id="devtool-container"></div>
</body>
devtool({
  enabled: import.meta.env.DEV,
  containerId: "devtool-container",
});
/* styles.css */
body {
  height: 100vh;
  display: flex;
  overflow: hidden;
}

#root {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
}

#devtool-container {
  flex-shrink: 0;
  height: 100vh;
  overflow: hidden;
}

In container mode:

  • The floating icon still appears and toggles the panel
  • The panel renders inside the specified container
  • Sidebar position setting is hidden (always renders in the container)
  • Panel is resizable by dragging the left edge

Programmatic API

const { devtools } = create(client);

devtools.toggle(); // Open/close panel
devtools.clearTraces(); // Clear history
devtools.exportTraces(); // Get traces as JSON
devtools.toggleFloatingIcon(); // Show/hide floating icon

Keyboard Shortcuts

| Shortcut | Action | | --------------- | -------------- | | Esc | Close panel | | Ctrl/Cmd + K | Focus search | | / | Navigate items | | 1 / 2 / 3 | Switch views | | Ctrl/Cmd + E | Export traces | | Ctrl/Cmd + L | Clear traces |

Production

The plugin does nothing when:

  • enabled: false
  • Running on server (SSR)
devtool({ enabled: process.env.NODE_ENV === "development" });

Documentation

See full documentation for detailed usage.