# xkcd を Homebrew でインストール

xkcd のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:xkcd
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install xkcd
```

  証拠: local Homebrew formula metadata

## パッケージ情報

- **パッケージキー:** brew:xkcd
- **パッケージマネージャ:** Homebrew
- **バージョン:** 2.0.0
- **ソース概要:** Fetch latest, random or any particular xkcd comic right in your terminal
- **ホームページ:** <https://git.hanabi.in/xkcd-go>
- **最終更新:** 2026-07-25T21:49:10+02:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- xkcd (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 2.0.0
## プロジェクトの歴史と使われ方

xkcd-go is a small Go command-line client for reading xkcd from the terminal. It can show the latest comic, a random comic, a numbered comic, save images, and open explanations for comics.

### プロジェクトの歴史

The project is hosted on Agastya Chandrakant's stagit instance and describes itself as a Go tool to read the latest, random, or a specific xkcd comic, with download support. Its public log shows an initial commit on 2022-02-26 by Agastya Chandrakant.

A follow-up commit on 2022-02-27 substantially reshaped the tool: the log says it added an explainxkcd command, used xkcd.com pages instead of only image URLs for interactive comics, saved larger images when available, and made bare numeric arguments behave like `xkcd get <number>`.

The README frames the project as intentionally small. It documents separate `dev`, `prod`, and `master` branches, notes that `master` exists for stagit-generated web output, and says future additions should follow the Unix philosophy.

### 採用の歴史

xkcd-go is niche rather than broadly infrastructural, but it fits a long-running terminal culture around fetching webcomic and API content from shell sessions. Its source package is visible enough to be distributed as the `xkcd` command, giving users a one-word terminal entry point for a webcomic whose audience overlaps heavily with programmers and Unix users.

The upstream xkcd site provides stable latest, random, previous/next, archive, and numbered-comic URLs; xkcd-go packages that web convention into commands. explainxkcd support reflects the parallel community documentation ecosystem around the comic.

### 使われ方

Typical commands are `xkcd` or `xkcd latest` for the newest comic, `xkcd random`, `xkcd get 303`, `xkcd 807`, `xkcd save`, `xkcd save 1312`, `xkcd explain`, and `xkcd explain 1000`.

The tool is practical for terminal users who want quick comic lookup, scripting-friendly retrieval, or a lightweight way to jump from a comic number to its explanation without opening the xkcd archive manually.

### パッケージ好きにとっての重要性

xkcd-go is package-nerd fan service: a tiny CLI around programmer folklore. It matters less as infrastructure than as a neat example of packaging web culture into a terminal command.

It is also a reminder that package indexes carry small personal utilities alongside major libraries. For discovery sites, that is useful texture: not every package solves a platform problem; some encode a community habit.

### タイムライン

- 2005: xkcd began publishing as Randall Munroe's webcomic about romance, sarcasm, math, and language.
- 2022-02-26: xkcd-go initial commit added the first public implementation.
- 2022-02-27: Major refactor added explainxkcd support, better interactive-comic handling, larger-image saving, and numeric shorthand.
- 2020s: xkcd-go is packaged as the `xkcd` terminal command for fetching comics from the shell.

### Related projects

- xkcd.com is the source comic site. explainxkcd is the explanation wiki targeted by the `xkcd explain` command. Other neighboring tools include xkcd API clients such as go-xkcd and terminal comic viewers such as xkcdpunk or Gleeter.

### ソース

- <https://git.hanabi.in/xkcd-go>
- <https://git.hanabi.in/xkcd-go/commit/29a18b921839bb2c98ee0caf4b1cc5f2e4cf1707.html>
- <https://git.hanabi.in/xkcd-go/commit/5e68ef5b2e7e6806dd57586e9b7ed4f97f64dba0.html>
- <https://git.hanabi.in/xkcd-go/file/README.html>
- <https://www.explainxkcd.com/>
- <https://xkcd.com/>
- <https://xkcd.com/json.html>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals


## Combined YAML source

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


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
