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

v1.12.0

Published

SuPi RTK extension — transparent bash command rewriting via RTK for token savings

Readme

@mrclrchtr/supi-rtk

Adds RTK-backed bash rewriting to the pi coding agent.

Install

pi install npm:@mrclrchtr/supi-rtk

This is a beta package. Install individually.

For local development:

pi install ./packages/supi-rtk

What you get

After install, the package intercepts bash execution in two places:

  • model bash tool calls
  • user_bash execution paths

For each command, it tries to run rtk rewrite <command> first. If RTK returns a usable rewrite, the rewritten command is executed. If not, the original command runs unchanged.

Fallback and guard behavior

The package falls back to normal bash execution when:

  • RTK is disabled in settings
  • the rtk binary is not available on PATH
  • the rewrite times out
  • RTK exits without usable output
  • a guard rule decides the command should bypass rewriting

Current bypass rules include:

  • commands prefixed with RTK_DISABLED=1 or env RTK_DISABLED=1
  • commands that invoke biome
  • rg commands
  • package-manager lint commands in projects that use Biome

These guards exist because the current RTK rewrite path can be lossy for those command shapes.

Settings

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

Available settings:

  • enabled — turn RTK rewriting on or off
  • rewriteTimeout — timeout in milliseconds for rtk rewrite

Defaults:

{
  "rtk": {
    "enabled": true,
    "rewriteTimeout": 5000
  }
}

Extra integration

  • registers an RTK provider section for /supi-context
  • tracks successful rewrites, fallbacks, and estimated token savings for the current session
  • records debug events through supi-core's debug registry, so supi-debug can inspect rewrite and fallback activity when installed
  • warns once per session when RTK is enabled but the rtk binary is missing

Source

  • src/rtk.ts — extension wiring, bash interception, settings, and context-provider registration
  • src/rewrite.tsrtk rewrite execution and result classification
  • src/guards.ts — bypass rules for known lossy rewrites
  • src/tracking.ts — per-session rewrite statistics