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 🙏

© 2025 – Pkg Stats / Ryan Hefner

gchcg-cli

v3.0.8

Published

gchcg cli

Downloads

137

Readme

脚手架

node >= v20.0.0

安装

npm install -g gchcg-cli

使用

cg help
cg publish
cg push
# ai 生成 commit message,执行 add commit push
cg commit

示例

$ cg commit
gchcg-cli info cli 2.2.13
gchcg-cli verb 当前使用模型:deepseek-chat
gchcg-cli success git add 成功
gchcg-cli success AI 生成的内容:
feat(zhangsan): 添加getOptionKey方法用于获取option数据

在设备类型管理组件中新增getOptionKey工具方法,用于从数据源中根据指定key查找对应的值。同时修改了提交逻辑,在提交参数时自动填充type字段。
gchcg-cli success 模型统计:
输入321 tokens、输出 53 tokens、费用 0.00007995
gchcg-cli success commit 提交成功
gchcg-cli success 代码推送成功
gchcg-cli verb 本次执行指令耗时:24.093秒

ai commit 配置

设置 baseUrl

# ollama ----------- http://localhost:11434/v1
# deepseek --------- https://api.deepseek.com/v1
# siliconflow ------ https://api.siliconflow.cn/v1
# openai ----------- https://api.openai.com/v1
# openrouter ------- https://openrouter.ai/api/v1
# 简写 cg commit -u
cg commit --baseUrl

设置 token

# 简写 cg commit -t
cg commit --setToken

选择模型 model

# 简写 cg commit -m
cg commit --setModel

版本

v1.1.10

增加:

- 跳过 git add,直接 commit。指令:git push -s 或者 git push --skip

v1.1.19

修复 bug:

- 修复检查更新时,文件读取错误的问题

v1.1.20

增加:

- 增加 push 时,没有需要 commit 的文件的提示
- 增加 push 时,没有需要 push 的文件的提示

v1.1.21

bug:

- 每天检查一次版本,如果检查到有更新,则提示更新

v2.1.4

增加:

- 增加 ai 生成 commit

v3.0.0

增加:

- ai commit 费用统计