# markbates/pkger

Embed static files in Go binaries (replacement for gobuffalo/packr)

Repository: https://github.com/markbates/pkger
Canonical: https://ross.abutalabs.com/products/pkger
Language: Go
License: MIT
License Family: permissive
Archived: true
Last push: 2021-08-27T21:34:43+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2589, "days_push": 1832, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1183, forks 55 (observed 2026-08-28T04:03:54.569214+00:00)

## What it is
Pkger is a Go library and CLI tool for embedding static files into Go binaries, using Go Modules-aware pathing. It serves as a replacement for gobuffalo/packr, generating a pkged.go file containing embedded asset metadata.

## Use cases
- embed static assets like css and js into a single Go binary
- ship a self-contained Go web server with templates and assets
- replace gobuffalo/packr for embedding files in Go
- include build artifacts in a Go binary at package time
- serve embedded files from a Go application without external files

## When to choose
- you want a single deployable Go binary with no external asset files
- you are already using Go modules and want module-aware asset embedding
- you are migrating from packr v2

## When to avoid
- you are on Go 1.16+ and can use the standard embed package instead
- you need frequent asset updates without recompiling
- you are concerned about embedding local filesystem paths in binary metadata

## Facets
- artifact type: library
- maturity: maintenance
- function: file-system, developer-tools, cli
- domain: developer-tools, web-development
- platform: go, cli, cross-platform
- tags: go-embed, static-assets, single-binary, packr-replacement, command-line

## Member repositories
- markbates/pkger (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:54.569214+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:24:36.825750+00:00, confidence not recorded.
  - readme: https://github.com/markbates/pkger (fetched 2026-08-28T04:03:54.569214+00:00, sha d782d4ee536e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
