macOS
brew install hzlocal Homebrew formula metadata
安装
brew install hzlocal Homebrew formula metadata
概览
Golang HTTP framework for microservices
历史
hz is the command-line generator distributed with CloudWeGo Hertz, ByteDance's Go HTTP framework for microservices. In package-manager form it installs the hz executable and its protocol compiler plugins, making Hertz scaffolding available as a standalone developer tool.
Hertz began inside ByteDance as a high-performance HTTP framework shaped by internal microservice requirements. CloudWeGo's README says Hertz was originally forked from fasthttp, inspired by Gin and Echo, and paired with ByteDance's Netpoll network library.
CloudWeGo announced Hertz as an open source project on June 21, 2022, after more than a year of internal use. The same announcement describes hz as the one-click command-line tool that generates project scaffolding from interface definition files.
The Homebrew formula packages the command-line side of the project from the cloudwego/hertz repository, installing hz along with protoc-gen-hertz and thrift-gen-hertz.
Before public release, Hertz had already become a large internal ByteDance HTTP framework, with CloudWeGo reporting more than 10,000 online services and peak traffic above 40 million QPS. Public adoption grew around the CloudWeGo ecosystem, where Hertz, Kitex, Netpoll, examples, and hertz-contrib extensions form a Go microservice toolkit.
For package managers, hz is the convenient entry point: developers can install the generator without manually building the Hertz repository, then generate or update service scaffolding from Thrift or Protobuf IDL.
hz is used to create and maintain Hertz projects from service definitions. The CloudWeGo announcement says it supports Thrift and Protobuf, depends on the official Protobuf compiler and Thriftgo, and can update generated scaffolding after IDL changes.
The surrounding Hertz framework targets high-usability, high-performance, extensible HTTP services with middleware, streaming, protocol support, observability hooks, and optional Netpoll or Go net transport behavior.
hz is package-nerd significant because it packages a generator rather than only a runtime library. It gives Homebrew users the same style of one-command workflow familiar from protoc plugins, thrift generators, and framework CLIs, while leaving application code in normal Go modules.
It also represents a common packaging pattern for large Go frameworks: the repository contains libraries, examples, generated-code support, and release tags, but package managers expose the small set of executables developers actually need on PATH.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
hz | cli | 全局可执行文件 | |
protoc-gen-hertz | cli | 全局可执行文件 | |
thrift-gen-hertz | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/cloudwego/hertz
安装元数据
| 软件包键 | brew:hz |
|---|---|
| 版本 | 0.9.7 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/hz |
| 主页 | https://www.cloudwego.io |
| 仓库 | https://github.com/cloudwego/hertz |
| 上游文档 | https://www.cloudwego.io/docs/hertz |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/cloudwego/hertz/archive/refs/tags/cmd/hz/v0.9.7.tar.gz |
| 最后更新 | 2026-06-15T10:20:18-04:00 |
| Pulse | updated |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | hz |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.