# 使用 Homebrew 安装 astgen

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

## 安装

```sh
sudo av install brew:astgen
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install astgen
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:astgen
- **软件包管理器:** Homebrew
- **版本:** 3.47.0
- **来源摘要:** Generate AST in json format for JS/TS
- **主页:** <https://github.com/joernio/astgen-monorepo>
- **仓库:** <https://github.com/joernio/astgen-monorepo>
- **最后更新:** 2026-07-17T09:31:55Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- astgen (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

astgen is a Joern-related AST generator package for producing JSON AST output for JavaScript and TypeScript. The original standalone repository is now archived and points to joernio/astgen-monorepo.

### 项目历史

The original joernio/astgen repository describes the package as generating AST in JSON format for JavaScript and TypeScript. GitHub now marks that repository archived, and its README directs future work to joernio/astgen-monorepo.

The replacement monorepo reframes astgen as a family of language-specific AST generators for the Joern code analysis platform. Its README lists ABAP, .NET, Go, JavaScript/TypeScript, Ruby, Rust, and Swift generators, each with its own build system, dependencies, tests, and release workflow.

### 采用历史

Public adoption evidence is thin: the supplied facts show a Homebrew formula, while the original repository has a small public footprint. The package is best understood as a Joern ecosystem utility rather than a broad standalone developer tool.

### 使用方式

Package users invoke the astgen executable to produce AST JSON for JavaScript/TypeScript workflows. In current upstream development, users should expect language-specific directories and prefixed release tags in the monorepo rather than all work happening in the archived standalone repository.

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

The interesting package-manager detail is the repository transition: a Homebrew package points at a historical standalone tool, while upstream now collects multiple AST generators under one monorepo with per-language releases and checksums.

That makes source provenance and release-tag selection more important than the package's public popularity.

### 时间线

- 2026: joernio/astgen was archived and its README directed users to joernio/astgen-monorepo.
- 2026: astgen-monorepo README documents independently versioned language generators and prefixed release tags.

### Related projects

- Joern is the code analysis platform named by the monorepo README as the consumer context for the AST generators.
- javascript-astgen in the monorepo is the closest successor to the standalone JS/TS astgen package.
- Other monorepo siblings include abap-astgen, dotnet-astgen, go-astgen, ruby-astgen, rust-astgen, and swift-astgen.

### 来源

- <https://github.com/joernio/astgen#readme>
- <https://github.com/joernio/astgen-monorepo#readme>
- source_facts.package-manager


## 安全说明

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


## 来源

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