google/jsir
Next-generation JavaScript analysis tooling
What it solves
JSIR provides a way to analyze and transform JavaScript code that balances high-level source representation with low-level dataflow analysis. This allows developers to perform complex tasks like decompiling bytecode back into readable JavaScript or removing obfuscation from code.
How it works
It uses an MLIR-based (Multi-Level Intermediate Representation) high-level intermediate representation. This design uses MLIR regions to model control flow structures, ensuring the representation is high-level enough to be converted back to an Abstract Syntax Tree (AST) for source-to-source transformation, yet low-level enough to support technical analyses like constant propagation and taint analysis.
Who it’s for
Security researchers and developers focused on code analysis, decompilation, and deobfuscation of JavaScript.
Highlights
- Lossless Conversion: Supports converting code back to source without losing information.
- MLIR Integration: Leverages the MLIR framework for advanced analysis.
- Deobfuscation Capabilities: Can be combined with LLMs (like Gemini) to clean up obfuscated code.
- Bytecode Decompilation: Capable of lifting Hermes bytecode back into JavaScript source code.
Related
- Project
jehna/humanifyhumanify is a tool that uses large language models to rename variables and functions in minified JavaScript, producing readable code while keeping the program's structure and behavior identical via AST-level rewriting. It works with multiple LLM providers, including free or local options, and ships as a single static binary for easy installation.
- Project
google/heirAn MLIR-based compiler toolchain for homomorphic encryption that allows developers to write encrypted computations and deploy them across multiple HE libraries and schemes.
- Project
NVIDIA/cuda-tileCUDA Tile IR is an MLIR‑based compiler infrastructure from NVIDIA that introduces a dedicated dialect for tile‑oriented CUDA kernels. It provides C++ and Python APIs, a binary bytecode format, and tools to translate MLIR to bytecode or cubin, enabling high‑performance kernels that target NVIDIA Tensor‑Core units. The project builds on LLVM/MLIR, aligns with CUDA Toolkit 13.1, and includes a conformance test suite. It is a genuine AI‑related compiler project, not a tutorial or list.
- Project
mljs/matrixA matrix manipulation and computation library for JavaScript that provides essential linear algebra operations and decompositions.
- Project
tensorflow/tfjsA hardware-accelerated JavaScript library for training and deploying machine learning models in the browser and Node.js.