benjamn/ast-types
Esprima-compatible implementation of the Mozilla JS Parser API observed · 2026-09-01
Health v2 · maintenance only
100/100
- Activity 100
- Release rhythm 100
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 4879
- days_rel: 3
- days_push: 2
- n_releases_24m: 2
Adoption not part of the score
1173 stars · 194 forks observed · 2026-09-01
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A TypeScript library providing an Esprima-compatible implementation of the Mozilla JS Parser API abstract syntax tree type hierarchy. It offers builders, type checking, and AST traversal utilities for constructing, inspecting, and manipulating JavaScript AST nodes.
Use cases
- build and validate JavaScript AST nodes programmatically
- traverse and enumerate fields of syntax tree nodes
- write codemods that transform JavaScript source
- type-check AST nodes against the Mozilla Parser API hierarchy
- build custom JavaScript linters or transpilers
- construct synthetic code structures for testing
When to choose
- you need a robust, well-typed AST type system for JavaScript tooling
- you are building code transformation or analysis tools like recast-based codemods
- you want Esprima/Mozilla Parser API compatibility with builders and traversal helpers
When to avoid
- you need to parse source code itself (use a parser like Esprima, Babel, or Acorn alongside it)
- you are working with non-JavaScript languages
- you need a high-level transformation framework rather than AST primitives
Facets
library · maturity stable
parser type-system developer-tools parsers programming-languages developer-tools web-development ast abstract-syntax-tree esprima mozilla-parser-api javascript typescript code-transformation type-checking nodejs
2 sources
- readme: https://github.com/benjamn/ast-types · fetched 2026-09-01 · 310dae190387
- registry_npm: https://registry.npmjs.org/ast-types · fetched 2026-08-29 · 33d364bf8f40
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| benjamn/ast-types | main | 100 |
For agents
markdown · JSON · MCP: product_card(name="benjamn/ast-types")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem