{
  "version": 2,
  "name": "E-Commerce Platform",
  "nodes": [
    {
      "id": "node-cQOUPXanaX",
      "type": "user",
      "data": {
        "name": "Customer",
        "description": "Web / Mobile / Partner"
      }
    },
    {
      "id": "node-CbwYqb7NfB",
      "type": "rectangle",
      "data": {
        "name": "API Gateway",
        "description": "Auth, rate-limiting, routing.",
        "detail": "file://detail.md"
      }
    },
    {
      "id": "node-3zFtHg6ENc",
      "type": "rectangle",
      "data": {
        "name": "Auth Service",
        "description": "JWT issuance + OAuth2 / OIDC.",
        "detail": "file://detail.md"
      }
    },
    {
      "id": "node-kwBY8YPmYM",
      "type": "rectangle",
      "data": {
        "name": "Product Catalog",
        "description": "SKUs, variants, pricing, full-text search.",
        "detail": "file://detail.md"
      }
    },
    {
      "id": "node-5F424NWbEu",
      "type": "rectangle",
      "data": {
        "name": "Cart Service",
        "description": "Add/remove items, apply coupons, checkout.",
        "detail": "file://detail.md"
      }
    },
    {
      "id": "node-yKrg9DV5fJ",
      "type": "rectangle",
      "data": {
        "name": "Order Service",
        "description": "pending → confirmed → shipped → delivered.",
        "detail": "file://detail.md"
      }
    },
    {
      "id": "node-mPqan8rFYN",
      "type": "rectangle",
      "data": {
        "name": "Payment Service",
        "description": "Stripe + PayPal gateway integration.",
        "detail": "file://detail.md"
      }
    },
    {
      "id": "node-fkptXw7uvs",
      "type": "rectangle",
      "data": {
        "name": "Notification Service",
        "description": "Email + SMS + push via AWS SES / SNS.",
        "detail": "file://detail.md"
      }
    },
    {
      "id": "node-5SDiw3Wz6s",
      "type": "database",
      "data": {
        "name": "PostgreSQL",
        "description": "Orders, users, products — primary OLTP store"
      }
    },
    {
      "id": "node-XwygzfKPZ5",
      "type": "html",
      "data": {
        "name": "Platform Health",
        "html": "file://view.html"
      }
    }
  ],
  "connectors": [
    {
      "id": "conn-4XKU3GcGPF",
      "source": "node-cQOUPXanaX",
      "target": "node-CbwYqb7NfB",
      "method": "POST",
      "label": "REST API"
    },
    {
      "id": "conn-OxNUxp7qB3",
      "source": "node-CbwYqb7NfB",
      "target": "node-3zFtHg6ENc",
      "method": "POST",
      "label": "POST /auth"
    },
    {
      "id": "conn-7HlJF6KVHx",
      "source": "node-CbwYqb7NfB",
      "target": "node-kwBY8YPmYM",
      "method": "GET",
      "label": "GET /products"
    },
    {
      "id": "conn-ORfUTiooia",
      "source": "node-CbwYqb7NfB",
      "target": "node-5F424NWbEu",
      "method": "POST",
      "label": "POST /cart"
    },
    {
      "id": "conn-EABXtQv89M",
      "source": "node-5F424NWbEu",
      "target": "node-yKrg9DV5fJ",
      "eventName": "cart.checkout",
      "label": "cart.checkout"
    },
    {
      "id": "conn-kjyg3RDDvu",
      "source": "node-yKrg9DV5fJ",
      "target": "node-mPqan8rFYN",
      "eventName": "order.created",
      "label": "order.created"
    },
    {
      "id": "conn-wqFq0shXO5",
      "source": "node-mPqan8rFYN",
      "target": "node-fkptXw7uvs",
      "eventName": "payment.captured",
      "label": "payment.captured"
    },
    {
      "id": "conn-8ftFXZvD4r",
      "source": "node-yKrg9DV5fJ",
      "target": "node-5SDiw3Wz6s",
      "method": "POST",
      "label": "read/write"
    },
    {
      "id": "conn-VTfjsOckF2",
      "source": "node-mPqan8rFYN",
      "target": "node-5SDiw3Wz6s",
      "method": "POST",
      "label": "read/write"
    }
  ]
}
