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

runrat

v0.3.1

Published

πŸ€ Dev-tool scavenger & command translator β€” finds tools, validates commands, fixes LLM mistakes before they hit the shell.

Readme

πŸ€ runrat

skills.sh npm

The dev-tool scavenger rat. Sniffs, hoards, remembers. Fixes commands before they break.

The problem

LLM coding agents (Claude, Copilot, Cursor) are OS-blind. They generate commands that work on the machine they were trained on β€” usually Linux with bash. On your actual machine:

Agent:  apt-get install postgresql && pip install django && export SECRET=foo
User:   ❌ 'apt-get' is not recognized
        ❌ 'export' is not recognized
        ❌ pip uses wrong Python

The agent doesn't know you're on Windows with PowerShell and scoop. It doesn't know flutter test needs --no-pub not --coverage. It doesn't know sudo doesn't exist here.

Every failed command costs you:

  • Time (agent retries with another wrong command)
  • Trust (you stop believing the agent can do anything)
  • Sanity

The solution

Runrat sits between the agent and the shell. Before any command runs, runrat checks and translates it:

runrat check "apt-get install postgresql && flutter test --coverage"
⚑ apt-get β†’ scoop install (Windows has no apt)
⚑ && β†’ ; if ($?) { } (PowerShell has no &&)
⚠ --coverage β†’ --no-pub (valid Flutter flag)

corrected: scoop install postgresql; if ($?) { flutter test --no-pub }

How it works

Three knowledge files that grow over time:

| File | What it knows | Size | |------|--------------|------| | translation-rules.json | LLM mistake patterns β†’ correct equivalents | 20 rules | | tool-map.json | Where every tool lives (auto-discovered) | per machine | | command-recipes.json | Correct CLI syntax and flags per OS | 28 recipes |

Install

# Full bootstrap
npx runrat

# Or via skills.sh
npx skills add k0r81/runrat

Restart opencode. The dev-runner subagent is now active.

CLI

runrat check "apt-get install foo"   # Translate & validate any command
runrat setup                         # Bootstrap on this machine
runrat recipes                       # List all known command recipes
runrat rules                         # List active translation rules

Examples of what it fixes

| LLM writes | OS | Corrected to | |-----------|-----|-------------| | apt-get install X | Windows | scoop install X | | apt-get install X | macOS | brew install X | | brew install X | Windows | scoop install X | | scoop install X | macOS/Linux | brew install X | | cmd1 && cmd2 | Windows | cmd1; if ($?) { cmd2 } | | export VAR=val | Windows | $env:VAR = "val" | | pip install X | All | python -m pip install X | | sudo npm -g X | macOS/Linux | npm install -g X | | ls -la | Windows | Get-ChildItem | | rm -rf dir | Windows | Remove-Item -Recurse -Force dir | | python3 | Windows | python | | which X | Windows | where.exe X | | touch file | Windows | New-Item -ItemType File file | | cat file | Windows | Get-Content file | | grep foo | Windows | Select-String foo | | flutter test | All | flutter test --no-pub | | dart format . | All | dart format --set-exit-if-changed lib/ test/ |

Platforms

Windows (PowerShell + scoop), macOS (brew), Linux (apt/brew).

License

MIT