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

mango-ai-git-report

v1.0.12

Published

> AI-powered Git Weekly Report Generator > 基于 Git Commit 和 Git Diff,使用 AI 自动生成专业开发周报。

Downloads

114

Readme

mango-ai-git-report

AI-powered Git Weekly Report Generator
基于 Git Commit 和 Git Diff,使用 AI 自动生成专业开发周报。

✨ 介绍

mango-ai-git-report 是一个 AI 驱动的 Git 周报生成 CLI 工具。

它可以自动读取 Git 仓库中的:

  • Git Commit 提交记录
  • Git Diff 代码变更

并结合 AI 分析代码修改内容,生成结构化的开发周报。

适用于:

  • 开发人员周报生成
  • 多仓库工作总结
  • 项目进度记录
  • 技术团队工作汇报

🚀 安装

使用 npx(推荐)

无需安装:

npx mango-ai-git-report --repo frontend --days 7

全局安装

npm install -g mango-ai-git-report

安装后:

mango-ai-git-report --repo frontend --days 7

🔑 配置 AI Key

本工具使用 DeepSeek API 生成报告。

使用前需要配置环境变量:

Mac / Linux

export DEEPSEEK_API_KEY=your_deepseek_api_key

Windows

set DEEPSEEK_API_KEY=your_deepseek_api_key

检查是否配置成功:

echo $DEEPSEEK_API_KEY

📖 使用方式

基础使用

npx mango-ai-git-report --days 7
mango-ai-git-report --repo frontend --days 7

指定仓库

mango-ai-git-report \
--repo frontend \
--days 7

输出文件

mango-ai-git-report \
--repo frontend \
--days 7 \
--output report.md

指定输出格式

mango-ai-git-report \
--repo frontend \
--days 7 \
--format md

⚙️ 参数说明

| 参数 | 简写 | 说明 | 默认值 | | --- | --- | --- | --- | | --repo | -r | Git仓库名称 | 当前仓库 | | --days | -d | 获取最近提交数量 | 7 | | --output | -o | 输出文件路径 | - | | --format | -f | 输出格式 | md |

📝 输出示例

生成内容:

# 开发周报

## 一、功能开发

### Agent 文件操作能力扩展

- 新增 write_file 工具
- 支持 Agent 自动创建和修改文件
- 完善文件操作流程


## 二、功能优化

### Git 分析能力优化

- 支持多仓库路径解析
- 增加 Git 仓库合法性校验

✨ 功能特性

  • ✅ 自动读取 Git Commit
  • ✅ 自动解析 Git Diff
  • ✅ AI 自动分析代码变化
  • ✅ 支持多个 Git 仓库
  • ✅ 支持 Agent Tool Calling
  • ✅ 支持文件操作工具
  • ✅ 支持 Markdown 周报输出
  • ✅ TypeScript 开发

🏗️ 技术栈

  • Node.js
  • TypeScript
  • Commander
  • OpenAI SDK
  • DeepSeek API
  • Git CLI

🧠 工作流程

Git Repository

      |
      ↓

git log 获取提交记录

      |
      ↓

git diff 分析代码变化

      |
      ↓

组装 Prompt

      |
      ↓

AI 分析

      |
      ↓

生成开发周报

📂 项目结构

mango-ai-git-report

├── src
│   ├── agent
│   │   ├── runAgent.ts
│   │   └── toolMap.ts
│   │
│   ├── tools
│   │