Skip to content

Commit ff3bc90

Browse files
committed
Replace image with Mermaid diagram (fixes typo, easier to maintain)
1 parent 4ff3821 commit ff3bc90

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

README.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,45 @@ AIBridge is a Go library that provides a centralized governance layer for AI pro
1717

1818
## Architecture
1919

20-
![AIBridge Architecture](docs/architecture.png)
20+
```mermaid
21+
graph TB
22+
subgraph clients["AI Clients"]
23+
C1["Claude/ChatGPT/etc."]
24+
end
25+
26+
subgraph bridge["AIBridge (RequestBridge)"]
27+
Router["HTTP Router"]
28+
Providers["Provider Layer<br/>(OpenAI, Anthropic, Bedrock)"]
29+
Interceptor["Interceptor Layer"]
30+
MCP["MCP Server Proxy Manager<br/>(MCP Tools)"]
31+
Recorder["Recorder<br/>(Usage Tracking)"]
32+
end
33+
34+
subgraph upstream["Upstream Services"]
35+
APIs["AI APIs<br/>(OpenAI, Anthropic, AWS Bedrock)"]
36+
end
37+
38+
subgraph external["External Services"]
39+
MCPServers["MCP Servers<br/>(External Tools)"]
40+
DB[("Database<br/>(Token/Prompt/Tool Usage)")]
41+
end
42+
43+
C1 -->|Requests| Router
44+
Router --> Providers
45+
Providers --> Interceptor
46+
Interceptor -->|Tool Injection| MCP
47+
MCP -.->|Tool Calls| MCPServers
48+
Interceptor -->|Requests| APIs
49+
APIs -->|Responses| Interceptor
50+
Interceptor -->|Usage Data| Recorder
51+
Recorder -->|Record| DB
52+
Interceptor -->|Responses| C1
53+
54+
style bridge fill:#e1f5ff
55+
style clients fill:#fff4e1
56+
style upstream fill:#f0f0f0
57+
style external fill:#e8f5e9
58+
```
2159

2260
### Core Components
2361

docs/architecture.png

-1.47 MB
Binary file not shown.

0 commit comments

Comments
 (0)