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

@shell-pilot/shell-pilot

v1.0.5

Published

An AI terminal copilot that runs your command and tells you what to do next when it fails.

Readme

Shell-Pilot

Shell-Pilot is an AI terminal copilot.

It runs your command, and only if the command fails, it explains what went wrong and tells you what to do next.

That includes things like:

Telling you when a package name is wrong (instead of telling you to install a non-existent one).

Pointing out deprecated or incorrect install methods.

Knowing when the fix is in your code, not your environment


What Shell-Pilot is

  • An AI assistant for failed terminal commands
  • A wrapper around commands like npm run build, npm run dev, pnpm install, etc.
  • Opinionated, concise, and terminal‑native
  • Advisory only — it never auto‑runs fixes or modifies files

What Shell-Pilot is NOT

  • Not a compiler
  • Not a linter
  • Not a dev server
  • Not a debugger
  • Not a live log watcher
  • Not an IDE replacement

Mental model:

Shell-Pilot is the senior developer who looks at your terminal after something crashes and tells you what to do next.


Installation

Global install (recommended)

npm install -g @shell-pilot/shell-pilot

After installation:

shell-pilot --version

OpenAI API key

Shell-Pilot requires an OpenAI API key.

There is no non‑AI mode.

How authentication works

Shell-Pilot resolves your API key in the following order:

  1. SHELLPILOT_OPENAI_KEY environment variable (always wins)
  2. A locally stored key in ~/.shellpilot/config.json
  3. Interactive prompt (first run only)

If no key is found, Shellpilot will prompt you once and securely store the key locally for reuse.

The key is:

  • stored outside your projects
  • never written to your repository
  • never committed
  • never auto‑shared

You can delete the file at any time to revoke access.

Optional: set via environment variable

macOS / Linux

export SHELLPILOT_OPENAI_KEY=sk-xxxxxxxx

Windows (PowerShell)

setx SHELLPILOT_OPENAI_KEY "sk-xxxxxxxx"

Restart your terminal after setting the variable.


Usage

shell-pilot always wraps another command:

shell-pilot <command> [args...]

Examples:

shell-pilot npm run build
shell-pilot npm run dev
shell-pilot pnpm install
shell-pilot node index.js

What happens:

  1. Shell-Pilot runs the command normally
  2. Output is streamed as‑is
  3. If the command succeeds → Shell-Pilot stays quiet
  4. If the command fails → shell-pilot explains the failure

Example

shell-pilot npm run build
▶ Shell-Pilot running: npm run build

> [email protected] build
> tsc

src/cli.ts(2,20): error TS2307: Cannot find module 'open-ai' or its corresponding type declarations.

✖ Command failed — shell-pilot

🤖 shell-pilot:

Issue:
The module name 'open-ai' is incorrect; it should be 'openai'.

Fix:
Change the import statement in your code from 'open-ai' to 'openai'.

Command:
No command needed

shell-pilot:

  • does not auto‑run commands
  • does not modify files
  • does not guess blindly

You stay in control.


Using shell-pilot with React / Next.js

shell-pilot helps only when a command fails or crashes.

When shell-pilot helps

  • npm run build fails
  • npm run dev fails to start
  • Missing dependencies
  • Invalid configuration
  • Missing environment variables
  • TypeScript compile errors that exit the process

Example:

shell-pilot npm run build

When shell-pilot does NOT help (by design)

shell-pilot does not intervene when a dev server is already running.

This includes:

  • React error overlays
  • Runtime browser errors
  • Hot‑reload warnings
  • Client‑side exceptions

These errors do not crash the process, so shell-pilot stays silent.


Data & Privacy

shell-pilot sends only the failed command output to OpenAI.

It does NOT:

  • scan your repository
  • read files
  • upload source code (unless it appears in the error output)
  • execute commands on your behalf (everything is in your control)

If you are not comfortable sending terminal error output to OpenAI, do not use Shellpilot.


Development

Local development

git clone https://github.com/shell-pilot/shell-pilot
cd shell-pilot
npm install
npm run build
npm install -g .

Run locally:

shell-pilot npm run build

Contributing

Shell-Pilot is early‑stage and intentionally minimal.

Contributions are welcome, especially:

  • Prompt improvements
  • Better issue summarisation
  • UX refinements
  • Documentation fixes
  • Real‑world failure examples

Please note

  • There is no strict roadmap yet
  • There are no tests yet
  • Breaking changes may happen
  • This tool is still rough

If something feels wrong, open an issue — feedback is valuable.


Philosophy

Shell-Pilot is deliberately restrained.

It speaks only when a command fails.

That restraint is the feature.


License

MIT