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

prompt-git

v0.2.0

Published

把提示词当代码管理:git 存储 + 结构化 diff + 每次变更自动跑评测门禁

Downloads

180

Readme

prompt-git

Prompt 也是代码——给它 git、diff、测试。

把提示词当代码管理的版本控制工具:git 存储 + 结构化 diff(按块/词级高亮)+ 每次变更自动跑评测门禁。安装即得预编译二进制(win / mac-arm / linux),无需编译。

安装

npm install -g prompt-git

或本地安装后整目录使用:postinstall 会自动按平台下载 GitHub Release 的二进制。

prompt-git init
prompt-git commit -m "初始化提示词"
prompt-git diff          # 结构化 diff
prompt-git test          # 评测门禁(需 API Key,详见下)
prompt-git tag 1.0.0     # 语义化版本

目录约定

prompts/
  system.md        # 系统提示
  user.md          # 用户提示模板({var} 插值)
  vars.yaml        # 变量定义/默认值
  tests.yaml       # 关联测试用例 + 评测后端配置

评测门禁

tests.yaml 配置 provider(openai / deepseek / 本地模型)+ 判例,prompt-git test 返回通过率,低于 fail_under 以非零码退出(可进 CI)。

export OPENAI_API_KEY=sk-...     # 或 DEEPSEEK_API_KEY / PROMPT_GIT_API_KEY
export PROMPT_GIT_BASE_URL=...   # 本地模型时指向 /v1/chat/completions
prompt-git test

完整文档

  • GitHub 仓库(源码 / demo GIF / 团队协作 flow):https://github.com/Gollum-code/prompt-git
  • 说明与配置示例:见仓库 README 与 docs/team-flow.md

License

MIT