# Install astgen with Homebrew

Generate AST in json format for JS/TS. Version 3.42.0 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install astgen
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:astgen
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/astgen>
- **Version:** 3.42.0
- **Source summary:** Generate AST in json format for JS/TS
- **Homepage:** <https://github.com/joernio/astgen>
- **Repository:** <https://github.com/joernio/astgen>
- **Upstream docs:** <https://github.com/joernio/astgen#readme>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/joernio/astgen/archive/refs/tags/v3.42.0.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- astgen (cli)
- astgen (alias)

## Dependencies

- node

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 3.42.0
- Local data: ok
- Upstream repository: https://github.com/joernio/astgen
- Upstream latest detected: v3.42.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** astgen
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [joern](https://www.automicvault.com/pkg/brew/joern/) - Popular package that depends on this formula.
- [ast-grep](https://www.automicvault.com/pkg/brew/ast-grep/) - Shares av.db curated category or tags: ast, cli, developer-tools.
- [cargo-llvm-lines](https://www.automicvault.com/pkg/brew/cargo-llvm-lines/) - Shares av.db curated category or tags: cli, code-analysis, developer-tools.
- [cargo-public-api](https://www.automicvault.com/pkg/brew/cargo-public-api/) - Shares av.db curated category or tags: cli, code-analysis, developer-tools.
- [castxml](https://www.automicvault.com/pkg/brew/castxml/) - Shares av.db curated category or tags: ast, cli, code-analysis, developer-tools.
- [clang-include-graph](https://www.automicvault.com/pkg/brew/clang-include-graph/) - Shares av.db curated category or tags: cli, code-analysis, developer-tools.
- [clang-uml](https://www.automicvault.com/pkg/brew/clang-uml/) - Shares av.db curated category or tags: cli, code-analysis, developer-tools.
- [cloc](https://www.automicvault.com/pkg/brew/cloc/) - Shares av.db curated category or tags: cli, code-analysis, developer-tools.
- [cppinsights](https://www.automicvault.com/pkg/brew/cppinsights/) - Shares av.db curated category or tags: cli, code-analysis, developer-tools.
- [generate-json-schema](https://www.automicvault.com/pkg/brew/generate-json-schema/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, generate, json.
- [json2ts](https://www.automicvault.com/pkg/brew/json2ts/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, developer, developer-tools, json.

## Combined YAML source

View the package source record on GitHub. [combined/astgen.yml](https://github.com/automic-vault/db/blob/main/combined/astgen.yml)


## Sources

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