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

koishi-plugin-githubsth

v1.0.6

Published

Github Subscriptions Notifications, push notifications for GitHub subscriptions For koishi

Readme

koishi-plugin-githubsth

npm

Koishi 的 GitHub 集成插件,提供强大的事件通知服务和仓库管理命令。支持数据库存储订阅关系,并提供信任仓库管理功能。

功能特性

  • 事件通知: 实时接收 GitHub 事件通知 (Push, Issue, PR, Release, Star, Fork, Discussion, Workflow)。
  • 数据库订阅: 订阅关系持久化存储在 Koishi 数据库中,支持动态管理。
  • 信任仓库管理: 管理员可配置允许订阅的仓库白名单,确保安全。
  • 灵活的规则: 支持按仓库、目标频道和事件类型进行订阅。
  • 丰富格式: 消息格式美观,包含关键信息。
  • 调试模式: 支持开启详细日志输出,方便排查问题。

安装

npm install koishi-plugin-githubsth

配置

本插件需要 database 服务和 koishi-plugin-adapter-github 才能正常工作。

插件配置

在 Koishi 控制台中配置插件:

  • defaultOwner: 默认仓库拥有者 (可选)。
  • defaultRepo: 默认仓库名称 (可选)。
  • debug: 启用调试模式,输出详细日志 (默认 false)。

订阅管理

插件使用数据库管理订阅。

管理员命令 (权限等级 3)

  • githubsth.trust.add <repo>: 添加信任仓库 (owner/repo)。
  • githubsth.trust.remove <repo>: 移除信任仓库。
  • githubsth.trust.list: 列出所有信任仓库。
  • githubsth.trust.enable <repo>: 启用信任仓库。
  • githubsth.trust.disable <repo>: 禁用信任仓库。

用户命令

  • githubsth.subscribe <repo> [events]: 订阅仓库事件。
    • repo: 仓库全名 (owner/repo)。
    • events: (可选) 订阅的事件列表,逗号分隔。默认为 push, issues, pull_request
    • 注意:仅能订阅已添加到信任列表的仓库。
  • githubsth.unsubscribe <repo>: 取消订阅仓库。
  • githubsth.list: 查看当前频道的订阅列表。
  • githubsth.repo [name]: 获取仓库信息。

支持的事件

  • push: 代码推送
  • issues: Issue 创建、关闭等
  • pull_request: PR 创建、合并等
  • release: 新版本发布
  • star: 仓库标星
  • fork: 仓库复刻
  • discussion: 讨论区动态
  • workflow_run: CI/CD 工作流状态

许可证

MIT