repowisemorluto/rea

Architecture of morluto/rea

morluto/rea is 8,423 source files holding 52,773 symbols across 9 modules, written mainly in TypeScript, JavaScript, Python. The largest module is src, with 4,604 files, and 7 files are entry points into the dependency graph.

How rea fits together

Input enters either through an agent's MCP connection or through the rea command in a terminal, and both use the same workflows. The src directory holds most of the code, 4604 files, including domain analysis code under src/domain/javascript and native analysis code under src/native. Parsers for binary formats live in src/native, such as src/native/elf/ElfNoteParser.ts for ELF notes and src/native/windows/WindowsShortcutParser.ts for Windows shortcut files. Native decompilation can use an existing Hopper, Ghidra, IDA or Kuna installation, while static JavaScript analysis needs no native engine. The tests directory holds 2465 files, and the bridge directory holds 47 files.

Largest modules

  • src: 4,604 files and 1,242,323 lines of code
  • tests: 2,465 files and 680,561 lines of code
  • scripts: 603 files and 104,356 lines of code
  • bridge: 47 files and 16,499 lines of code
  • website: 17 files and 1,151 lines of code
  • native: 6 files and 2,012 lines of code
  • root: 6 files and 718 lines of code
  • .github: 2 files and 99 lines of code

Languages

By file count: TypeScript 7,089 files, JavaScript 512 files, Python 57 files, Java 32 files, C 29 files, Swift 18 files.

Documentation

Repowise documents rea in 4,718 pages generated from the source, 21 of them written explanations of the repository and its modules. Module guides include:

  • src/contracts: Advertised Tool Catalog Projection
  • bridge: Analysis Tool Bridges
  • src/application: Application
  • src/browser: Browser
  • src/browser/history: Browser History and Execution Capture
  • src/cli: Command-Line Analysis Commands

More on rea: summary and FAQ, codebase overview, code health.

Related guide: Best dependency graph tools for monorepos