๐๏ธ Architecture Diagrams
System Architecture - ๅ จไฝๆงๆ
graph TB
subgraph "Human Layer"
Human[๐ค Developer]
Issue[๐ GitHub Issue]
end
subgraph "Automation Layer - GitHub"
Actions[โ๏ธ GitHub Actions<br/>sync-issues.yml]
Pages[๐ GitHub Pages<br/>Jekyll + Docs]
Project[๐ GitHub Project #6<br/>9 Issues Management]
end
subgraph "Data Layer - Supabase"
DB[(๐๏ธ PostgreSQL<br/>github_issues<br/>ai_responses<br/>ai_agent_state)]
Realtime[โก Realtime<br/>WebSocket Sync]
RLS[๐ RLS<br/>17 Policies]
end
subgraph "AI Layer - VS Code"
Bridge[๐ Python Bridge<br/>SupabaseCopilotBridge.py]
Copilot[๐ค VS Code Copilot<br/>AI Implementation]
pyautogui[๐ฑ๏ธ pyautogui<br/>Automation]
end
subgraph "AI OS Layer - noVNC"
Gateway[๐ฅ๏ธ noVNC Gateway<br/>AI Virtual Desktop]
VNC[๐บ VNC Server<br/>Remote Display]
Desktop[๐ป Linux Desktop<br/>VS Code + Terminal + Browser]
end
subgraph "Workflow Layer - n8n"
n8n[๐ n8n<br/>59 Workflows]
External[๐ External Services<br/>HuggingFace, Lambda, etc.]
end
Human -->|Create| Issue
Issue -->|Webhook| Actions
Actions -->|REST API| DB
DB -->|Subscribe| Realtime
Realtime -->|Notify| Bridge
Bridge -->|Inject Command| Copilot
Copilot -->|Response| Bridge
Bridge -->|Write Back| DB
Copilot -->|Control| pyautogui
pyautogui -->|Automate| Gateway
Gateway -->|VNC Protocol| VNC
VNC -->|Render| Desktop
DB -->|Trigger| n8n
n8n -->|Integrate| External
Pages -.->|Publish| Human
Project -.->|Track| Issue
RLS -.->|Secure| DB
style Human fill:#e1f5ff
style Issue fill:#fff3cd
style Actions fill:#d4edda
style DB fill:#f8d7da
style Realtime fill:#f8d7da
style Copilot fill:#d1ecf1
style Gateway fill:#e7e8ea
style n8n fill:#cce5ff
Data Flow - Issue ใใๅฎๆใพใง
sequenceDiagram
participant H as ๐ค Human
participant GH as GitHub
participant GA as GitHub Actions
participant SB as Supabase
participant RT as Realtime
participant BR as Python Bridge
participant CP as VS Code Copilot
participant NV as noVNC Gateway
H->>GH: Create Issue #10
GH->>GA: Trigger webhook (on: issues)
GA->>SB: POST /rest/v1/github_issues
SB->>RT: Broadcast INSERT event
RT->>BR: Notify new issue
BR->>CP: Inject to Chat
Note over CP: AI analyzes Issue
CP->>BR: Generate response
BR->>SB: POST /rest/v1/ai_responses
CP->>NV: Execute commands (pyautogui)
NV->>NV: Open VS Code, run tests, commit code
NV->>SB: Update agent_state
SB->>RT: Broadcast UPDATE
RT->>H: Show realtime progress
Note over H,NV: System running 24/7
noVNC Gateway Architecture - AI ็จ OS
graph TB
subgraph "Browser Layer"
Browser[๐ Web Browser<br/>Chrome, Firefox, etc.]
noVNCClient[๐ฑ noVNC Client<br/>JavaScript VNC Viewer]
end
subgraph "Gateway Layer"
Gateway[๐ช noVNC Gateway<br/>WebSocket โ VNC Bridge]
Auth[๐ Authentication<br/>Token / Session]
end
subgraph "VNC Server Layer"
VNCServer[๐บ VNC Server<br/>TightVNC / TigerVNC]
Xvfb[๐ผ๏ธ Xvfb<br/>Virtual Framebuffer]
end
subgraph "Desktop Environment"
DE[๐ฅ๏ธ Linux Desktop<br/>XFCE / LXDE]
VSCode[๐ป VS Code]
Terminal[โจ๏ธ Terminal]
BrowserApp[๐ Browser<br/>Chrome / Firefox]
end
subgraph "AI Control Layer"
pyauto[๐ pyautogui<br/>Mouse & Keyboard Control]
Bridge2[๐ Supabase Bridge<br/>Command Listener]
end
Browser -->|HTTPS/WSS| noVNCClient
noVNCClient -->|WebSocket| Gateway
Gateway -->|VNC Protocol| VNCServer
VNCServer -->|Display| Xvfb
Xvfb -->|Render| DE
DE --> VSCode
DE --> Terminal
DE --> BrowserApp
Bridge2 -->|Listen Realtime| Gateway
pyauto -->|Automate| DE
Auth -.->|Verify| Gateway
style Browser fill:#e1f5ff
style Gateway fill:#d4edda
style VNCServer fill:#fff3cd
style DE fill:#f8d7da
style pyauto fill:#d1ecf1
่ชฌๆ:
- Browser Layer: ไบบ้ใ่ฆใ็ป้ข๏ผใฉใใใใงใใขใฏใปในๅฏ่ฝ๏ผ
- Gateway Layer: WebSocket ใจ VNC ใฎๅคๆใป่ช่จผ
- VNC Server: ใชใขใผใใในใฏใใใใฎใตใผใใผ
- Desktop Environment: AI ใๆไฝใใๅฎ้ใฎใในใฏใใใ
- AI Control Layer: Supabase ใใใฎๆ็คบใๅใใฆ่ชๅๆไฝ
Evolution Timeline - VirtualOffice ใใ noVNC Gateway ใธ
timeline
title bpmchat.com ใใ AI Automation Platform ใธใฎ้ฒๅ
2013-2015 : VirtualOffice (ไบบ้็จ)
: Google Meet + ็ป้ขๅ
ฑๆ
: ใใใชไผ่ญฐใปใใฃใใ
2016-2020 : BPMS ็ตฑๅ
: ProcessMaker + GAS + Lambda
: SpreadSheet + JIRA
: RPA (UiPath)
2021-2023 : AI ๅฎ้จ
: ChatGPT + Copilot
: ๅฏพ่ฉฑ็้็บใฎ่่ฝ
: ็ตฑๅๅฐ็
2024-2025 : AUTOCREATE
: Supabase Realtime
: SupabaseCopilotBridge.py
: noVNC Gateway ็บ่ฆ ๐ก
2026 : AI Automation Platform
: GitHub Issue ้งๅ
: noVNC = AI ๅฐ็จ OS
: AI ใใชใขใผใใฏใผใซใผใซ
Tech Stack Overview
| Layer | Technology | Purpose |
|---|---|---|
| Frontend | GitHub Pages (Jekyll) | Documentation |
| Issue Tracking | GitHub Issues + Project #6 | Task Management |
| Pipeline | GitHub Actions | Automation |
| Database | Supabase PostgreSQL | Data Storage |
| Realtime | Supabase Realtime | WebSocket Sync |
| Security | Row Level Security (RLS) | Access Control |
| AI Interface | VS Code Copilot | AI Implementation |
| Bridge | Python (pyautogui) | Automation |
| AI OS | noVNC Gateway | Virtual Desktop |
| Workflow | n8n | External Integration |
| Visualization | dhtmlx, Mermaid | BPMN Diagrams |