# 使用 Homebrew 安装 diagram

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

## 安装

```sh
sudo av install brew:diagram
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install diagram
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:diagram
- **软件包管理器:** Homebrew
- **版本:** 1.1.0
- **来源摘要:** CLI app to convert ASCII arts into hand drawn diagrams
- **主页:** <https://github.com/esimov/diagram>
- **仓库:** <https://github.com/esimov/diagram>
- **最后更新:** 2026-07-28T14:10:39+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- diagram (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Diagram is a Go command-line application for turning ASCII-art sketches into hand-drawn PNG diagrams. Its niche is the overlap between terminal diagramming, rough sketch aesthetics, and quick documentation assets.

### 项目历史

The public GitHub repository was created in 2017, matching the README copyright year. The README describes Diagram as a full CLI application with an editor, preview window, zooming and panning, file management, and direct command-line conversion from input text to output PNG.

### 采用历史

Diagram is packaged for Homebrew and advertised from its own README with a `brew install diagram` path, which puts it in the small family of diagramming tools installable as normal Unix command-line utilities rather than desktop drawing applications.

### 使用方式

Package users typically feed an ASCII diagram to `diagram -in sample.txt -out sample.png`, optionally disabling preview or selecting a handwriting font. That makes it useful for quick README illustrations, sketches, and local documentation workflows.

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

For package collectors, Diagram is interesting because it packages a visual, GUI-adjacent workflow as a single CLI: text in, generated image out, with a terminal UI available when interactive editing is wanted.

### 时间线

- 2017: GitHub repository created and README copyright year.
- 2025: v1.1.0 release published on GitHub.

### Related projects

- The README says its ASCII-to-PNG conversion was ported from `shaky.dart`, and lists Go UI/graphics dependencies including gocui, gg, and gioui.

### 来源

- <https://github.com/esimov/diagram>
- <https://raw.githubusercontent.com/esimov/diagram/master/README.md>
- <https://api.github.com/repos/esimov/diagram>
- <https://github.com/esimov/diagram/releases/tag/v1.1.0>


## 安全说明

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/diagram.yml](https://github.com/mxcl/pkgdb/blob/main/combined/diagram.yml)


## 来源

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