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

@scene-grid/inspector

v0.2.2

Published

Real-time telemetry and visual inspector interface for debugging and monitoring the SceneGrid audio graph.

Readme

@scene-grid/inspector

Real-time telemetry and visual inspector interface for SceneGrid

npm version License: MIT

@scene-grid/inspector is a comprehensive, standalone React application for deep telemetry analysis of the @scene-grid/engine. It transforms opaque audio behavior into a highly observable, transparent graph, allowing developers to debug memory leaks, phase coherence issues, and routing visually.

(Looking for the in-game floating Tweakpane UI? See @scene-grid/debugger)

Installation

npm install -D @scene-grid/inspector

Note: This package requires react and react-dom as peer dependencies.

Quick Start

The Inspector is distributed as a side-effecting React application that automatically mounts itself to a specific DOM node.

Because it connects to your game engine via an HTML5 SharedWorker, it runs entirely in a separate browser tab while maintaining real-time communication with zero networking overhead—as long as both tabs share the same origin (e.g., localhost).

Create an inspector.html file in your project's public/ directory (or configure your dev server to serve it):

<!DOCTYPE html>
<html lang="en" class="dark">
<head>
    <meta charset="UTF-8" />
    <title>SceneGrid Audio Inspector</title>
    <style>
        body { margin: 0; padding: 0; background: #1e1e1e; color: white; }
    </style>
</head>
<body>
    <!-- The React app will automatically mount here -->
    <div id="inspector-root"></div>
    
    <!-- Import the inspector bundle -->
    <script type="module">
        import '@scene-grid/inspector';
    </script>
</body>
</html>

Open http://localhost:<YOUR_PORT>/inspector.html in a new tab alongside your game.

How It Works

  • Telemetry Observer: Connects to the engine's TelemetryWorker via native MessagePorts and receives standardized JSON telemetry frames (VOICE_STARTED, RTPC_UPDATED, SNAPSHOT_ACTIVATED).
  • Throttling & Buffering: Audio state can change thousands of times per second (e.g., during rapid RTPC parameter sweeps). The Inspector applies strict debouncing and throttling via an internal telemetry store (useTelemetryBus) to prevent React from re-rendering out of control.
  • Visualization: Updates the AudioGraph (mapping nodes and edges), PolyphonyCounter (tracking active voices), and the TimelineScrubber (visualizing Snapshot transitions).

Core Features

  • Visual Audio Graph: Dynamically renders the active signal routing, sidechain inputs, and processing chain.
  • Polyphony Monitoring: Tracks active physical voices against logical limits and visualizes culling behavior live.
  • Timeline Scrubber: Inspect RTPC curves and Mixer Snapshot crossfades in real-time to verify mathematical transitions.

License

MIT © Igor Zabrodin