Skip to content

A modern and elegant dashboard for network traffic visualization and analysis.

50.0 KB
Raw Blame
{
  "type": "excalidraw",
  "version": 2,
  "source": "https://excalidraw.com",
  "elements": [
    {
      "type": "text",
      "version": 1,
      "versionNonce": 1,
      "isDeleted": false,
      "id": "main-title",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 400,
      "y": 30,
      "strokeColor": "#1e1e1e",
      "backgroundColor": "transparent",
      "width": 400,
      "height": 32,
      "seed": 1,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 24,
      "fontFamily": 2,
      "text": "🔄 Neko Master 数据流详解",
      "textAlign": "center",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "🔄 Neko Master 数据流详解",
      "lineHeight": 1.3,
      "baseline": 26
    },
    {
      "type": "rectangle",
      "version": 1,
      "versionNonce": 2,
      "isDeleted": false,
      "id": "clash-flow-box",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 50,
      "y": 80,
      "strokeColor": "#1565c0",
      "backgroundColor": "#e3f2fd",
      "width": 550,
      "height": 280,
      "seed": 2,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 3 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 3,
      "isDeleted": false,
      "id": "clash-flow-title",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 70,
      "y": 95,
      "strokeColor": "#0d47a1",
      "backgroundColor": "transparent",
      "width": 220,
      "height": 24,
      "seed": 3,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 16,
      "fontFamily": 2,
      "text": "🔵 1. Clash 数据采集流程",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "🔵 1. Clash 数据采集流程",
      "lineHeight": 1.5,
      "baseline": 19
    },
    {
      "type": "rectangle",
      "version": 1,
      "versionNonce": 4,
      "isDeleted": false,
      "id": "clash-gateway",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 70,
      "y": 130,
      "strokeColor": "#1565c0",
      "backgroundColor": "#ffffff",
      "width": 120,
      "height": 50,
      "seed": 4,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 3 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 5,
      "isDeleted": false,
      "id": "clash-gateway-text",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 85,
      "y": 145,
      "strokeColor": "#0d47a1",
      "backgroundColor": "transparent",
      "width": 90,
      "height": 20,
      "seed": 5,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 13,
      "fontFamily": 2,
      "text": "Clash Gateway",
      "textAlign": "center",
      "verticalAlign": "middle",
      "containerId": "clash-gateway",
      "originalText": "Clash Gateway",
      "lineHeight": 1.4,
      "baseline": 15
    },
    {
      "type": "arrow",
      "version": 1,
      "versionNonce": 6,
      "isDeleted": false,
      "id": "clash-arrow1",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 130,
      "y": 180,
      "strokeColor": "#1565c0",
      "backgroundColor": "transparent",
      "width": 0,
      "height": 30,
      "seed": 6,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 2 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "startBinding": null,
      "endBinding": null,
      "lastCommittedPoint": null,
      "startArrowhead": null,
      "endArrowhead": "arrow",
      "points": [
        [0, 0],
        [0, 30]
      ]
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 7,
      "isDeleted": false,
      "id": "clash-ws-label",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 140,
      "y": 185,
      "strokeColor": "#1565c0",
      "backgroundColor": "transparent",
      "width": 140,
      "height": 28,
      "seed": 7,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 10,
      "fontFamily": 2,
      "text": "WebSocket 推送\n(每秒/每连接更新)",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "WebSocket 推送\n(每秒/每连接更新)",
      "lineHeight": 1.4,
      "baseline": 24
    },
    {
      "type": "rectangle",
      "version": 1,
      "versionNonce": 8,
      "isDeleted": false,
      "id": "clash-collector",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 70,
      "y": 210,
      "strokeColor": "#d84315",
      "backgroundColor": "#ffffff",
      "width": 140,
      "height": 130,
      "seed": 8,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 3 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 9,
      "isDeleted": false,
      "id": "clash-collector-title",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 80,
      "y": 220,
      "strokeColor": "#bf360c",
      "backgroundColor": "transparent",
      "width": 120,
      "height": 18,
      "seed": 9,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 13,
      "fontFamily": 2,
      "text": "ClashCollector",
      "textAlign": "center",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "ClashCollector",
      "lineHeight": 1.4,
      "baseline": 13
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 10,
      "isDeleted": false,
      "id": "clash-collector-steps",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 80,
      "y": 245,
      "strokeColor": "#d84315",
      "backgroundColor": "transparent",
      "width": 120,
      "height": 84,
      "seed": 10,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 10,
      "fontFamily": 2,
      "text": "1. 流量追踪\n2. 批量缓冲(30s)\n3. GeoIP 查询\n4. 数据写入\n5. 触发广播",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "1. 流量追踪\n2. 批量缓冲(30s)\n3. GeoIP 查询\n4. 数据写入\n5. 触发广播",
      "lineHeight": 1.4,
      "baseline": 80
    },
    {
      "type": "arrow",
      "version": 1,
      "versionNonce": 11,
      "isDeleted": false,
      "id": "clash-arrow2",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "dashed",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 210,
      "y": 240,
      "strokeColor": "#2e7d32",
      "backgroundColor": "transparent",
      "width": 60,
      "height": 0,
      "seed": 11,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 2 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "startBinding": null,
      "endBinding": null,
      "lastCommittedPoint": null,
      "startArrowhead": null,
      "endArrowhead": "arrow",
      "points": [
        [0, 0],
        [60, 0]
      ]
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 12,
      "isDeleted": false,
      "id": "sqlite-label1",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 220,
      "y": 220,
      "strokeColor": "#1565c0",
      "backgroundColor": "transparent",
      "width": 50,
      "height": 14,
      "seed": 12,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 10,
      "fontFamily": 2,
      "text": "→ SQLite",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "→ SQLite",
      "lineHeight": 1.4,
      "baseline": 10
    },
    {
      "type": "arrow",
      "version": 1,
      "versionNonce": 13,
      "isDeleted": false,
      "id": "clash-arrow3",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "dashed",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 210,
      "y": 270,
      "strokeColor": "#d84315",
      "backgroundColor": "transparent",
      "width": 60,
      "height": 0,
      "seed": 13,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 2 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "startBinding": null,
      "endBinding": null,
      "lastCommittedPoint": null,
      "startArrowhead": null,
      "endArrowhead": "arrow",
      "points": [
        [0, 0],
        [60, 0]
      ]
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 14,
      "isDeleted": false,
      "id": "clickhouse-label1",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 220,
      "y": 250,
      "strokeColor": "#d84315",
      "backgroundColor": "transparent",
      "width": 100,
      "height": 14,
      "seed": 14,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 10,
      "fontFamily": 2,
      "text": "→ ClickHouse (可选)",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "→ ClickHouse (可选)",
      "lineHeight": 1.4,
      "baseline": 10
    },
    {
      "type": "arrow",
      "version": 1,
      "versionNonce": 15,
      "isDeleted": false,
      "id": "clash-arrow4",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "dashed",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 210,
      "y": 300,
      "strokeColor": "#d84315",
      "backgroundColor": "transparent",
      "width": 60,
      "height": 0,
      "seed": 15,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 2 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "startBinding": null,
      "endBinding": null,
      "lastCommittedPoint": null,
      "startArrowhead": null,
      "endArrowhead": "arrow",
      "points": [
        [0, 0],
        [60, 0]
      ]
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 16,
      "isDeleted": false,
      "id": "realtime-label1",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 220,
      "y": 280,
      "strokeColor": "#d84315",
      "backgroundColor": "transparent",
      "width": 100,
      "height": 14,
      "seed": 16,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 10,
      "fontFamily": 2,
      "text": "→ RealtimeStore",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "→ RealtimeStore",
      "lineHeight": 1.4,
      "baseline": 10
    },
    {
      "type": "arrow",
      "version": 1,
      "versionNonce": 17,
      "isDeleted": false,
      "id": "clash-arrow5",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 140,
      "y": 340,
      "strokeColor": "#2e7d32",
      "backgroundColor": "transparent",
      "width": 0,
      "height": 40,
      "seed": 17,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 2 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "startBinding": null,
      "endBinding": null,
      "lastCommittedPoint": null,
      "startArrowhead": null,
      "endArrowhead": "arrow",
      "points": [
        [0, 0],
        [0, 40]
      ]
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 18,
      "isDeleted": false,
      "id": "broadcast-label",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 150,
      "y": 350,
      "strokeColor": "#2e7d32",
      "backgroundColor": "transparent",
      "width": 180,
      "height": 14,
      "seed": 18,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 10,
      "fontFamily": 2,
      "text": "WebSocketServer.broadcastStats()",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "WebSocketServer.broadcastStats()",
      "lineHeight": 1.4,
      "baseline": 10
    },
    {
      "type": "rectangle",
      "version": 1,
      "versionNonce": 19,
      "isDeleted": false,
      "id": "surge-flow-box",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 630,
      "y": 80,
      "strokeColor": "#6a1b9a",
      "backgroundColor": "#f3e5f5",
      "width": 550,
      "height": 280,
      "seed": 19,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 3 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 20,
      "isDeleted": false,
      "id": "surge-flow-title",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 650,
      "y": 95,
      "strokeColor": "#4a148c",
      "backgroundColor": "transparent",
      "width": 220,
      "height": 24,
      "seed": 20,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 16,
      "fontFamily": 2,
      "text": "🟣 2. Surge 数据采集流程",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "🟣 2. Surge 数据采集流程",
      "lineHeight": 1.5,
      "baseline": 19
    },
    {
      "type": "rectangle",
      "version": 1,
      "versionNonce": 21,
      "isDeleted": false,
      "id": "surge-gateway",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 650,
      "y": 130,
      "strokeColor": "#6a1b9a",
      "backgroundColor": "#ffffff",
      "width": 120,
      "height": 50,
      "seed": 21,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 3 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 22,
      "isDeleted": false,
      "id": "surge-gateway-text",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 665,
      "y": 145,
      "strokeColor": "#4a148c",
      "backgroundColor": "transparent",
      "width": 90,
      "height": 20,
      "seed": 22,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 13,
      "fontFamily": 2,
      "text": "Surge Gateway",
      "textAlign": "center",
      "verticalAlign": "middle",
      "containerId": "surge-gateway",
      "originalText": "Surge Gateway",
      "lineHeight": 1.4,
      "baseline": 15
    },
    {
      "type": "arrow",
      "version": 1,
      "versionNonce": 23,
      "isDeleted": false,
      "id": "surge-arrow1",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 710,
      "y": 180,
      "strokeColor": "#6a1b9a",
      "backgroundColor": "transparent",
      "width": 0,
      "height": 30,
      "seed": 23,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 2 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "startBinding": null,
      "endBinding": null,
      "lastCommittedPoint": null,
      "startArrowhead": null,
      "endArrowhead": "arrow",
      "points": [
        [0, 0],
        [0, 30]
      ]
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 24,
      "isDeleted": false,
      "id": "surge-http-label",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 720,
      "y": 185,
      "strokeColor": "#6a1b9a",
      "backgroundColor": "transparent",
      "width": 140,
      "height": 28,
      "seed": 24,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 10,
      "fontFamily": 2,
      "text": "HTTP 轮询 (2s间隔)\nGET /v1/requests/recent",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "HTTP 轮询 (2s间隔)\nGET /v1/requests/recent",
      "lineHeight": 1.4,
      "baseline": 24
    },
    {
      "type": "rectangle",
      "version": 1,
      "versionNonce": 25,
      "isDeleted": false,
      "id": "surge-collector",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 650,
      "y": 210,
      "strokeColor": "#d84315",
      "backgroundColor": "#ffffff",
      "width": 140,
      "height": 130,
      "seed": 25,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 3 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 26,
      "isDeleted": false,
      "id": "surge-collector-title",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 660,
      "y": 220,
      "strokeColor": "#bf360c",
      "backgroundColor": "transparent",
      "width": 120,
      "height": 18,
      "seed": 26,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 13,
      "fontFamily": 2,
      "text": "SurgeCollector",
      "textAlign": "center",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "SurgeCollector",
      "lineHeight": 1.4,
      "baseline": 13
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 27,
      "isDeleted": false,
      "id": "surge-collector-steps",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 660,
      "y": 245,
      "strokeColor": "#d84315",
      "backgroundColor": "transparent",
      "width": 120,
      "height": 84,
      "seed": 27,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 10,
      "fontFamily": 2,
      "text": "1. 请求处理\n2. 流量追踪\n3. 策略缓存同步\n4. 批量缓冲\n5. 数据写入+广播",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "1. 请求处理\n2. 流量追踪\n3. 策略缓存同步\n4. 批量缓冲\n5. 数据写入+广播",
      "lineHeight": 1.4,
      "baseline": 80
    },
    {
      "type": "arrow",
      "version": 1,
      "versionNonce": 28,
      "isDeleted": false,
      "id": "surge-arrow2",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "dashed",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 790,
      "y": 240,
      "strokeColor": "#2e7d32",
      "backgroundColor": "transparent",
      "width": 60,
      "height": 0,
      "seed": 28,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 2 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "startBinding": null,
      "endBinding": null,
      "lastCommittedPoint": null,
      "startArrowhead": null,
      "endArrowhead": "arrow",
      "points": [
        [0, 0],
        [60, 0]
      ]
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 29,
      "isDeleted": false,
      "id": "sqlite-label2",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 800,
      "y": 220,
      "strokeColor": "#1565c0",
      "backgroundColor": "transparent",
      "width": 50,
      "height": 14,
      "seed": 29,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 10,
      "fontFamily": 2,
      "text": "→ SQLite",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "→ SQLite",
      "lineHeight": 1.4,
      "baseline": 10
    },
    {
      "type": "arrow",
      "version": 1,
      "versionNonce": 30,
      "isDeleted": false,
      "id": "surge-arrow3",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "dashed",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 790,
      "y": 270,
      "strokeColor": "#d84315",
      "backgroundColor": "transparent",
      "width": 60,
      "height": 0,
      "seed": 30,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 2 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "startBinding": null,
      "endBinding": null,
      "lastCommittedPoint": null,
      "startArrowhead": null,
      "endArrowhead": "arrow",
      "points": [
        [0, 0],
        [60, 0]
      ]
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 31,
      "isDeleted": false,
      "id": "clickhouse-label2",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 800,
      "y": 250,
      "strokeColor": "#d84315",
      "backgroundColor": "transparent",
      "width": 100,
      "height": 14,
      "seed": 31,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 10,
      "fontFamily": 2,
      "text": "→ ClickHouse (可选)",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "→ ClickHouse (可选)",
      "lineHeight": 1.4,
      "baseline": 10
    },
    {
      "type": "arrow",
      "version": 1,
      "versionNonce": 32,
      "isDeleted": false,
      "id": "surge-arrow4",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "dashed",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 790,
      "y": 300,
      "strokeColor": "#d84315",
      "backgroundColor": "transparent",
      "width": 60,
      "height": 0,
      "seed": 32,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 2 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "startBinding": null,
      "endBinding": null,
      "lastCommittedPoint": null,
      "startArrowhead": null,
      "endArrowhead": "arrow",
      "points": [
        [0, 0],
        [60, 0]
      ]
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 33,
      "isDeleted": false,
      "id": "realtime-label2",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 800,
      "y": 280,
      "strokeColor": "#d84315",
      "backgroundColor": "transparent",
      "width": 100,
      "height": 14,
      "seed": 33,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 10,
      "fontFamily": 2,
      "text": "→ RealtimeStore",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "→ RealtimeStore",
      "lineHeight": 1.4,
      "baseline": 10
    },
    {
      "type": "rectangle",
      "version": 1,
      "versionNonce": 34,
      "isDeleted": false,
      "id": "triple-write-box",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 50,
      "y": 390,
      "strokeColor": "#e65100",
      "backgroundColor": "#fff3e0",
      "width": 1130,
      "height": 180,
      "seed": 34,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 3 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 35,
      "isDeleted": false,
      "id": "triple-write-title",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 70,
      "y": 405,
      "strokeColor": "#e65100",
      "backgroundColor": "transparent",
      "width": 160,
      "height": 24,
      "seed": 35,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 16,
      "fontFamily": 2,
      "text": "📝 三写模式 (Triple Write)",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "📝 三写模式 (Triple Write)",
      "lineHeight": 1.5,
      "baseline": 19
    },
    {
      "type": "rectangle",
      "version": 1,
      "versionNonce": 36,
      "isDeleted": false,
      "id": "sqlite-write-box",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 70,
      "y": 440,
      "strokeColor": "#1565c0",
      "backgroundColor": "#ffffff",
      "width": 330,
      "height": 110,
      "seed": 36,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 3 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 37,
      "isDeleted": false,
      "id": "sqlite-write-title",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 90,
      "y": 450,
      "strokeColor": "#0d47a1",
      "backgroundColor": "transparent",
      "width": 140,
      "height": 20,
      "seed": 37,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 14,
      "fontFamily": 2,
      "text": "→ SQLite (始终写入)",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "→ SQLite (始终写入)",
      "lineHeight": 1.4,
      "baseline": 15
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 38,
      "isDeleted": false,
      "id": "sqlite-write-desc",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 90,
      "y": 480,
      "strokeColor": "#1565c0",
      "backgroundColor": "transparent",
      "width": 290,
      "height": 56,
      "seed": 38,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 11,
      "fontFamily": 2,
      "text": "• 持久化存储\n• 配置/元数据/统计历史\n• CH 不可用时自动回退\n• WAL Mode 并发优化",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "• 持久化存储\n• 配置/元数据/统计历史\n• CH 不可用时自动回退\n• WAL Mode 并发优化",
      "lineHeight": 1.4,
      "baseline": 52
    },
    {
      "type": "rectangle",
      "version": 1,
      "versionNonce": 39,
      "isDeleted": false,
      "id": "clickhouse-write-box",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 420,
      "y": 440,
      "strokeColor": "#d84315",
      "backgroundColor": "#ffffff",
      "width": 360,
      "height": 110,
      "seed": 39,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 3 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 40,
      "isDeleted": false,
      "id": "clickhouse-write-title",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 440,
      "y": 450,
      "strokeColor": "#bf360c",
      "backgroundColor": "transparent",
      "width": 180,
      "height": 20,
      "seed": 40,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 14,
      "fontFamily": 2,
      "text": "→ ClickHouse (可选双写)",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "→ ClickHouse (可选双写)",
      "lineHeight": 1.4,
      "baseline": 15
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 41,
      "isDeleted": false,
      "id": "clickhouse-write-desc",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 440,
      "y": 480,
      "strokeColor": "#d84315",
      "backgroundColor": "transparent",
      "width": 320,
      "height": 56,
      "seed": 41,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 11,
      "fontFamily": 2,
      "text": "• CH_WRITE_ENABLED=1 时启用\n• Buffer 表 → SummingMergeTree\n• 连续失败自动回退 SQLite\n• 大时间窗口聚合提速 10x+",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "• CH_WRITE_ENABLED=1 时启用\n• Buffer 表 → SummingMergeTree\n• 连续失败自动回退 SQLite\n• 大时间窗口聚合提速 10x+",
      "lineHeight": 1.4,
      "baseline": 52
    },
    {
      "type": "rectangle",
      "version": 1,
      "versionNonce": 42,
      "isDeleted": false,
      "id": "realtime-write-box",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 800,
      "y": 440,
      "strokeColor": "#d84315",
      "backgroundColor": "#ffffff",
      "width": 350,
      "height": 110,
      "seed": 42,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 3 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 43,
      "isDeleted": false,
      "id": "realtime-write-title",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 820,
      "y": 450,
      "strokeColor": "#bf360c",
      "backgroundColor": "transparent",
      "width": 200,
      "height": 20,
      "seed": 43,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 14,
      "fontFamily": 2,
      "text": "→ RealtimeStore (内存)",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "→ RealtimeStore (内存)",
      "lineHeight": 1.4,
      "baseline": 15
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 44,
      "isDeleted": false,
      "id": "realtime-write-desc",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 820,
      "y": 480,
      "strokeColor": "#d84315",
      "backgroundColor": "transparent",
      "width": 310,
      "height": 56,
      "seed": 44,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 11,
      "fontFamily": 2,
      "text": "• 实时数据展示\n• 低延迟推送 (<100ms)\n• 补偿 Buffer 延迟\n• merge* 方法合并 DB+增量",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "• 实时数据展示\n• 低延迟推送 (<100ms)\n• 补偿 Buffer 延迟\n• merge* 方法合并 DB+增量",
      "lineHeight": 1.4,
      "baseline": 52
    },
    {
      "type": "rectangle",
      "version": 1,
      "versionNonce": 45,
      "isDeleted": false,
      "id": "read-routing-box",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 50,
      "y": 590,
      "strokeColor": "#2e7d32",
      "backgroundColor": "#f1f8e9",
      "width": 550,
      "height": 200,
      "seed": 45,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 3 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 46,
      "isDeleted": false,
      "id": "read-routing-title",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 70,
      "y": 605,
      "strokeColor": "#1b5e20",
      "backgroundColor": "transparent",
      "width": 280,
      "height": 24,
      "seed": 46,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 16,
      "fontFamily": 2,
      "text": "📖 读取路由 (STATS_QUERY_SOURCE)",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "📖 读取路由 (STATS_QUERY_SOURCE)",
      "lineHeight": 1.5,
      "baseline": 19
    },
    {
      "type": "rectangle",
      "version": 1,
      "versionNonce": 47,
      "isDeleted": false,
      "id": "route-sqlite",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 70,
      "y": 640,
      "strokeColor": "#1565c0",
      "backgroundColor": "#e3f2fd",
      "width": 160,
      "height": 50,
      "seed": 47,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 3 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 48,
      "isDeleted": false,
      "id": "route-sqlite-text",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 80,
      "y": 650,
      "strokeColor": "#0d47a1",
      "backgroundColor": "transparent",
      "width": 140,
      "height": 30,
      "seed": 48,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 11,
      "fontFamily": 2,
      "text": "sqlite\n全部读 SQLite (默认)",
      "textAlign": "center",
      "verticalAlign": "middle",
      "containerId": "route-sqlite",
      "originalText": "sqlite\n全部读 SQLite (默认)",
      "lineHeight": 1.4,
      "baseline": 26
    },
    {
      "type": "rectangle",
      "version": 1,
      "versionNonce": 49,
      "isDeleted": false,
      "id": "route-ch",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 250,
      "y": 640,
      "strokeColor": "#d84315",
      "backgroundColor": "#ffccbc",
      "width": 160,
      "height": 50,
      "seed": 49,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 3 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 50,
      "isDeleted": false,
      "id": "route-ch-text",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 260,
      "y": 650,
      "strokeColor": "#bf360c",
      "backgroundColor": "transparent",
      "width": 140,
      "height": 30,
      "seed": 50,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 11,
      "fontFamily": 2,
      "text": "clickhouse\n全部读 ClickHouse",
      "textAlign": "center",
      "verticalAlign": "middle",
      "containerId": "route-ch",
      "originalText": "clickhouse\n全部读 ClickHouse",
      "lineHeight": 1.4,
      "baseline": 26
    },
    {
      "type": "rectangle",
      "version": 1,
      "versionNonce": 51,
      "isDeleted": false,
      "id": "route-auto",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 430,
      "y": 640,
      "strokeColor": "#2e7d32",
      "backgroundColor": "#c8e6c9",
      "width": 150,
      "height": 80,
      "seed": 51,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 3 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 52,
      "isDeleted": false,
      "id": "route-auto-text",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 440,
      "y": 650,
      "strokeColor": "#1b5e20",
      "backgroundColor": "transparent",
      "width": 130,
      "height": 60,
      "seed": 52,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 11,
      "fontFamily": 2,
      "text": "auto (智能路由)\n• 近期 → ClickHouse\n• 历史 → SQLite\n• 无效范围 → SQLite",
      "textAlign": "center",
      "verticalAlign": "middle",
      "containerId": "route-auto",
      "originalText": "auto (智能路由)\n• 近期 → ClickHouse\n• 历史 → SQLite\n• 无效范围 → SQLite",
      "lineHeight": 1.3,
      "baseline": 56
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 53,
      "isDeleted": false,
      "id": "delta-merge-title",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 70,
      "y": 735,
      "strokeColor": "#d84315",
      "backgroundColor": "transparent",
      "width": 200,
      "height": 18,
      "seed": 53,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 13,
      "fontFamily": 2,
      "text": "增量合并模式 (Delta Merge)",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "增量合并模式 (Delta Merge)",
      "lineHeight": 1.4,
      "baseline": 13
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 54,
      "isDeleted": false,
      "id": "delta-merge-desc",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 70,
      "y": 760,
      "strokeColor": "#424242",
      "backgroundColor": "transparent",
      "width": 480,
      "height": 14,
      "seed": 54,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 10,
      "fontFamily": 2,
      "text": "客户端请求 → DB 基础数据 + RealtimeStore.merge*() 内存增量 → 合并后数据 (如: 100MB + 5MB 最近30秒)",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "客户端请求 → DB 基础数据 + RealtimeStore.merge*() 内存增量 → 合并后数据 (如: 100MB + 5MB 最近30秒)",
      "lineHeight": 1.4,
      "baseline": 10
    },
    {
      "type": "rectangle",
      "version": 1,
      "versionNonce": 55,
      "isDeleted": false,
      "id": "frontend-flow-box",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 630,
      "y": 590,
      "strokeColor": "#1976d2",
      "backgroundColor": "#e3f2fd",
      "width": 550,
      "height": 200,
      "seed": 55,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 3 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 56,
      "isDeleted": false,
      "id": "frontend-flow-title",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 650,
      "y": 605,
      "strokeColor": "#0d47a1",
      "backgroundColor": "transparent",
      "width": 220,
      "height": 24,
      "seed": 56,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 16,
      "fontFamily": 2,
      "text": "🌐 前端数据获取流程",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "🌐 前端数据获取流程",
      "lineHeight": 1.5,
      "baseline": 19
    },
    {
      "type": "rectangle",
      "version": 1,
      "versionNonce": 57,
      "isDeleted": false,
      "id": "react-query-flow",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 650,
      "y": 640,
      "strokeColor": "#ff6f00",
      "backgroundColor": "#ffe0b2",
      "width": 240,
      "height": 130,
      "seed": 57,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 3 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 58,
      "isDeleted": false,
      "id": "react-query-title",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 670,
      "y": 650,
      "strokeColor": "#e65100",
      "backgroundColor": "transparent",
      "width": 180,
      "height": 18,
      "seed": 58,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 13,
      "fontFamily": 2,
      "text": "方式1: React Query (HTTP)",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "方式1: React Query (HTTP)",
      "lineHeight": 1.4,
      "baseline": 13
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 59,
      "isDeleted": false,
      "id": "react-query-desc",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 670,
      "y": 675,
      "strokeColor": "#e65100",
      "backgroundColor": "transparent",
      "width": 200,
      "height": 84,
      "seed": 59,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 10,
      "fontFamily": 2,
      "text": "useTrafficTrend()\n      ↓\napi.getTrafficTrendAggregated()\n      ↓\nCollector API (REST)\n      ↓\nStatsService → DB Query",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "useTrafficTrend()\n      ↓\napi.getTrafficTrendAggregated()\n      ↓\nCollector API (REST)\n      ↓\nStatsService → DB Query",
      "lineHeight": 1.4,
      "baseline": 80
    },
    {
      "type": "rectangle",
      "version": 1,
      "versionNonce": 60,
      "isDeleted": false,
      "id": "websocket-flow",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 910,
      "y": 640,
      "strokeColor": "#2e7d32",
      "backgroundColor": "#c8e6c9",
      "width": 240,
      "height": 130,
      "seed": 60,
      "groupIds": [],
      "frameId": null,
      "roundness": { "type": 3 },
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 61,
      "isDeleted": false,
      "id": "websocket-title",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 930,
      "y": 650,
      "strokeColor": "#1b5e20",
      "backgroundColor": "transparent",
      "width": 180,
      "height": 18,
      "seed": 61,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 13,
      "fontFamily": 2,
      "text": "方式2: WebSocket Hook",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "方式2: WebSocket Hook",
      "lineHeight": 1.4,
      "baseline": 13
    },
    {
      "type": "text",
      "version": 1,
      "versionNonce": 62,
      "isDeleted": false,
      "id": "websocket-desc",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "angle": 0,
      "x": 930,
      "y": 675,
      "strokeColor": "#1b5e20",
      "backgroundColor": "transparent",
      "width": 200,
      "height": 84,
      "seed": 62,
      "groupIds": [],
      "frameId": null,
      "roundness": null,
      "boundElements": [],
      "updated": 1,
      "link": null,
      "locked": false,
      "fontSize": 10,
      "fontFamily": 2,
      "text": "useStatsWebSocket()\n      ↓\nWebSocket 连接\n      ↓\n• subscribe 订阅消息\n• stats/pong 接收推送\n• 自动重连机制",
      "textAlign": "left",
      "verticalAlign": "top",
      "containerId": null,
      "originalText": "useStatsWebSocket()\n      ↓\nWebSocket 连接\n      ↓\n• subscribe 订阅消息\n• stats/pong 接收推送\n• 自动重连机制",
      "lineHeight": 1.4,
      "baseline": 80
    }
  ],
  "appState": {
    "gridSize": null,
    "viewBackgroundColor": "#ffffff"
  },
  "files": {}
}