Your first analysis: understand an Electron app
Start with one question. Inspect a local app directory or ASAR file, then trace modules, imports, and IPC boundaries.
Version pins and source links updated 2026-11-18 (Beijing time). Tutorial examples have not been rerun.
01 / Choose a focused question
Choose a copy of an app you are authorized to analyze. Your target can be an extracted JavaScript / Electron app directory or an ASAR file. Use a real local path.
Start with a specific question, such as how the renderer calls a clipboard feature through IPC. A narrow question makes the evidence easier to check than a request to recreate the entire app.
These are usage examples, not analysis performed on your app. The command path is a placeholder. This website does not receive or upload application files.
02 / Get static analysis results
Replace the example with the absolute path to your target. Keep quotes around paths containing spaces. Static analysis reads files without executing the JavaScript app being analyzed.
This workflow needs neither Hopper nor Ghidra. Results may include modules, imports, source maps, routing clues, and Electron preload, IPC, and native extension relationships.
npx -y rea-agents@5.0.0 analyze-javascript-application "/absolute/path/to/app" --json03 / Follow clues to evidence
After locating a relevant module, string, or IPC channel, trace both ends of the call. Ask your client for file locations and related code, as well as an explanation.
Dynamically generated paths, missing resources, or unresolved calls may remain unknown. Failure to observe a behavior does not prove that it does not exist.
- Observation: which module, symbol, or channel was actually read?
- Inference: how do those clues support the explanation?
- Unknown: which files, runtime evidence, or verification steps are still missing?
Use REA to analyze the local Electron app I specify.
First explain its module and IPC structure, then trace the clipboard feature call path.
Give file locations and evidence. Separate observations, inferences, and unknowns.04 / Design your own implementation
Organize the evidence into inputs, outputs, and error cases. Then ask your coding client to implement similar functionality in your project and test its behavior. REA provides analysis; the coding client edits and tests code.
Decompiled output or a module graph is not the original source code. It also does not guarantee that your implementation is equivalent to the app. Keep unverified behavior clearly marked.
Sources & version
This guide independently summarizes official documentation. It has not been verified against your environment or app. The official main branch may be ahead of the npm release.
Official JavaScript / Electron quick startOfficial application analysis guideOfficial examples and evidence guidance