macOS
brew install xkcdlocal Homebrew formula metadata
安装
brew install xkcdlocal Homebrew formula metadata
概览
Fetch latest, random or any particular xkcd comic right in your terminal
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
xkcd | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:xkcd |
|---|---|
| 版本 | 2.0.0 |
| 软件包管理器 | Homebrew |
| 主页 | https://git.hanabi.in/xkcd-go |
| 最后更新 | 2026-07-25T21:49:10+02:00 |
| Pulse | updated |
| Bottle | 未记录 |
| 服务 | 未声明 |
来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.