# Install stuffbin with Homebrew, Nix

Compress and embed static files and assets into Go binaries. Version 1.3.0 via Homebrew; verified 2026-07-26. Also installable with nix: nix profile install nixpkgs#stuffbin.

## 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
- **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>
- **Last updated:** 2026-07-26T04:03:47+02:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- stuffbin (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.3.0
## 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

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


## Combined YAML source

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


## Sources

- 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
