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-wiki

v1.0.2

Published

AI Wiki CLI:分析项目并生成标准化Markdown Wiki,支持预览与校验

Readme

AI Wiki CLI

AI Wiki 命令行工具:分析项目结构与技术栈,生成标准化 Markdown Wiki(概览、接口、数据、测试、运维等),支持版本差异标注与本地预览。

安装

npm i -g ai-wiki

或在项目内本地安装:

npm i -D ai-wiki

使用

在项目根目录运行:

  • 初始化文档骨架:aiwiki init
  • 分析项目结构:aiwiki analyze
  • 生成/更新 Wiki:aiwiki generate
  • 校验完整性:aiwiki validate --fix
  • 预览/静态导出:aiwiki preview --port 8000aiwiki preview --static
  • 调用 Gemini 测试:aiwiki gemini -p "你的提示词" --stream --verbose

提示词文件:在项目根放置 提示词.MD 可定制生成风格;默认使用内置提示词。

配置

在项目根创建 aiwiki.config.json

{
  "wiki": { "outputDir": "wiki" },
  "ai": {
    "geminiCliPath": "gemini",
    "model": "gemini-1.5-pro",
    "promptFile": "提示词.MD",
    "timeoutMs": 8000
  },
  "preview": { "port": 8000 }
}

更多字段请参考 src/lib/config.js 的默认值。

运行环境

  • Node.js >= 18
  • 可选:已安装 @google/gemini-cli 并配置凭证

目录结构(发布包)

  • bin/aiwiki.js:CLI 入口
  • src/commands/*.js:命令实现(init/generate/preview/analyze/diff/validate/gemini)
  • src/lib/*.js:通用库(配置、发现、生成、渲染等)

示例项目与静态输出目录不会包含在发布包中(通过 files 白名单控制)。

许可

ISC