Skip to content
Page cover
For the complete documentation index, see llms.txt. This page is also available as Markdown.

🎉Welcome to go-fAST

go-fAST is a high-performance JavaScript parsing and transformation toolkit written in Go. It allows you to parse JavaScript code into Abstract Syntax Trees (ASTs), analyze them, and transform them efficiently.

Think of it as a fast, lightweight alternative to Babel — with Go speed and simplicity.

GitHub Repository: https://github.com/T14Raptor/go-fAST


🚀 Key Features

  • Ultra-fast JavaScript parsing

  • AST manipulation support

  • Code generation from ASTs

  • Depth-first AST traversal

  • Visitor pattern implementation

  • Designed for performance and simplicity, on par with tools like SWC

  • Built-in scope tracking (use resolver.Resolve() for this). See resolver


⚠️ Important Differences

go-fAST is designed with performance and minimalism in mind. It avoids many features and abstractions common in heavyweight JavaScript tooling:

❌ Not Included:

  • No parent, sibling, or reference maps on nodes

  • No automated mutation helpers

This leads to:

  • Faster parse and traversal times

  • Easier reasoning about node transformations

  • Explicit and transparent AST control

Last updated