# 使用 Homebrew, Nix 安装 gostatic

查看 gostatic 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gostatic
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## 软件包事实

- **软件包键:** brew:gostatic
- **软件包管理器:** Homebrew
- **版本:** 2.36
- **来源摘要:** Fast static site generator
- **主页:** <https://github.com/piranha/gostatic>
- **仓库:** <https://github.com/piranha/gostatic>
- **最后更新:** 2026-07-25T20:55:26-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gostatic (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.36
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

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

### 来源

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


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- 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
## 其他软件包管理器记录

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


## 来源

- 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
