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

opencode-supercharger

v1.6.0

Published

Shell-level guardrails for OpenCode. Block dangerous commands, scan for secrets, detect loops.

Readme

OpenCode Supercharger

Security guardrails for OpenCode. Install once, forget forever.


Why

OpenCode can delete your database, force-push to main, or run a shell script from the internet. Nothing in the default config stops it.

This plugin does.


Install

npm install -g opencode-supercharger
npx opencode-supercharger init

Or clone and run the install script:

git clone https://github.com/smrafiz/opencode-supercharger.git
cd opencode-supercharger
bash install.sh

What You Get

| Feature | What It Does | |---------|-------------| | Command blocking | Stops rm -rf /, DROP TABLE, curl | bash, fork bombs before they execute | | Git guardrails | Blocks force-push, reset --hard, branch deletion, stash drop | | Secret detection | Catches AWS keys, GitHub tokens, API keys in commands and output | | Code scanning | Warns on eval(), innerHTML, SQL injection, hardcoded secrets, weak crypto | | Loop detection | Warns when the same tool repeats 3x in 30 seconds | | Audit trail | Logs every action to JSONL, auto-redacts secrets, 30-day rotation | | Config scan | Detects prompt injection in CLAUDE.md, AGENTS.md files | | Self-teaching | Learns from blocked commands and user corrections | | Context advisor | Warns at 50%, 70%, 80%, 90% context usage | | Verify on stop | Warns if files were modified but no tests ran | | Agent routing | Suggests specialized agents based on task | | Scope alerts | Warns when >5 files touched | | Status line | Displays files modified, session cost in TUI footer | | Checkpoint | Auto-saves on git commit, restores on new session | | /interview | Deep interview command for requirement gathering | | /devlog | Development log command | | Per-project config | Override features via .supercharger.json |


New Slash Commands

| Command | Use For | |---------|---------| | /interview | Deep interview to clarify requirements before planning | | /devlog | Create structured development log entries |


Per-Project Configuration

Create .supercharger.json in your project:

{
  "disableHooks": ["loop-detector", "scope-alert"],
  "disableAgents": ["debugger"],
  "customRules": ["no-debug-code"]
}

Status Line (Optional)

Add to your opencode.json to show supercharger stats in the TUI footer:

{
  "tui": {
    "status_line": {
      "templates": {
        "session_footer": "files: {supercharger_files} | cost: ${supercharger_cost}"
      }
    }
  }
}

What Gets Blocked

  • Destructive: rm -rf /, mkfs, dd if=
  • Pipe-to-shell: curl ... | bash, wget ... | sh
  • SQL: DROP TABLE, DROP DATABASE
  • Git: Force-push, reset --hard, clean -f, branch deletion
  • Credentials: AWS keys, ghp_ tokens, sk- keys, PASSWORD=
  • Clipboard: pbcopy, pbpaste, xclip
  • Sensitive paths: Keychain, 1Password, .password-store
  • Shell history: .bash_history, .zsh_history
  • Package mismatch: Running npm in a pnpm/yarn/bun project

Code Security Scanner

Scans code before it lands on disk:

| Language | Catches | |----------|--------| | JavaScript/TypeScript | eval(), new Function(), .innerHTML, dangerouslySetInnerHTML | | Python | pickle.load(), exec(), os.system(), subprocess(shell=True) | | SQL | f-string SQL, string-concatenated queries | | All | Hardcoded passwords, API keys, crypto.createHash('md5') |


Install Modes

| Mode | Hooks | Features | |------|-------|----------| | Safe | 8 | Command blocking, code scanner, audit, secret scan | | Full | All | Everything + self-teaching, context advisor, verify-on-stop |


Quick Config

{
  "plugins": ["@opencode-supercharger/plugin"],
  "instructions": [
    "configs/rules/guardrails.md",
    "configs/rules/economy-lean.md"
  ]
}

Agents (Included)

| Agent | Use For | |-------|---------| | @engineer | Writing, fixing code | | @debugger | Root-cause analysis | | @reviewer | Code review | | @writer | Docs, READMEs | | @architect | Design plans | | @planner | Task breakdown | | @researcher | Research, comparisons | | @analyst | Data, SQL | | @generalist | General questions |


Commands (Included)

| Command | Use For | |---------|---------| | /think | 5-step structured reasoning | | /challenge | Adversarial stress-test | | /refactor | Code quality sweep | | /audit | Consistency check | | /test | Generate unit tests | | /doc | Generate documentation |


MCP Support

Add to your config for enhanced capabilities:

{
  "mcp": {
    "context7": {
      "type": "remote",
      "url": "https://mcp.context7.io/mcp"
    }
  }
}

Uninstall

bash uninstall.sh

FAQ

Will it break my workflow? No. It blocks commands that are never part of legitimate AI coding tasks.

Can the AI disable it? No. Writing to opencode.json is blocked. The plugin cannot modify itself.

Where are the logs? ~/.config/opencode/supercharger/audit/YYYY-MM-DD.jsonl


Credits

A port of Claude Supercharger for OpenCode.


License

MIT