{
  "repo": "tidbcloud/tidb-cloud-zero-demos",
  "binary": "tidb-cloud-zero-browser",
  "binary_path": "tidb-cloud-zero-browser-main/index.html",
  "dependencies": {
    "HTTP GET /": {
      "infrastructure": {
        "browser": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "RENDER STATIC DEMO",
              "trigger": "Load the TiDB Cloud Zero browser demo",
              "conditions": [
                "The static site is served"
              ],
              "implementation": "tidb-cloud-zero-browser-main/index.html"
            }
          ]
        }
      },
      "services": [
        {
          "name": "netlify-function-sql",
          "protocol": "https",
          "target_interface": "HTTP POST /api/sql",
          "purpose": "Proxy SQL execution requests"
        },
        {
          "name": "netlify-function-instance",
          "protocol": "https",
          "target_interface": "HTTP GET /api/instance",
          "purpose": "Fetch instance metadata for the demo"
        }
      ]
    },
    "HTTP POST /api/sql": {
      "infrastructure": {
        "netlify_function_runtime": {
          "conditions": [
            "The browser demo submits SQL requests."
          ],
          "operations": [
            {
              "operation": "Proxy SQL execution",
              "trigger": "The browser calls /api/sql.",
              "conditions": [
                "The demo is configured with a reachable backend function."
              ],
              "implementation": "tidb-cloud-zero-browser-main/api/sql.js and netlify/functions/sql.mjs"
            }
          ]
        }
      },
      "services": []
    },
    "HTTP GET /api/instance": {
      "infrastructure": {
        "netlify_function_runtime": {
          "conditions": [
            "The browser demo requests instance metadata."
          ],
          "operations": [
            {
              "operation": "Fetch instance metadata",
              "trigger": "The browser calls /api/instance.",
              "conditions": [
                "The demo is configured with a reachable backend function."
              ],
              "implementation": "tidb-cloud-zero-browser-main/api/instance.js and netlify/functions/instance.mjs"
            }
          ]
        }
      },
      "services": []
    }
  }
}
