graph TD
subgraph Local [Local Environment - User Machine]
Client["Client Application"]
style Client fill:#d946ef,stroke:#fff,stroke-width:2px,color:#fff
subgraph MiniGate [MiniGate Service]
MG_SQL["SQL Proxy :11438"]
MG_LLM["LLM Proxy :11434"]
end
LocalDaemon["Hardware Daemon"]
LocalModel["Local LLM Runtime"]
end
subgraph Tunnel [Secure Tunnel]
%% The Invisible Link
Link1(("SD-WAN Tunnel"))
style Link1 fill:#4ade80,color:#000,stroke:#fff
end
subgraph Remote [Remote Infrastructure - Quantum Gate Core]
QG["Quantum Gate"]
style QG fill:#3b82f6,stroke:#fff,stroke-width:4px,color:#fff
QG_Auth["Auth and Secrets"]
QG_DSN["DSN Router"]
QG_NLP["Internal NLP Engine"]
end
subgraph Backend [Backend Resources]
DB[("Postgres DB")]
style DB fill:#1e293b,stroke:#4ade80,stroke-width:2px
subgraph ComputeGrid [Compute Grid]
PublicAPI["Public APIs"]
PrivatePool["Load Balanced Pool"]
end
end
%% Connections
Client -- "Postgres Wire" --> MG_SQL
Client -- "REST / GRPC" --> MG_LLM
MG_SQL <===> Link1
MG_LLM <===> Link1
Link1 <===> QG
QG -. "Interrogation" .-> LocalDaemon
LocalDaemon -. "Control" .-> LocalModel
QG_DSN -- "Route" --> LocalModel
QG_DSN -- "Route" --> QG_NLP
QG_DSN -- "Route" --> ComputeGrid
QG -- "Native Wire Protocol" --> DB
%% Styling
linkStyle 2,3,4 stroke-width:3px,fill:none,stroke:limegreen;