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

aisa

v1.0.2

Published

![TypeScript](https://img.shields.io/badge/TypeScript-4.5-blue) ![License](https://img.shields.io/badge/License-MIT-green)

Readme

AISA - 前端智能依赖安全审计系统

TypeScript License

项目概述

AISA (Advanced Intelligent Security Auditor) 是一个基于 TypeScript 的前端智能依赖安全审计工具,专注于:

  • 自动检测前端项目依赖中的安全漏洞
  • 生成详细的 Markdown 格式审计报告
  • 智能缓存审计结果提升性能
  • 提供 AI 驱动的修复建议
  • 支持MCP协议与AI Agent集成

核心特性

  1. 智能缓存系统

    • 采用 LRU 算法管理缓存(最多保留 30 个缓存项)
    • 自动淘汰最久未使用的审计结果
    • 缓存路径:./cache/cache.json
  2. 多模块审计

    • 支持本地项目(parseLocalProject.ts)
    • 支持远程项目(parseRemoteProject.ts)
    • 生成 Markdown 格式报告(render/markdown.ts)
  3. AI 修复建议

    • 基于安全漏洞自动生成修复建议
  4. MCP 集成

    • 支持MCP协议,可集成到其他客户端,如AI Agent

安装指南

  1. 克隆项目:
git clone https://github.com/coder258/AISA.git
cd AISA
  1. 安装依赖:
npm install

使用说明

目前版本若要使用AI修复建议,请自行前往阿里云百炼平台创建API key,并参照.env.example进行设置,如不使用,则需在主函数屏蔽此流程,并在渲染函数传入空字符串即可


基本审计

npm run dev

# 此方式暂不支持AI修复建议
npx aisa projectRoot path

入口文件参数说明

| 参数 | 说明 | 示例 | | ------------- | ---------------------------------------------------------- | ------------------------------------------ | | projectRoot | 需要审计的项目路径,可以是本地路径,也可以是远程仓库的 URL | https://github.com/axios/axios/tree/v0.x | | path | 保存审计结果的路径 | Your path |

模块说明

| 模块 | 职责 | | ----------------------------- | --------------------------------- | | src/createWorkDir/ | 创建临时工作目录 | | src/cache/ | 审计结果缓存管理 | | src/parseProject/ | 项目依赖解析 | | src/generateLock/ | 生成项目的 package-lock.json 文件 | | src/render/ | 审计报告模板渲染 | | src/utils/ | 工具函数库 | | src/audit/ | 依赖安全审计核心逻辑 | | src/getAIRepairSuggestions/ | AI 驱动的修复建议生成 |

项目背景

本项目旨在解决前端项目开源依赖安全审计的痛点,提供高效、智能的依赖安全管理解决方案。

技术栈

  • TypeScript
  • Node.js
  • MCP
  • EJS
  • 其他: 详见package.json