PHPackages                             hhvm/hhast-inspect - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. hhvm/hhast-inspect

AbandonedArchivedProject[Utility &amp; Helpers](/categories/utility)

hhvm/hhast-inspect
==================

Tool for interactively exploring the AST of Hack programs

v1.0.1(5y ago)2351.9k↓86.7%5MITHack

Since Oct 23Pushed 3y ago10 watchersCompare

[ Source](https://github.com/hhvm/hhast-inspect)[ Packagist](https://packagist.org/packages/hhvm/hhast-inspect)[ RSS](/packages/hhvm-hhast-inspect/feed)WikiDiscussions main Synced yesterday

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

HHAST-Inspect
=============

[](#hhast-inspect)

HHAST-Inspect is a tool to generate an interactive view of a [Hack](https://hacklang.org) program's concrete syntax tree, built using [HHAST](https://github.com/hhvm/hhast/). It was previously included with HHAST, and is primarily used as a developer tool when working with HHAST, such as when working on linters or migrations (a.k.a. codemods).

Installation
------------

[](#installation)

1. Clone this repository: git clone
2. Install dependencies: `cd hhast-inspect; composer install`

Usage
-----

[](#usage)

1. Run `bin/hhast-inspect /path/to/source/file`; this will produce an HTML file and show the path
2. Open the output file in a web browser. On most systems, passing `--open` to `hhast-inspect` will make it open the file automatically in your default web web browser
3. Click on Hack source code to select the syntax tre node, and to show information on the node and its' ancestors
4. Click on one of the ancestors to highlight the ancestor - the original node remains highlighted in a different color

Example
-------

[](#example)

```
% bin/hhast-inspect src/InspectorCLI.hack --open
/var/folders/9v/sc1xb84516v_0rv47v0ygm340000gn/T/hhast-inspect-667b4af71f8ce431718c64e2991d49ac.html

```

[![A new HHAST-inspected generated web page](.readme-files/new-window.png)](.readme-files/new-window.png)[![A single selected node](.readme-files/selected-node.png)](.readme-files/selected-node.png)[![A selected ancestor, highlighting the original node](.readme-files/selected-ancestor.png)](.readme-files/selected-ancestor.png)

License
-------

[](#license)

HHAST-Inspect is MIT-licensed.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~94 days

Total

2

Last Release

1984d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/66d33e29918fd8cc713997dbbe03cb86e2aefbdc6736637641cdffed2f22accb?d=identicon)[fredemmott](/maintainers/fredemmott)

![](https://www.gravatar.com/avatar/edb9740dd92d9f9082a010f71b5a5e65b6b5c42be7290bd754ef28cc54372c3f?d=identicon)[facebook](/maintainers/facebook)

---

Top Contributors

[![fredemmott](https://avatars.githubusercontent.com/u/360927?v=4)](https://github.com/fredemmott "fredemmott (7 commits)")[![alexeyt](https://avatars.githubusercontent.com/u/727402?v=4)](https://github.com/alexeyt "alexeyt (2 commits)")[![lexidor](https://avatars.githubusercontent.com/u/31805625?v=4)](https://github.com/lexidor "lexidor (2 commits)")[![jjergus](https://avatars.githubusercontent.com/u/2483917?v=4)](https://github.com/jjergus "jjergus (1 commits)")

### Embed Badge

![Health badge](/badges/hhvm-hhast-inspect/health.svg)

```
[![Health](https://phpackages.com/badges/hhvm-hhast-inspect/health.svg)](https://phpackages.com/packages/hhvm-hhast-inspect)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
