# rakyll/statik

Embed files into a Go executable

Repository: https://github.com/rakyll/statik
Canonical: https://ross.abutalabs.com/products/statik
Language: Go
License: Apache-2.0
License Family: permissive
Topics: static, files, golang, go, http, http-server
Last push: 2026-01-10T21:15:13+00:00

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

## Adoption (not part of the score)
Stars 3826, forks 227 (observed 2026-08-28T04:08:22.341641+00:00)

## What it is
statik is a Go tool that embeds a directory of static files into a Go binary, generating a package that registers the contents as an http.FileSystem. It lets developers distribute a single executable that serves its own images, CSS, and JavaScript over HTTP.

## Use cases
- embed static assets into a single Go binary
- serve CSS, JS, and images from a Go executable without external files
- distribute a CLI tool with a bundled web UI
- read embedded file contents at runtime in Go
- generate deterministic static file packages for CI

## When to choose
- you need to ship a single self-contained Go binary that serves a small web component
- your static files are small and served to a limited number of users
- you are maintaining an older Go codebase predating the embed package

## When to avoid
- you are on Go 1.16 or newer, where the standard library 'embed' package handles this natively
- you need to serve large static assets or high-traffic sites
- you need advanced asset features like hashing, minification, or live reload

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: http-server, file-system, cli, developer-tools
- domain: web-development, developer-tools
- platform: go, cli, cross-platform
- tags: static-assets, go-embed, single-binary, http-filesystem, asset-packing, command-line

## Member repositories
- rakyll/statik (main) score 59

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:22.341641+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-29T18:26:22.024849+00:00, confidence not recorded.
  - readme: https://github.com/rakyll/statik (fetched 2026-08-28T04:08:22.341641+00:00, sha 217335676342)
- Data as of 2026-08-30T08:39:29.467469+00:00.
