# Install gostatic with Homebrew, Nix

Fast static site generator. Version 2.36 via Homebrew; verified 2026-07-25. Also installable with nix: nix profile install nixpkgs#gostatic.

## Install

```sh
sudo av install brew:gostatic
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gostatic
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#gostatic
```

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

## Package facts

- **Package key:** brew:gostatic
- **Package manager:** Homebrew
- **Version:** 2.36
- **Source summary:** Fast static site generator
- **Homepage:** <https://github.com/piranha/gostatic>
- **Repository:** <https://github.com/piranha/gostatic>
- **Last updated:** 2026-07-25T20:55:26-04:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- gostatic (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 2.36
## Project history and usage

gostatic is a fast static site generator written in Go. Its README emphasizes a single binary, dependency tracking, Markdown support, a Make-like configuration format, filters, pagination, an HTTP server and watcher, and automation through commands such as gostatic --dump.

### Project history

The project fits the early Go-era static-site-generator pattern: compile a standalone binary, read a site source tree, transform Markdown and templates, and write static output. The README presents its design around dependency tracking and re-rendering only changed pages, making rebuild speed a central feature.

Release notes in the GitHub feed show incremental maintenance rather than a large platform pivot: hot reload changes, template helpers, syntax highlighting, Markdown parser changes, and dependency updates.

### Adoption history

gostatic is available through Homebrew and Nix in the batch input, and the README directs users to GitHub Releases or source builds. That is a small but natural footprint for a single-purpose developer tool whose users often install it directly in build scripts or personal-site toolchains.

### How it is used

A typical user runs gostatic -i to scaffold a site, edits the generated config file, writes content under the source directory, and runs gostatic or make targets to build or watch the site. The configuration model uses constants and rules resembling Makefile syntax, which lets users wire Markdown, templates, tags, and external processors into a static build.

### Why package nerds care

gostatic is a package-nerd example of the compact static-site-generator niche: no runtime service, no database, no Node toolchain requirement, just one binary and a config file. It matters less as a mass-market SSG than as a small, auditable tool with deterministic local builds.

### Timeline

- 2021: 2.27 adds the datefilename processor; later 2021 releases add hot reload and template/highlighting updates.
- 2022: 2.33 through 2.35 add template functions and highlighting improvements.
- 2023: 2.36 release notes mention Markdown attribute parsing and major dependency updates.

### Related projects

- goldmark is the CommonMark parser named in the README.
- chroma appears in release notes and README-related documentation as syntax-highlighting support.
- The author's solovyov.net repository is linked from the README as an advanced usage example.

### Sources

- <https://formulae.brew.sh/formula/gostatic>
- <https://github.com/piranha/gostatic>
- <https://github.com/piranha/gostatic/releases.atom>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: config
## Other Package-Manager Records

- Nix - gostatic: normalized package name match | nixpkgs package indexes: pkgs/by-name/go/gostatic/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/gostatic.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gostatic.yml)


## Sources

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