AST Types X

JSON →
library 1.18.0 ·javascript
verified May 27, 2026

ast-types-x is a JavaScript library providing an efficient, modular, and Esprima-compatible implementation of the Mozilla Parser API's abstract syntax tree (AST) type hierarchy. It serves as a foundational tool for working with JavaScript ASTs, enabling robust static analysis, code transformation, and code generation. The current stable version is 1.18.0, released in August 2024, indicating active maintenance and feature development, such as recent additions for `PrivateIdentifier` and `decorators`. Key differentiators include its comprehensive understanding of the AST type system, facilitating advanced node iteration and traversal mechanisms, and its builder API for programmatically constructing AST nodes. It aims to offer complete control over AST manipulation through primitives like `getFieldNames` and `getFieldValue`, alongside a powerful `visit` abstraction for tree traversal, making it suitable for complex code analysis and manipulation tasks. It ships with TypeScript types, enhancing developer experience in TypeScript projects.

total hits 28
actors 8 distinct systems
last hit 21h ago human
ByteDance
5
Amazonbot
4
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
Humans
3

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada · VN