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-insights

v2.4.1

Published

SuPi Insights extension — generate usage reports analyzing your PI sessions

Readme

@mrclrchtr/supi-insights

Adds a /supi-insights command to the pi coding agent that analyzes your historical pi sessions and writes a shareable HTML report.

Install

pi install npm:@mrclrchtr/supi-insights

This is a beta package. Install individually.

For local development:

pi install ./packages/supi-insights

Insights CLI

Insights HTML report

Insights HTML report detail

What you get

After install, pi gets one command:

  • /supi-insights — scan session history, generate metrics and narrative insights, and save an HTML report

The command pipeline is:

  1. list historical sessions with SessionManager.listAll()
  2. parse session files and extract metadata such as message counts, tools, languages, git activity, lines changed, response times, and tool errors
  3. run LLM-based facet extraction on a bounded set of sessions
  4. aggregate the results across sessions
  5. generate an HTML report and post a short in-chat summary with the saved file path

What the report covers

The generated report can include:

  • at-a-glance summary
  • project areas
  • interaction style
  • what works well
  • friction analysis
  • suggestions
  • future opportunities
  • charts and aggregate stats for tools, languages, outcomes, satisfaction, response times, time of day, and multi-session overlap

Output and caching

Reports are written under pi's agent directory (typically ~/.pi/agent/):

  • reports: ~/.pi/agent/supi/insights/report-*.html
  • metadata cache: ~/.pi/agent/supi/insights/meta/*.json
  • facet cache: ~/.pi/agent/supi/insights/facets/*.json

The cache key includes:

  • session id
  • session file path hash
  • modified timestamp hash

That keeps branched or resumed session files from colliding.

Important limits

Built-in defaults:

  • maxSessions: 200
  • maxFacets: 50

Filtering in the current implementation:

  • sessions with fewer than 2 user messages are skipped from the final analysis set
  • sessions shorter than 1 minute are skipped from the final analysis set
  • sessions whose only facet category is warmup_minimal are dropped after facet extraction

Settings

This package registers an Insights section in /supi-settings.

Available settings:

  • enabled — turn the command on or off
  • maxSessions — maximum sessions to fully analyze
  • maxFacets — maximum LLM facet extractions

Defaults:

{
  "insights": {
    "enabled": true,
    "maxSessions": 200,
    "maxFacets": 50
  }
}

Source

  • src/insights.ts — command, settings, and end-to-end report generation
  • src/scanner.ts — session discovery
  • src/parser.ts — session parsing and metadata extraction
  • src/aggregator.ts — aggregated statistics and multi-session overlap detection
  • src/generator.ts — narrative insight generation
  • src/html.ts — HTML report output
  • src/cache.ts — metadata and facet caching