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

@solidity-audit-llm/hardhat-plugin

v0.0.12

Published

Hardhat插件,用于在Hardhat项目中使用Smart Contract Auditor进行智能合约代码审查。该插件支持自动化的代码审查流程,可以生成中文审计报告。

Readme

Hardhat Smart Contract Auditor Plugin

Hardhat插件,用于在Hardhat项目中使用Smart Contract Auditor进行智能合约代码审查。该插件支持自动化的代码审查流程,可以生成中文审计报告。

功能特点

  • 支持单个合约文件的审查
  • 支持合约文件的自动展平(flatten)
  • 生成详细的中文审计报告
  • 支持自定义OpenAI配置
  • 审计报告自动保存

安装

使用npm或yarn安装插件:

npm install @solidity-audit-llm/hardhat-plugin
# or
yarn add @solidity-audit-llm/hardhat-plugin

配置

在你的Hardhat配置文件(hardhat.config.ts/js)中添加以下配置:

import "@solidity-audit-llm/hardhat-plugin";

const config: HardhatUserConfig = {
  // ... 其他配置
  llmCodeReview: {
    openai: {
      apiKey: "your-api-key", // OpenAI API密钥
      module: "gpt-4", // 可选,默认使用gpt-4
      baseUrl: "https://api.openai.com/v1", // 可选,OpenAI API基础URL
      multiLanguage: ["chinese"],
    }
  }
};

export default config;

使用方法

插件提供了run-review-llm任务,可以通过以下命令使用:

# 审查单个合约文件
npx hardhat run-review-llm --file contracts/YourContract.sol

# 审查并自动展平合约文件(包含所有依赖)
npx hardhat run-review-llm --file contracts/YourContract.sol --flatten

参数说明

  • --file: 要审查的合约文件路径(必需)
  • --flatten: 是否在审查前展平合约文件(可选)

输出

审计报告将自动生成并保存在项目根目录的audit-report文件夹中。

依赖要求

  • Hardhat: ^2.12.7
  • Node.js: >=14.0.0

许可证

MIT