# 使用 Homebrew, Nix, scoop 安装 httpstat

查看 httpstat 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:httpstat
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install httpstat
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#httpstat
```

  证据: nixpkgs package indexes: pkgs/by-name/ht/httpstat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/httpstat
```

  证据: Scoop official bucket manifest trees: bucket/httpstat.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:httpstat
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/httpstat>
- **版本:** 1.3.2
- **来源摘要:** Curl statistics made simple
- **主页:** <https://github.com/reorx/httpstat>
- **仓库:** <https://github.com/reorx/httpstat>
- **上游文档:** <https://github.com/reorx/httpstat>
- **许可证:** MIT
- **源码归档:** <https://github.com/reorx/httpstat/archive/refs/tags/1.3.2.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- httpstat (cli)
- httpstat (别名)

## macOS 提供的库

- curl
- python

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.3.2
- 本地数据: OK
- 上游仓库: https://github.com/reorx/httpstat
- 检测到的最新版本: 1.3.2 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

httpstat is a command-line HTTP timing visualizer built around curl. Its niche is taking curl's detailed timing values and presenting them as a compact terminal breakdown for DNS lookup, TCP connection, TLS negotiation, server wait time, and content transfer.

### 项目历史

The GitHub repository was created in August 2016 by reorx and describes the tool as 'curl statistics made simple.' The README emphasizes a deliberately small shape: a single Python 3 script with no dependency, installable directly, through pip, or through Homebrew.

The early release trail shows rapid iteration in September and October 2016, with releases in the 1.1 and 1.2 series soon after publication. A later 1.3.0 release in October 2020 marks the project as more than a one-off gist: it kept the same curl-wrapper identity while continuing to package a small diagnostic utility for shell workflows.

### 采用历史

httpstat spread through package-manager culture because it solved a common debugging need with almost no installation weight. The Homebrew formula, pip installation path, Nix package, and Scoop package listed in package metadata all reflect the same appeal: developers could add a readable latency breakdown to an existing terminal workflow without adopting a full monitoring stack.

The GitHub repository accumulated thousands of stars, and the README points users to related implementations in Go, including davecheney/httpstat and tcnksm/go-httpstat. That related-project list shows how the idea moved from a Python curl wrapper into language-specific tools and libraries.

### 使用方式

Typical use is `httpstat example.com` or `python httpstat.py example.com`. Because it wraps curl, users can pass many curl options after the URL, including HTTP method and data flags, while httpstat controls the timing output.

The README documents structured JSON and JSONL output, save-to-file support, SLO threshold checks, NO_COLOR handling, and environment variables such as HTTPSTAT_CURL_BIN for choosing a curl binary. That keeps it useful both for interactive diagnosis and for lightweight scripting.

### 为什么软件包爱好者会关心

httpstat is a neat package-nerd artifact because it turns curl's `-w` timing machinery into a memorable executable. It is small enough to install everywhere, visual enough to demo in one terminal screenshot, and close enough to curl that it does not need to own HTTP behavior itself.

It also sits in a family of 'make a primitive readable' CLI packages: curl already knew the timings, but httpstat made them glanceable. That is exactly the kind of tiny Unix-adjacent utility that package managers preserve well.

### 时间线

- 2016: GitHub repository created for reorx/httpstat.
- 2016: 1.1 and 1.2 releases published soon after the public repository appeared.
- 2020: 1.3.0 release published.
- 2026: README documents JSON/JSONL output, SLO checks, NO_COLOR support, and related implementations.

### Related projects

- curl is the underlying HTTP client and timing source for httpstat.
- davecheney/httpstat is the Go implementation recommended by the README for Windows users.
- tcnksm/go-httpstat is a Go library and CLI in the same timing-diagnostics family.
- httptap covers a similar phase-by-phase timing niche with a newer Python/Rich interface and additional TLS/request visualization.

### 来源

- GitHub releases supply the 2016 and 2020 release timeline.
- GitHub repository metadata supplies the creation date, description, license, and popularity signal.
- Homebrew and package metadata support package-manager adoption.
- The README supplies the curl-wrapper design, installation paths, usage examples, environment variables, structured output, and related projects.


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** httpstat
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Nix - httpstat: normalized package name match | nixpkgs package indexes: pkgs/by-name/ht/httpstat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - main/httpstat: normalized package name match | Scoop official bucket manifest trees: bucket/httpstat.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [jhiccup](https://www.automicvault.com/zh-hans/pkg/brew/jhiccup/) - Shares av.db curated category or tags: cli, developer-tools, latency, performance.
- [ali](https://www.automicvault.com/zh-hans/pkg/brew/ali/) - Shares av.db curated category or tags: cli, developer-tools, http, performance.
- [gcviewer](https://www.automicvault.com/zh-hans/pkg/brew/gcviewer/) - Shares av.db curated category or tags: cli, developer-tools, performance.
- [liboil](https://www.automicvault.com/zh-hans/pkg/brew/liboil/) - Shares av.db curated category or tags: cli, developer-tools, performance.
- [tracy](https://www.automicvault.com/zh-hans/pkg/brew/tracy/) - Shares av.db curated category or tags: cli, developer-tools, performance.
- [cassowary](https://www.automicvault.com/zh-hans/pkg/brew/cassowary/) - Shares av.db curated category or tags: cli, developer-tools, http, performance.
- [h2c](https://www.automicvault.com/zh-hans/pkg/brew/h2c/) - Shares av.db curated category or tags: cli, curl, developer-tools, http.
- [hurl](https://www.automicvault.com/zh-hans/pkg/brew/hurl/) - Shares av.db curated category or tags: cli, curl, developer-tools, http.

## Combined YAML source

View the package source record on GitHub. [combined/httpstat.yml](https://github.com/automic-vault/db/blob/main/combined/httpstat.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
