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

ai-sec-scanner-kit

v0.2.11

Published

Multi-runtime security scanning kit installer for OpenCode, Claude Code, Codex, Cursor, and Trae

Downloads

326

Readme

AI Security Scanner Kit

多平台可安装的源码安全扫描能力包(C/C++ + Python)。

支持运行时:

  • OpenCode
  • Claude Code
  • Codex
  • Cursor
  • Trae

核心能力保持一致:架构侦察、数据流扫描、安全审计、验证降误报、报告生成。

一条命令安装

npx ai-sec-scanner-kit@latest --all --local --target /path/to/project

无参数交互向导(TTY 环境):

npx ai-sec-scanner-kit@latest

中国网络环境推荐:

npx ai-sec-scanner-kit@latest --all --local --target /path/to/project --cn

安装器能力

  • 运行时选择:--opencode --claude --codex --cursor --trae --all
  • 作用域选择:--local(项目)/ --global(用户)
  • 卸载:--uninstall
  • 校验:--verify
  • 试运行:--dry-run
  • 中国网络优化:--cn
  • 自定义 registry:--registry <url>
  • 无参数交互向导:自动选择 runtime/scope/target/cn/verify

常用命令

# 仅安装 OpenCode(项目级)
npx ai-sec-scanner-kit@latest --opencode --local --target /path/to/project --verify

# 安装所有运行时(全局)
npx ai-sec-scanner-kit@latest --all --global --verify

# 查看将执行的动作但不落盘
npx ai-sec-scanner-kit@latest --all --local --dry-run

# 卸载
npx ai-sec-scanner-kit@latest --all --local --target /path/to/project --uninstall --verify

OpenCode 快速使用

npx ai-sec-scanner-kit@latest --opencode --local --target /path/to/project --verify
cd /path/to/project
opencode

在 OpenCode 会话中输入:

@orchestrator 请扫描这个项目的安全漏洞,项目根目录是 /path/to/project

输出目录:

  • scan-results/threat_analysis_report.md
  • scan-results/report_confirmed.md
  • scan-results/report_unconfirmed.md
  • scan-results/.context/scan.db

仓库结构

.
├── .opencode/                       # OpenCode 原生能力包(agents/skills/tools)
├── bin/install.js                   # 多平台安装器入口
├── lib/                             # 安装器核心逻辑
├── templates/commands/              # 非 OpenCode 运行时命令模板
├── docs/
│   ├── discovery-contract.md
│   └── china-deployment.md
├── test/                            # 自动化测试
├── scripts/install-opencode-security-kit.sh
├── README_multi-agent1.md
└── scan-results/
    ├── report.md
    └── threat_analysis_report.md

兼容层设计

  • OpenCode:直接写入 .opencode 原生目录,开箱即用。
  • Claude/Codex/Cursor/Trae:安装 agents/skills/commands(or rules) 适配层和 ai-sec-scanner-kit bundle。
  • 每个 runtime root 写入 .ai-sec-scanner-kit.manifest.json,用于可回滚卸载。

中国区使用建议

详见:china-deployment.md

重点:

  • 使用 --cn 启用镜像优先策略
  • 受限网络可用本地源码安装:node bin/install.js ...
  • 建议双仓发布(GitHub + Gitee)

发布流水线

旧脚本兼容

保留旧入口:

bash scripts/install-opencode-security-kit.sh /path/to/project

该脚本现已委托给新安装器并自动 --verify

开发与测试

npm test

授权

Apache-2.0