# Install stuffbin with Homebrew, Nix

Compress and embed static files and assets into Go binaries. Version 1.3.0 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install stuffbin
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## Package facts

- **Package key:** brew:stuffbin
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/stuffbin>
- **Version:** 1.3.0
- **Source summary:** Compress and embed static files and assets into Go binaries
- **Homepage:** <https://github.com/knadh/stuffbin>
- **Repository:** <https://github.com/knadh/stuffbin>
- **Upstream docs:** <https://github.com/knadh/stuffbin#readme>
- **License:** MIT
- **Source archive:** <https://github.com/knadh/stuffbin/archive/refs/tags/v1.3.0.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- stuffbin (cli)
- stuffbin (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.3.0
- Local data: ok
- Upstream repository: https://github.com/knadh/stuffbin
- Upstream latest detected: v1.3.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

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


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **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

## Other Package-Manager Records

- 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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [makeself](https://www.automicvault.com/pkg/brew/makeself/) - Shares av.db curated category or tags: cli, compression, developer-tools, packaging.
- [abi3audit](https://www.automicvault.com/pkg/brew/abi3audit/) - Shares av.db curated category or tags: cli, developer-tools, packaging.
- [cargo-bundle](https://www.automicvault.com/pkg/brew/cargo-bundle/) - Shares av.db curated category or tags: cli, developer-tools, packaging.
- [charmcraft](https://www.automicvault.com/pkg/brew/charmcraft/) - Shares av.db curated category or tags: cli, developer-tools, packaging.
- [create-dmg](https://www.automicvault.com/pkg/brew/create-dmg/) - Shares av.db curated category or tags: cli, developer-tools, packaging.
- [dylibbundler](https://www.automicvault.com/pkg/brew/dylibbundler/) - Shares av.db curated category or tags: cli, developer-tools, packaging.
- [flit](https://www.automicvault.com/pkg/brew/flit/) - Shares av.db curated category or tags: cli, developer-tools, packaging.
- [gcab](https://www.automicvault.com/pkg/brew/gcab/) - Shares av.db curated category or tags: cli, developer-tools, packaging.
- [go-statik](https://www.automicvault.com/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/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/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)


## Sources

- 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
