# cybercyphers/cypher-md architecture

> Architecture diagram of the GitHub repository cybercyphers/cypher-md, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/cybercyphers/cypher-md
- Repository: https://github.com/cybercyphers/cypher-md

## Overview

Cypher-Md is a WhatsApp bot whose menu advertises general commands, AI, encryption, news, media extraction, automations, and owner/system controls. The likely user workflow is sending a command and receiving a bot response, but the unsampled entry-point source prevents verifying command dispatch or most plugin wiring. The graph preserves documented feature areas and sampled storage and helper layers; dashed, uncited links mark unverified wiring.

Main entry points: [`src/cyphers.js`](https://github.com/cybercyphers/cypher-md/blob/main/src/cyphers.js) (Bot entry point), [`SQL/cypher_130.js`](https://github.com/cybercyphers/cypher-md/blob/main/SQL/cypher_130.js) (SQLite data helpers), [`libraries/configFunctions.js`](https://github.com/cybercyphers/cypher-md/blob/main/libraries/configFunctions.js) (Configuration helpers), [`plugins/menu.js`](https://github.com/cybercyphers/cypher-md/blob/main/plugins/menu.js) (Command menu)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Bot runtime"]
  node_entry["Bot entry point<br/>[cyphers.js]"]
end

subgraph group_features["Bot features"]
  node_menu["Command menu<br/>[menu.js]"]
  node_general["General commands<br/>[ping.js]"]
  node_ai["AI commands<br/>[cypherAi.js]"]
  node_encryption["Encryption commands<br/>[encs.js]"]
  node_news["News command<br/>[news.js]"]
  node_status["Status automation<br/>[AutoStatusView.js]"]
  node_recording["Recording automation<br/>[Autorecording.js]"]
  node_typing["Typing automation<br/>[Autotyping.js]"]
  node_access["User access controls<br/>[allowed_U.js]"]
  node_recovery["Deleted-message recovery<br/>[del_recovery.js]"]
  node_obfuscation["Code obfuscation<br/>[ob.js]"]
end

subgraph group_data["Persistence and security"]
  node_dbapi["SQLite data helpers<br/>[cypher_130.js]"]
  node_chatdb[("Chat and media stores")]
end

subgraph group_support["Internal support"]
  node_workerlib["Obfuscation engine<br/>[brainiac.m.js]"]
  node_config["Configuration helpers<br/>[configFunctions.js]"]
  node_help["Command help<br/>[helper_function.js]"]
  node_healing["Runtime self-healing<br/>[self_heal.js]"]
  node_integrity["Database integrity<br/>[integrity_check.js]"]
end

node_user(("WhatsApp user"))

node_user -.->|"sends commands"| node_entry
node_entry -.->|"dispatches commands"| node_menu
node_entry -.->|"dispatches commands"| node_general
node_entry -.->|"dispatches commands"| node_ai
node_entry -.->|"dispatches commands"| node_encryption
node_entry -.->|"dispatches commands"| node_news
node_entry -.->|"dispatches commands"| node_status
node_entry -.->|"dispatches commands"| node_recording
node_entry -.->|"dispatches commands"| node_typing
node_entry -.->|"dispatches commands"| node_access
node_entry -.->|"dispatches commands"| node_recovery
node_entry -.->|"dispatches commands"| node_obfuscation
node_obfuscation -->|"invokes"| node_workerlib
node_entry -.->|"uses data helpers"| node_dbapi
node_dbapi -.->|"reads and writes"| node_chatdb
node_dbapi -->|"imports database handle"| node_healing
node_dbapi -->|"imports checker"| node_integrity
node_encryption -->|"uses encryption store"| node_dbapi
node_menu -->|"reads settings"| node_config
node_recording -->|"reads settings"| node_config
node_help -->|"reads prefix"| node_config
node_entry -.->|"uses settings"| node_config

click node_entry "https://github.com/cybercyphers/cypher-md/blob/main/src/cyphers.js"
click node_menu "https://github.com/cybercyphers/cypher-md/blob/main/plugins/menu.js"
click node_general "https://github.com/cybercyphers/cypher-md/blob/main/plugins/ping.js"
click node_ai "https://github.com/cybercyphers/cypher-md/blob/main/plugins/cypherAi.js"
click node_encryption "https://github.com/cybercyphers/cypher-md/blob/main/libraries/encs.js"
click node_news "https://github.com/cybercyphers/cypher-md/blob/main/plugins/news.js"
click node_status "https://github.com/cybercyphers/cypher-md/blob/main/plugins/AutoStatusView.js"
click node_recording "https://github.com/cybercyphers/cypher-md/blob/main/plugins/Autorecording.js"
click node_typing "https://github.com/cybercyphers/cypher-md/blob/main/plugins/Autotyping.js"
click node_access "https://github.com/cybercyphers/cypher-md/blob/main/plugins/allowed_U.js"
click node_recovery "https://github.com/cybercyphers/cypher-md/blob/main/plugins/del_recovery.js"
click node_obfuscation "https://github.com/cybercyphers/cypher-md/blob/main/Workers/ob.js"
click node_workerlib "https://github.com/cybercyphers/cypher-md/blob/main/libraries/brainiac.m.js"
click node_dbapi "https://github.com/cybercyphers/cypher-md/blob/main/SQL/cypher_130.js"
click node_chatdb "https://github.com/cybercyphers/cypher-md/blob/main/Databases/cypher_legal_user_info.db"
click node_config "https://github.com/cybercyphers/cypher-md/blob/main/libraries/configFunctions.js"
click node_help "https://github.com/cybercyphers/cypher-md/blob/main/libraries/helper_function.js"
click node_healing "https://github.com/cybercyphers/cypher-md/blob/main/Defence/self_heal.js"
click node_integrity "https://github.com/cybercyphers/cypher-md/blob/main/SQL/integrity_check.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_user toneBlue
class node_menu,node_general,node_ai,node_encryption,node_news,node_status,node_recording,node_typing,node_access,node_recovery,node_obfuscation toneAmber
class node_dbapi,node_chatdb toneMint
class node_workerlib,node_config,node_help,node_healing,node_integrity toneRose
```

## Components

### Bot runtime

- [Bot entry point](https://github.com/cybercyphers/cypher-md/blob/main/src/cyphers.js): `src/cyphers.js`

### Bot features

- [Command menu](https://github.com/cybercyphers/cypher-md/blob/main/plugins/menu.js): `plugins/menu.js`
- [General commands](https://github.com/cybercyphers/cypher-md/blob/main/plugins/ping.js): `plugins/ping.js`
- [AI commands](https://github.com/cybercyphers/cypher-md/blob/main/plugins/cypherAi.js): `plugins/cypherAi.js`
- [Encryption commands](https://github.com/cybercyphers/cypher-md/blob/main/libraries/encs.js): `libraries/encs.js`
- [News command](https://github.com/cybercyphers/cypher-md/blob/main/plugins/news.js): `plugins/news.js`
- [Status automation](https://github.com/cybercyphers/cypher-md/blob/main/plugins/AutoStatusView.js): `plugins/AutoStatusView.js`
- [Recording automation](https://github.com/cybercyphers/cypher-md/blob/main/plugins/Autorecording.js): `plugins/Autorecording.js`
- [Typing automation](https://github.com/cybercyphers/cypher-md/blob/main/plugins/Autotyping.js): `plugins/Autotyping.js`
- [User access controls](https://github.com/cybercyphers/cypher-md/blob/main/plugins/allowed_U.js): `plugins/allowed_U.js`
- [Deleted-message recovery](https://github.com/cybercyphers/cypher-md/blob/main/plugins/del_recovery.js): `plugins/del_recovery.js`
- [Code obfuscation](https://github.com/cybercyphers/cypher-md/blob/main/Workers/ob.js): `Workers/ob.js`

### Persistence and security

- [SQLite data helpers](https://github.com/cybercyphers/cypher-md/blob/main/SQL/cypher_130.js): `SQL/cypher_130.js`
- [Chat and media stores](https://github.com/cybercyphers/cypher-md/blob/main/Databases/cypher_legal_user_info.db): `Databases/cypher_legal_user_info.db`

### Internal support

- [Obfuscation engine](https://github.com/cybercyphers/cypher-md/blob/main/libraries/brainiac.m.js): `libraries/brainiac.m.js`
- [Configuration helpers](https://github.com/cybercyphers/cypher-md/blob/main/libraries/configFunctions.js): `libraries/configFunctions.js`
- [Command help](https://github.com/cybercyphers/cypher-md/blob/main/libraries/helper_function.js): `libraries/helper_function.js`
- [Runtime self-healing](https://github.com/cybercyphers/cypher-md/blob/main/Defence/self_heal.js): `Defence/self_heal.js`
- [Database integrity](https://github.com/cybercyphers/cypher-md/blob/main/SQL/integrity_check.js): `SQL/integrity_check.js`

### Other components

- **WhatsApp user**

## Connections

- WhatsApp user → Bot entry point: sends commands
- Bot entry point → Command menu: dispatches commands
- Bot entry point → General commands: dispatches commands
- Bot entry point → AI commands: dispatches commands
- Bot entry point → Encryption commands: dispatches commands
- Bot entry point → News command: dispatches commands
- Bot entry point → Status automation: dispatches commands
- Bot entry point → Recording automation: dispatches commands
- Bot entry point → Typing automation: dispatches commands
- Bot entry point → User access controls: dispatches commands
- Bot entry point → Deleted-message recovery: dispatches commands
- Bot entry point → Code obfuscation: dispatches commands
- Code obfuscation → Obfuscation engine: invokes (evidence: `Workers/ob.js`)
- Bot entry point → SQLite data helpers: uses data helpers
- SQLite data helpers → Chat and media stores: reads and writes
- SQLite data helpers → Runtime self-healing: imports database handle (evidence: `SQL/cypher_130.js`)
- SQLite data helpers → Database integrity: imports checker (evidence: `SQL/cypher_130.js`)
- Encryption commands → SQLite data helpers: uses encryption store (evidence: `libraries/encs.js`)
- Command menu → Configuration helpers: reads settings (evidence: `plugins/menu.js`)
- Recording automation → Configuration helpers: reads settings (evidence: `plugins/Autorecording.js`)
- Command help → Configuration helpers: reads prefix (evidence: `libraries/helper_function.js`)
- Bot entry point → Configuration helpers: uses settings
