# skyrhrg/ircommdll architecture

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

- Interactive diagram: https://gitdiagram.com/skyrhrg/ircommdll
- Repository: https://github.com/skyrhrg/ircommdll

## Overview

This appears to be IRCommDLL, a Windows-oriented automation library combining Indian Railways/payment flows, browser-extension request handling, OTP retrieval, and external worker utilities. A likely user-to-result workflow is initiating a payment or authentication task, exchanging requests with a provider, and receiving a response or OTP; the excerpts do not establish one shared top-level orchestrator, so those capabilities are shown as separate branches. The source index and excerpts support only a subset of calls; unsampled integrations are omitted rather than inferred.

Main entry points: [`OtpConsoleTest/OtpService.cs`](https://github.com/skyrhrg/ircommdll/blob/main/OtpConsoleTest/OtpService.cs) (OTP retrieval), [`BrowserExtensionPostClient.cs`](https://github.com/skyrhrg/ircommdll/blob/main/BrowserExtensionPostClient.cs) (Extension POST client), [`CleanerClient.cs`](https://github.com/skyrhrg/ircommdll/blob/main/CleanerClient.cs) (Cleaner process client), [`APP_FRAMEWORK/fchr.cs`](https://github.com/skyrhrg/ircommdll/blob/main/APP_FRAMEWORK/fchr.cs) (FreeCharge flow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_payments["Payment flows"]
  node_freecharge["FreeCharge flow<br/>[fchr.cs]"]
  node_sbi["SBI UPI flow<br/>[sbiupi.cs]"]
  node_bhim["BHIM flow<br/>[bhim.cs]"]
  node_sbiui["SBI form flow<br/>[frmSBI.cs]"]
  node_jiopay["JioPay client<br/>[JioPayClient.cs]"]
end

subgraph group_auth["Authentication tools"]
  node_otp_runner["OTP runner<br/>[OtpRunner.cs]"]
  node_otp_service["OTP retrieval<br/>[OtpService.cs]"]
  node_otp_progress["OTP progress<br/>[OtpProgress.cs]"]
end

subgraph group_browser["Browser integration"]
  node_browser_client["Extension POST client"]
  node_browser_bridge["Extension bridge"]
  node_browser_response["POST response"]
end

subgraph group_runtime["Runtime utilities"]
  node_cleaner["Cleaner process client<br/>[CleanerClient.cs]"]
  node_cleaner_response["Cleaner response"]
  node_worker_paths["Worker path resolver"]
  node_core["Shared application core<br/>[Class30.cs]"]
  node_aes_gcm["AES-GCM encryption<br/>[AesGcm1.cs]"]
  node_bcrypt["Windows crypto API<br/>[BCrypt.cs]"]
  node_arrays["Byte utilities<br/>[Arrays.cs]"]
  node_freecharge_crypto["FreeCharge crypto"]
end

node_user(("Caller"))
node_paymentservice(("Payment providers"))
node_otp_sources(("OTP endpoints"))

node_user -.->|"requests OTP"| node_otp_runner
node_otp_runner -->|"runs retrieval"| node_otp_service
node_otp_service -->|"requests OTP"| node_otp_sources
node_otp_service -->|"reports progress"| node_otp_progress
node_user -.->|"submits request"| node_browser_client
node_browser_client -->|"starts bridge"| node_browser_bridge
node_browser_client -->|"uses response"| node_browser_response
node_browser_bridge -.->|"returns response"| node_browser_response
node_user -.->|"requests worker"| node_cleaner
node_cleaner -->|"parses output"| node_cleaner_response
node_sbi -->|"uses core"| node_core
node_jiopay -->|"uses core"| node_core
node_jiopay -->|"sends requests"| node_paymentservice
node_freecharge -->|"sends requests"| node_paymentservice
node_aes_gcm -->|"calls crypto API"| node_bcrypt
node_arrays -.->|"referenced by"| node_bcrypt
node_freecharge -.->|"uses encryption"| node_freecharge_crypto
node_cleaner -.->|"resolves worker"| node_worker_paths

click node_freecharge "https://github.com/skyrhrg/ircommdll/blob/main/APP_FRAMEWORK/fchr.cs"
click node_sbi "https://github.com/skyrhrg/ircommdll/blob/main/APP_FRAMEWORK/sbiupi.cs"
click node_bhim "https://github.com/skyrhrg/ircommdll/blob/main/APP_FRAMEWORK/bhim.cs"
click node_sbiui "https://github.com/skyrhrg/ircommdll/blob/main/APP_FRAMEWORK/frmSBI.cs"
click node_jiopay "https://github.com/skyrhrg/ircommdll/blob/main/JioPayClient.cs"
click node_otp_runner "https://github.com/skyrhrg/ircommdll/blob/main/OtpConsoleTest/OtpRunner.cs"
click node_otp_service "https://github.com/skyrhrg/ircommdll/blob/main/OtpConsoleTest/OtpService.cs"
click node_otp_progress "https://github.com/skyrhrg/ircommdll/blob/main/OtpConsoleTest/OtpProgress.cs"
click node_browser_client "https://github.com/skyrhrg/ircommdll/blob/main/BrowserExtensionPostClient.cs"
click node_browser_bridge "https://github.com/skyrhrg/ircommdll/blob/main/BrowserExtensionBridgeServer.cs"
click node_browser_response "https://github.com/skyrhrg/ircommdll/blob/main/BrowserPostResponse.cs"
click node_cleaner "https://github.com/skyrhrg/ircommdll/blob/main/CleanerClient.cs"
click node_cleaner_response "https://github.com/skyrhrg/ircommdll/blob/main/CleanerExeResponseModel.cs"
click node_worker_paths "https://github.com/skyrhrg/ircommdll/blob/main/CleanerWorkerPath.cs"
click node_core "https://github.com/skyrhrg/ircommdll/blob/main/Class30.cs"
click node_aes_gcm "https://github.com/skyrhrg/ircommdll/blob/main/NativeCSharpJWTToken/AesGcm1.cs"
click node_bcrypt "https://github.com/skyrhrg/ircommdll/blob/main/NativeCSharpJWTToken/BCrypt.cs"
click node_arrays "https://github.com/skyrhrg/ircommdll/blob/main/NativeCSharpJWTToken/Arrays.cs"
click node_freecharge_crypto "https://github.com/skyrhrg/ircommdll/blob/main/AesCbcHmacCrypto.cs"

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_freecharge,node_sbi,node_bhim,node_sbiui,node_jiopay toneBlue
class node_otp_runner,node_otp_service,node_otp_progress toneAmber
class node_browser_client,node_browser_bridge,node_browser_response toneMint
class node_cleaner,node_cleaner_response,node_worker_paths,node_core,node_aes_gcm,node_bcrypt,node_arrays,node_freecharge_crypto toneRose
class node_user,node_paymentservice,node_otp_sources toneIndigo
```

## Components

### Payment flows

- [FreeCharge flow](https://github.com/skyrhrg/ircommdll/blob/main/APP_FRAMEWORK/fchr.cs): `APP_FRAMEWORK/fchr.cs`
- [SBI UPI flow](https://github.com/skyrhrg/ircommdll/blob/main/APP_FRAMEWORK/sbiupi.cs): `APP_FRAMEWORK/sbiupi.cs`
- [BHIM flow](https://github.com/skyrhrg/ircommdll/blob/main/APP_FRAMEWORK/bhim.cs): `APP_FRAMEWORK/bhim.cs`
- [SBI form flow](https://github.com/skyrhrg/ircommdll/blob/main/APP_FRAMEWORK/frmSBI.cs): `APP_FRAMEWORK/frmSBI.cs`
- [JioPay client](https://github.com/skyrhrg/ircommdll/blob/main/JioPayClient.cs): `JioPayClient.cs`

### Authentication tools

- [OTP runner](https://github.com/skyrhrg/ircommdll/blob/main/OtpConsoleTest/OtpRunner.cs): `OtpConsoleTest/OtpRunner.cs`
- [OTP retrieval](https://github.com/skyrhrg/ircommdll/blob/main/OtpConsoleTest/OtpService.cs): `OtpConsoleTest/OtpService.cs`
- [OTP progress](https://github.com/skyrhrg/ircommdll/blob/main/OtpConsoleTest/OtpProgress.cs): `OtpConsoleTest/OtpProgress.cs`

### Browser integration

- [Extension POST client](https://github.com/skyrhrg/ircommdll/blob/main/BrowserExtensionPostClient.cs): `BrowserExtensionPostClient.cs`
- [Extension bridge](https://github.com/skyrhrg/ircommdll/blob/main/BrowserExtensionBridgeServer.cs): `BrowserExtensionBridgeServer.cs`
- [POST response](https://github.com/skyrhrg/ircommdll/blob/main/BrowserPostResponse.cs): `BrowserPostResponse.cs`

### Runtime utilities

- [Cleaner process client](https://github.com/skyrhrg/ircommdll/blob/main/CleanerClient.cs): `CleanerClient.cs`
- [Cleaner response](https://github.com/skyrhrg/ircommdll/blob/main/CleanerExeResponseModel.cs): `CleanerExeResponseModel.cs`
- [Worker path resolver](https://github.com/skyrhrg/ircommdll/blob/main/CleanerWorkerPath.cs): `CleanerWorkerPath.cs`
- [Shared application core](https://github.com/skyrhrg/ircommdll/blob/main/Class30.cs): `Class30.cs`
- [AES-GCM encryption](https://github.com/skyrhrg/ircommdll/blob/main/NativeCSharpJWTToken/AesGcm1.cs): `NativeCSharpJWTToken/AesGcm1.cs`
- [Windows crypto API](https://github.com/skyrhrg/ircommdll/blob/main/NativeCSharpJWTToken/BCrypt.cs): `NativeCSharpJWTToken/BCrypt.cs`
- [Byte utilities](https://github.com/skyrhrg/ircommdll/blob/main/NativeCSharpJWTToken/Arrays.cs): `NativeCSharpJWTToken/Arrays.cs`
- [FreeCharge crypto](https://github.com/skyrhrg/ircommdll/blob/main/AesCbcHmacCrypto.cs): `AesCbcHmacCrypto.cs`

### Other components

- **Caller**
- **Payment providers**
- **OTP endpoints**

## Connections

- Caller → OTP runner: requests OTP
- OTP runner → OTP retrieval: runs retrieval (evidence: `OtpConsoleTest/OtpRunner.cs`)
- OTP retrieval → OTP endpoints: requests OTP (evidence: `OtpConsoleTest/OtpService.cs`)
- OTP retrieval → OTP progress: reports progress (evidence: `OtpConsoleTest/OtpService.cs`)
- Caller → Extension POST client: submits request
- Extension POST client → Extension bridge: starts bridge (evidence: `BrowserExtensionPostClient.cs`)
- Extension POST client → POST response: uses response (evidence: `BrowserExtensionPostClient.cs`)
- Extension bridge → POST response: returns response (evidence: `BrowserExtensionBridgeServer.cs`)
- Caller → Cleaner process client: requests worker
- Cleaner process client → Cleaner response: parses output (evidence: `CleanerClient.cs`)
- SBI UPI flow → Shared application core: uses core (evidence: `APP_FRAMEWORK/sbiupi.cs`)
- JioPay client → Shared application core: uses core (evidence: `JioPayClient.cs`)
- JioPay client → Payment providers: sends requests (evidence: `JioPayClient.cs`)
- FreeCharge flow → Payment providers: sends requests (evidence: `APP_FRAMEWORK/fchr.cs`)
- AES-GCM encryption → Windows crypto API: calls crypto API (evidence: `NativeCSharpJWTToken/AesGcm1.cs`)
- Byte utilities → Windows crypto API: referenced by
- FreeCharge flow → FreeCharge crypto: uses encryption (evidence: `APP_FRAMEWORK/fchr.cs`)
- Cleaner process client → Worker path resolver: resolves worker
