curl 统计数据变得简单
httpstat 以美观、清晰的方式可视化 curl(1) 的统计信息。
它是一个单文件 Python 脚本,没有任何依赖,并且兼容 Python 3。
--format json / jsonl,提供稳定的 v1 schema,便于机器消费--slo total=500,connect=100,违反时以退出码 4 退出--save path.json,适用于多步骤工作流有三种方式获取 httpstat:
直接下载脚本:wget https://raw.githubusercontent.com/reorx/httpstat/master/httpstat.py
通过 pip:pip install httpstat
通过 homebrew(仅限 macOS):brew install httpstat
httpstat 附带一个代理技能,可教会 AI 编码助手(Claude Code、Cursor 等)如何使用 httpstat 进行 HTTP 性能诊断——自动安装、瓶颈识别以及可操作的修复建议。
将该技能安装到你的项目中:
npx skills add reorx/httpstat安装完成后,当你询问“为什么这个 API 这么慢?”或“调试这个端点的延迟”之类的问题时,你的代理将自动使用 httpstat。
只需:
python httpstat.py httpbin.org/get如果通过 pip 或 brew 安装,你可以使用 httpstat 作为命令:
httpstat httpbin.org/get由于 httpstat 是 cURL 的封装,你可以在 url 之后传递任何 cURL 支持的选项(除了已被 httpstat 使用的 -w、-D、-o、-s、-S):
httpstat httpbin.org/post -X POST --data-urlencode "a=b" -v使用 --format(-f)
暂无开放 Issues,或尚未同步最近议题。