{
  "schemaVersion": 1,
  "meta": {
    "name": "wand-scope-example",
    "filename": "wand-scope-example.c4",
    "createdAt": "2026-10-22T09:00:00.000Z",
    "modifiedAt": "2026-10-22T09:00:00.000Z",
    "description": "Example for the wand connection scope and for separate sets of diagrams. Open Context Overview (or the second context), right-click the canvas and use the wand."
  },
  "c4": {
    "meta": {
      "title": "Wand scope example"
    },
    "version": 2,
    "nodeTypes": {
      "Person": {
        "color": "#D45612",
        "bg": "#FFF4EC",
        "border": "#FFA468",
        "sel": "#F26B1F"
      },
      "External System": {
        "color": "#4F4839",
        "bg": "#F5F0E8",
        "border": "#C9BFAE",
        "sel": "#6F6757"
      },
      "Software System": {
        "color": "#1C5A50",
        "bg": "#ECF6F4",
        "border": "#7DC3B8",
        "sel": "#2E8C7E"
      },
      "Container": {
        "color": "#A8420C",
        "bg": "#FFE3CF",
        "border": "#FFC79E",
        "sel": "#F26B1F"
      },
      "Component": {
        "color": "#383224",
        "bg": "#FBF8F4",
        "border": "#E7DFD2",
        "sel": "#6F6757"
      },
      "Code": {
        "color": "#2A2620",
        "bg": "#F4F0EA",
        "border": "#DCD3C4",
        "sel": "#6F6757"
      }
    },
    "displayTypes": {
      "application": {
        "color": "#312e81",
        "bg": "#e0e7ff",
        "border": "#4338ca",
        "icon": "material-symbols:apps"
      },
      "frontend": {
        "color": "#155e75",
        "bg": "#cffafe",
        "border": "#0891b2",
        "icon": "material-symbols:web"
      },
      "backend": {
        "color": "#7c2d12",
        "bg": "#ffedd5",
        "border": "#c2410c",
        "icon": "material-symbols:dns"
      }
    },
    "nodes": {
      "shop": {
        "name": "Shop",
        "tags": {
          "type": "Software System"
        },
        "description": "The online shop."
      },
      "web": {
        "name": "Web App",
        "tags": {
          "type": "Container"
        },
        "description": "Storefront the customer uses.",
        "parent": "shop"
      },
      "api": {
        "name": "API",
        "tags": {
          "type": "Container"
        },
        "description": "Order and payment logic.",
        "parent": "shop"
      },
      "auth": {
        "name": "Auth",
        "tags": {
          "type": "Component"
        },
        "description": "Sign-in and sessions.",
        "parent": "api"
      },
      "customer": {
        "name": "Customer",
        "tags": {
          "type": "Person"
        },
        "description": "Buys things."
      },
      "payments": {
        "name": "Payments",
        "tags": {
          "type": "External System"
        },
        "description": "Card payments provider."
      },
      "erp": {
        "name": "Legacy ERP",
        "tags": {
          "type": "External System"
        },
        "description": "Old back office. Connected, but not wanted on every picture."
      },
      "audit": {
        "name": "Audit log",
        "tags": {
          "type": "External System"
        },
        "description": "Hand-placed on the context diagram; connects to nothing."
      },
      "billing": {
        "name": "Billing",
        "tags": {
          "type": "Software System"
        },
        "description": "A second system in the landscape."
      },
      "bill": {
        "name": "Bill engine",
        "tags": {
          "type": "Container"
        },
        "description": "Produces invoices.",
        "parent": "billing"
      }
    },
    "relationships": [
      {
        "from": "customer",
        "to": "web",
        "label": "shops with"
      },
      {
        "from": "api",
        "to": "payments",
        "label": "charges via"
      },
      {
        "from": "api",
        "to": "erp",
        "label": "syncs orders to"
      },
      {
        "from": "auth",
        "to": "erp",
        "label": "looks up staff in"
      },
      {
        "from": "bill",
        "to": "erp",
        "label": "posts invoices to"
      }
    ],
    "layers": {
      "context-overview": {
        "nodes": [],
        "groups": [],
        "label": "Context Overview",
        "diagramType": "context",
        "subject": "shop",
        "description": "Context for **Shop**. Starts empty: run the wand to gather what connects to Shop."
      },
      "context-second": {
        "nodes": [],
        "groups": [],
        "label": "Context for the finance team",
        "diagramType": "context",
        "subject": "shop",
        "description": "A second set of diagrams about **Shop**. Starts empty: place only the connecting elements this audience needs, then run the wand with *Only what is on the context diagram*. It gets its own container and component diagrams."
      }
    }
  },
  "c4Layout": {},
  "ui": {}
}