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

star-report

v1.0.3

Published

starReport:用于生成和管理 GitHub 报告,并提供 MCP 服务的 Node.js 工具。

Downloads

7

Readme

starReport

starReport 是一个用于自动生成和管理指定 GitHub 仓库 star、commit、issue 等活跃度报告的 Node.js 工具,支持 MCP 协议服务,集成大模型智能分析,并可自动推送到飞书群。

主要功能特性

  • GitHub 仓库活跃度监控:自动采集指定仓库的 star 数、commit 数、issue 数等数据,支持日报和周报统计。
  • 自动推送报告:可将日报、周报和智能分析结果自动推送到飞书群,方便团队同步。
  • MCP 服务支持:通过 MCP 协议(stdio)对外提供数据查询、报告生成、AI 分析、消息推送等能力,便于集成到自动化平台。
  • 智能分析:集成大模型(如 OpenAI/智谱),对历史数据进行趋势分析、总结和表格可视化,支持自定义问题分析。
  • SSE 实时流式分析:支持 HTTP SSE 实时返回智能分析内容,适合前端实时展示。
  • Webhook 问答:兼容飞书 webhook,支持群聊提问并返回智能分析结果。
  • 定时任务:内置定时任务,每天/每周自动采集数据并推送报告,无需人工干预。
  • 灵活配置:支持通过环境变量和 MCP 配置灵活指定监控仓库、推送方式和大模型参数。

安装方法

  1. 克隆仓库:
    git clone https://github.com/hu-qi/starReport.git
  2. 进入项目目录并安装依赖:
    cd starReport
    npm install

使用说明

  1. 配置环境变量: 复制 .env.example.env,并根据需要填写相关配置。
  2. 运行项目:
    node index.js

MCP Server 配置示例

如需通过 MCP 协议启动服务,可参考如下配置:

{
  "mcpServers": {
    "starReport-server": {
      "command": "npx",
      "args": [
        "-y",
        "star-report",
        "mcp-server"
      ],
      "env": {
        "GITHUB_TOKEN": "<你的 GitHub Token>",
        "FEISHU_WEBHOOK": "<你的飞书 Webhook>",
        "REPORT_REPOS": "<repo1,repo2,repo3>",
        "API_KEY": "<你的 API Key>",
        "API_BASE_URL": "<API Base URL>",
        "API_MODEL": "<模型名称>",
        "DATA_FILE":"<数据存放可读性的文件路径,如path/to/writable/directory/data.json>"
      }
    }
  }
}

如果是本地运行则替换 commandargs

"command": "node",
"args": [
  "index.js",
  "mcp-server"
],
  • command:启动命令,通常为 npx
  • :命令行参数,star-report mcp-server 启动 MCP 服务。
  • env:环境变量配置,需根据实际情况填写。
    • GITHUB_TOKEN:GitHub 访问令牌。
    • FEISHU_WEBHOOK:飞书群机器人 Webhook。
    • REPORT_REPOS:监控的 GitHub 仓库列表,逗号分隔。
    • API_KEYAPI_BASE_URLAPI_MODEL:大模型相关配置。

请勿在公开场合泄露敏感信息。

功能演示

  • MCP tools: MCP 工具

  • 列举功能: func-list

  • 飞书消息推送: feishu-push

许可证

本项目基于 MIT 许可证开源。