Automic VaultAutomic Vault

brew

Install xkcd with Homebrew

Fetch latest, random or any particular xkcd comic right in your terminal. Version 2.0.0 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install xkcd

local Homebrew formula metadata

overview

Package summary

Fetch latest, random or any particular xkcd comic right in your terminal

Commands and aliases

  • xkcd

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

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

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 13 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
xkcdcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version2.0.0
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://git.hanabi.in/xkcd-go

  • infoNo package-manager update timestamp was available.low confidence
  • infoRelease/tag comparison is only available for GitHub repositories.https://git.hanabi.in/xkcd-gonone confidence

install metadata

Package metadata

Package keybrew:xkcd
Version2.0.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/xkcd
Homepagehttps://git.hanabi.in/xkcd-go
Repositoryhttps://git.hanabi.in/repos/xkcd-go.git
Upstream docshttps://git.hanabi.in/xkcd-go
LicenseAGPL-3.0-only
Source archivehttps://git.hanabi.in/repos/xkcd-go.git
Build dependenciesgo
Bottleavailable (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namexkcd
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment