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

@mrclrchtr/supi-debug

v1.14.1

Published

SuPi Debug extension — shared debug event inspection for SuPi extensions

Readme

@mrclrchtr/supi-debug

Adds shared debug-event capture and inspection for SuPi extensions in the pi coding agent.

Install

pi install npm:@mrclrchtr/supi-debug

For local development:

pi install ./packages/supi-debug

Debug event report

What you get

After install, this package wires the shared debug registry into three user-facing surfaces:

  • /supi-debug — show recent debug events in a readable TUI report
  • supi_debug — let the model query recent debug events during troubleshooting
  • /supi-settings integration — configure whether events are captured and how much data is exposed

It also registers a Debug provider section for /supi-context.

Event behavior

  • events are session-local
  • the event buffer is cleared on session_start
  • if debug capture is disabled, no events are retained
  • agent-facing access is blocked, sanitized, or raw depending on settings

Rendering

/supi-debug uses a custom TUI message renderer that shows two levels of detail:

  • Collapsed (default) — a one-line summary:

    3 events — rtk/rewrite +2 more
  • Expanded — full details with timestamp, level, source/category, message, cwd, and data for each event. Click/expand the collapsed message in the TUI to reveal the full output.

Rendered fields per event:

  • timestamp
  • level
  • source/category
  • message
  • optional cwd
  • optional data
  • optional rawData

Why collapsed by default

Event payloads can be large (full command strings, structured data). Collapsing keeps the conversation focused; expand only when you need the details.

Seeing full details without expanding

The agent-facing supi_debug tool always returns the expanded plain-text representation, which is useful for automated troubleshooting flows.

Filters

Both /supi-debug and supi_debug support the same basic filters:

  • source
  • level
  • category
  • limit

The tool also accepts:

  • includeRaw — request raw event data when settings allow it

Settings

This package registers a Debug section in /supi-settings.

Available settings:

  • enabled — turn session-local event capture on or off
  • agentAccessoff, sanitized, or raw
  • maxEvents — maximum retained events in memory
  • notifyLevel — minimum severity that may notify the user: off, warning, or error

Defaults come from the shared debug registry:

{
  "debug": {
    "enabled": false,
    "agentAccess": "sanitized",
    "maxEvents": 100,
    "notifyLevel": "off"
  }
}

Extra status logging

If SUPI_LOG_STATUS is enabled in the environment, the package emits a SuPi load-status marker to stderr on session_start and appends the same payload as a session entry.

Source

  • src/debug.ts — settings, command, tool, and registry wiring
  • src/renderer.ts — custom report renderer
  • src/format.ts — debug payload formatting
  • src/status-log.ts — optional load-status logging