MCPcopy Index your code
hub / github.com/T14Raptor/go-fAST

github.com/T14Raptor/go-fAST @v0.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.0 ↗ · + Follow
1,993 symbols 5,421 edges 62 files 252 documented · 13%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

go-fAST

go-fAST is a super-fast Golang library designed for parsing, transforming, and generating JavaScript Abstract Syntax Trees (ASTs). This library provides a simple and efficient way to work with JavaScript ASTs in Go, enabling developers to perform a variety of tasks including code analysis and (de)obfuscation.

Discord Banner2

Features

  • Parsing: Convert JavaScript code into its AST representation.
  • Transforming: Apply transformations to JavaScript ASTs to modify code structures.
  • Generating: Generate JavaScript code from ASTs.

Installation

To use go-fAST in your Go project, you need to install it using go get:

go get github.com/t14raptor/go-fast

Docs

Documentation

Credits

We'd like to extend our heartfelt thanks to the following individuals and projects for their invaluable contributions:

  • @JustTalDevelops: For providing exceptional assistance with code generation edge cases and pretty printing.
  • @steakenthusiast: For the creative and fitting name for the project.
  • goja: For their parsing code that was instrumental in our implementation.
  • swc: For their robust and efficient visiting API.

Your support and contributions have greatly enhanced the development of this project. Thank you!

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 1,468
Function 345
Struct 135
TypeAlias 40
Interface 5

Languages

Go100%

Modules by API surface

ast/union.go425 symbols
ast/visit.go386 symbols
parser/parser_test.go112 symbols
ast/clone.go96 symbols
parser/alloc.go92 symbols
generator/generator.go88 symbols
ast/expr.go87 symbols
ast/stmt.go69 symbols
ast/operator.go51 symbols
parser/expression.go50 symbols
ast/ext/utils.go35 symbols
parser/statement.go33 symbols

For agents

$ claude mcp add go-fAST \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page