Skip to content

Commit 5dded74

Browse files
committed
docs: replace ASCII architecture diagram with Mermaid
1 parent e4eabe6 commit 5dded74

1 file changed

Lines changed: 31 additions & 29 deletions

File tree

README.md

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -17,35 +17,37 @@ Matchbook is a decentralized exchange infrastructure that provides:
1717

1818
## Architecture
1919

20-
```
21-
┌─────────────────────────────────────────────────────────────────────────┐
22-
│ Clients │
23-
│ (Web Apps, Trading Bots, SDKs) │
24-
└─────────────────────────────────────────────────────────────────────────┘
25-
26-
┌───────────────┼───────────────┐
27-
│ │ │
28-
▼ ▼ ▼
29-
┌───────────┐ ┌───────────┐ ┌───────────┐
30-
│ REST API │ │ WebSocket │ │ Direct │
31-
│ :8080 │ │ :8081 │ │ On-chain │
32-
└─────┬─────┘ └─────┬─────┘ └─────┬─────┘
33-
│ │ │
34-
└───────────────┼───────────────┘
35-
36-
┌─────────────┴─────────────┐
37-
│ │
38-
▼ ▼
39-
┌───────────────┐ ┌─────────────────┐
40-
│ Indexer │ │ Solana Program │
41-
│ (Geyser) │◄────────│ (On-chain) │
42-
└───────┬───────┘ └─────────────────┘
43-
44-
45-
┌───────────────┐
46-
│ Database │
47-
│ (TimescaleDB)│
48-
└───────────────┘
20+
```mermaid
21+
flowchart TB
22+
subgraph Clients["Clients"]
23+
C1[Web Apps]
24+
C2[Trading Bots]
25+
C3[SDKs]
26+
end
27+
28+
subgraph API["API Layer"]
29+
REST["REST API<br/>:8080"]
30+
WS["WebSocket<br/>:8081"]
31+
Direct["Direct<br/>On-chain"]
32+
end
33+
34+
subgraph Backend["Backend Services"]
35+
Indexer["Indexer<br/>(Geyser)"]
36+
Program["Solana Program<br/>(On-chain)"]
37+
DB["Database<br/>(TimescaleDB)"]
38+
end
39+
40+
Clients --> REST
41+
Clients --> WS
42+
Clients --> Direct
43+
44+
REST --> Indexer
45+
REST --> Program
46+
WS --> Indexer
47+
Direct --> Program
48+
49+
Program --> Indexer
50+
Indexer --> DB
4951
```
5052

5153
## Quick Start

0 commit comments

Comments
 (0)