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

@harneon-ai/githeat

v0.1.1

Published

MCP Server for Git heatmap analysis - provides AI Agents with Git commit activity and contributor pattern insights

Readme

@harneon-ai/githeat

一个 MCP (Model Context Protocol) Server,为 AI 助手提供 Git 提交热力图分析能力。

功能概览

  • 收集 Git 仓库提交数据
  • 生成仓库级统计信息(每日活动、贡献者摘要、文件类型分布)
  • 分析特定作者的提交模式和活跃度
  • 查询特定作者的所有提交记录

快速开始

1. 使用 npx(推荐)

npx @harneon-ai/githeat

2. 全局安装

npm install -g @harneon-ai/githeat
harneon-githeat

3. 在 Claude Code 中使用

claude mcp add harneon-githeat -- harneon-githeat

4. 在 Claude Desktop 中使用

编辑 Claude Desktop 配置文件(claude_desktop_config.json):

{
  "mcpServers": {
    "harneon-githeat": {
      "command": "harneon-githeat"
    }
  }
}

MCP 工具说明

1. collect-commits

收集 Git 仓库的提交数据。

参数:

  • repo (必需): 仓库路径(本地)或 URL(远程)
  • branch (可选): 要分析的分支,默认为当前分支
  • allBranches (可选): 是否分析所有分支,默认为 false
  • maxCount (可选): 最大提交数量,默认为 10000

返回:

  • sessionId: 会话 ID,用于后续分析工具
  • commitsFilePath: 提交数据 JSON 文件路径
  • totalCommits: 总提交数

2. repo-stats

生成仓库级统计信息。

参数:

  • sessionId (必需): 来自 collect-commits 的会话 ID

返回:

  • statsFilePath: 统计数据 JSON 文件路径,包含每日活动、作者摘要、文件类型分布

3. author-stats

分析特定作者的提交统计。

参数:

  • sessionId (必需): 来自 collect-commits 的会话 ID
  • author (必需): 作者名称(不区分大小写)

返回:

  • statsFilePath: 作者统计数据 JSON 文件路径

4. query-by-author

查询特定作者的所有提交。

参数:

  • sessionId (必需): 来自 collect-commits 的会话 ID
  • author (必需): 作者名称(不区分大小写)

返回:

  • queryFilePath: 查询结果 JSON 文件路径,包含按日期排序的提交列表
  • totalCommits: 该作者的提交总数

开发

安装依赖

npm install

构建

npm run build

测试

npm test

开发模式

npm run dev

技术栈

  • Node.js >= 18.0.0
  • TypeScript
  • MCP SDK
  • Zod

许可证

MIT