# 使用 Homebrew, Nix 安装 stuffbin

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

## 安装

```sh
sudo av install brew:stuffbin
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install stuffbin
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#stuffbin
```

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

## 软件包事实

- **软件包键:** brew:stuffbin
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/stuffbin>
- **版本:** 1.3.0
- **来源摘要:** Compress and embed static files and assets into Go binaries
- **主页:** <https://github.com/knadh/stuffbin>
- **仓库:** <https://github.com/knadh/stuffbin>
- **上游文档:** <https://github.com/knadh/stuffbin#readme>
- **许可证:** MIT
- **源码归档:** <https://github.com/knadh/stuffbin/archive/refs/tags/v1.3.0.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- stuffbin (cli)
- stuffbin (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

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

stuffbin is a small Go utility and package for compressing static assets and appending them to Go binaries, then exposing them through a virtual filesystem at runtime.

### 项目历史

The official README describes stuffbin as both a command-line utility and Go package for embedding static files into binaries. It says the project was inspired by zgok, with a simpler design and different abstractions.

The README was updated in June 2026 to say the project appears feature complete, with no changes required in roughly three years, while still being used in critical production systems.

### 采用历史

The input package facts list stuffbin in Homebrew and Nix, which is consistent with a niche developer tool whose audience is Go application packagers rather than general end users.

Go 1.16 introduced native //go:embed support, and the README positions stuffbin against that built-in feature by emphasizing ZIP compression, dynamic embedding, path aliases, and embedding files outside the package directory.

### 使用方式

A typical stuffbin workflow builds a Go binary, runs stuffbin to append compressed assets, and then has the application read those assets back from itself through stuffbin's filesystem abstraction.

It is most relevant for distributing single-binary Go services with web assets, templates, or other static files while retaining a local-filesystem fallback during development.

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

stuffbin matters to package nerds because it sits at the boundary between application packaging and language tooling: it changes what a Go binary can carry without requiring an external asset directory.

Its continued niche after //go:embed is the interesting bit: package maintainers care about compression, dynamic post-build stuffing, and layouts that Go's native embedding deliberately restricts.

### 时间线

- 2021: Go 1.16 introduced //go:embed, later documented by stuffbin as the native feature it compares against.
- 2026: The official README described stuffbin as feature complete and still used in critical production systems.

### Related projects

- Go's //go:embed is the native alternative discussed by the README.
- zgok is named by the README as an inspiration for stuffbin.

### 来源

- <https://github.com/knadh/stuffbin#readme>
- input.source_facts.package-manager


## 安全说明

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:** stuffbin
- **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:** head, stable

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

- Nix - stuffbin: normalized package name match | nixpkgs package indexes: pkgs/by-name/st/stuffbin/package.nix from https://api.github.com/repos/NixOS/nixpkgs/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.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [makeself](https://www.automicvault.com/zh-hans/pkg/brew/makeself/) - Shares av.db curated category or tags: cli, compression, developer-tools, packaging.
- [abi3audit](https://www.automicvault.com/zh-hans/pkg/brew/abi3audit/) - Shares av.db curated category or tags: cli, developer-tools, packaging.
- [cargo-bundle](https://www.automicvault.com/zh-hans/pkg/brew/cargo-bundle/) - Shares av.db curated category or tags: cli, developer-tools, packaging.
- [charmcraft](https://www.automicvault.com/zh-hans/pkg/brew/charmcraft/) - Shares av.db curated category or tags: cli, developer-tools, packaging.
- [create-dmg](https://www.automicvault.com/zh-hans/pkg/brew/create-dmg/) - Shares av.db curated category or tags: cli, developer-tools, packaging.
- [dylibbundler](https://www.automicvault.com/zh-hans/pkg/brew/dylibbundler/) - Shares av.db curated category or tags: cli, developer-tools, packaging.
- [flit](https://www.automicvault.com/zh-hans/pkg/brew/flit/) - Shares av.db curated category or tags: cli, developer-tools, packaging.
- [gcab](https://www.automicvault.com/zh-hans/pkg/brew/gcab/) - Shares av.db curated category or tags: cli, developer-tools, packaging.
- [go-statik](https://www.automicvault.com/zh-hans/pkg/brew/go-statik/) - Both packages touch the same language runtime or ecosystem. Shared terms: assets, cli, developer, developer-tools, embed.
- [go-bindata](https://www.automicvault.com/zh-hans/pkg/brew/go-bindata/) - Both packages touch the same language runtime or ecosystem. Shared terms: assets, cli, developer, developer-tools, embedding.
- [go-rice](https://www.automicvault.com/zh-hans/pkg/brew/go-rice/) - Both packages touch the same language runtime or ecosystem. Shared terms: assets, cli, developer, developer-tools, embed.

## Combined YAML source

View the package source record on GitHub. [combined/stuffbin.yml](https://github.com/automic-vault/db/blob/main/combined/stuffbin.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
