# 使用 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
- **版本:** 1.3.0
- **来源摘要:** Compress and embed static files and assets into Go binaries
- **主页:** <https://github.com/knadh/stuffbin>
- **仓库:** <https://github.com/knadh/stuffbin>
- **最后更新:** 2026-07-26T04:03:47+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- stuffbin (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.3.0
## 项目历史与用法

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

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

- 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


## Combined YAML source

View the package source record on GitHub. [combined/stuffbin.yml](https://github.com/mxcl/pkgdb/blob/main/combined/stuffbin.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
