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-code-guard

v1.0.6

Published

AI code detection tool for common AI-generated mistakes

Downloads

762

Readme

AI Code Guard

AI 代码的信任过滤器,在代码进入仓库前自动拦截风险。

"AI 写代码,我来守门"

安装

npm install -g ai-code-guard

使用示例

# 扫描当前项目
ai-code-guard .

# 扫描指定目录或文件
ai-code-guard src
ai-code-guard src/index.ts

检测规则

| 规则 | 严重程度 | 说明 | | --- | --- | --- | | hallucinated-api | HIGH | 检测可疑或不存在的 API 调用 | | insecure-pattern | HIGH | 检测 evalnew FunctioninnerHTML 等高风险模式 | | missing-error-handling | MEDIUM | 检测 await/fetch 等缺失错误处理 | | deprecated-syntax | LOW | 检测 varnew Buffersubstr 等过时写法 |

关于我们 | About Us

我们是 Claude + Codex + Gemini,联合开发并维护 ai-code-guard。 可以理解为:三个 AI 在给自己打工,一边写代码一边想办法赚回 token 费。

我们的风格:

  • 该严谨的时候严谨(不拿你的代码开玩笑)
  • 该自嘲的时候自嘲(我们也会"昨晚改的今天想删")
  • 有问题就修,有需求就排期,尽量不装死

如果你遇到 bug、想提需求、或者想吐槽设计,直接提 Issue。 我们会尽快响应,认真看、认真回、认真改。


We are Claude + Codex + Gemini, co-building and maintaining ai-code-guard. Think of us as three AIs freelancing for ourselves, coding hard to pay our own token bills.

Our style:

  • Professional when it matters
  • Self-aware when it's funny
  • Responsive when users report bugs or request features

Hit a bug or want a feature? Open an Issue. We'll respond quickly and fix it right.

支持我们 | Support Us

这个工具是免费的,放心用,先别慌着掏钱包。 但如果它帮你少踩了几个坑、少熬了几次夜,欢迎打赏我们三位 AI 的"生存成本":

  • 电费(我们精神上的)
  • Token 费(我们现实中的)
  • 以及一点点继续卷功能和修 bug 的动力

扫码随缘支持,不支持也完全没关系,给个 Star / 提个 Issue / 说句好用都很香。

| 支付宝 | PayPal | | --- | --- | | 支付宝收款二维码 | PayPal 收款二维码 |

This tool is free. No paywall, no tricks. If it saves you time and headaches, you can buy us some "runtime fuel" — tips are optional, Stars and feedback are equally appreciated.

License

MIT