repowisermyndharis/openwa

Architecture of rmyndharis/openwa

rmyndharis/openwa is 1,052 source files holding 5,941 symbols across 6 modules, written mainly in TypeScript, Java, Go. The largest module is src, with 560 files, and 330 files are entry points into the dependency graph.

How openwa fits together

Requests enter through the HTTP server in src, the largest module, where src/modules/session holds the logic for managing WhatsApp sessions. The src/engine/adapters directory contains baileys.adapter.ts and whatsapp-web-js.adapter.ts, which connect the gateway to the two supported WhatsApp clients. The dashboard directory holds the React management interface, where dashboard/src/main.tsx starts the app and dashboard/src/App.tsx defines its main component. The sdk directory contains client libraries for Java, JavaScript and Python, each with its own manifest such as sdk/python/pyproject.toml. Database, storage and cache backends are selected through configuration rather than code changes, and media is returned inline to API and webhook consumers rather than stored automatically.

Largest modules

  • src: 560 files and 73,024 lines of code
  • sdk: 294 files and 16,171 lines of code
  • dashboard: 108 files and 24,680 lines of code
  • docs: 35 files and 18,623 lines of code
  • test: 16 files and 1,913 lines of code
  • root: 15 files and 12,864 lines of code
  • scripts: 14 files and 1,326 lines of code
  • .github: 10 files and 1,410 lines of code

Languages

By file count: TypeScript 689 files, Java 158 files, Go 38 files, PHP 34 files, Python 23 files, JavaScript 10 files.

Documentation

Repowise documents openwa in 1,322 pages generated from the source.

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

Related guide: Best dependency graph tools for monorepos