{
  "schema_version": 2,
  "diagram_type": "workflow",
  "meta": {
    "title": "Cạnh tranh đẩy JavaScript tiến lên",
    "quality_profile": "showcase",
    "legend": {"mode": "hidden"},
    "views": [
      {"id": "push", "label": "Áp lực xuôi", "focus": ["challenger", "urgency", "adopt", "users"], "note": "Kẻ thách thức làm trước, bên dẫn đầu thấy cấp bách và làm theo, người dùng nhận tính năng mà không phải đổi công cụ."},
      {"id": "pull", "label": "Áp lực ngược", "focus": ["ecosystem", "challenger"], "note": "Hệ sinh thái npm quá lớn: Deno, Bun, workerd đều phải chạy được gói npm."}
    ]
  },
  "lanes": [
    {"id": "new", "label": "Kẻ thách thức"},
    {"id": "old", "label": "Bên dẫn đầu"},
    {"id": "user", "label": "Người dùng"}
  ],
  "mainPath": ["challenger", "urgency", "adopt", "users"],
  "nodes": [
    {"id": "challenger", "lane": "new", "col": 0, "type": "frontend", "label": "Ra mắt ý tưởng mới", "sublabel": "Deno, Bun, Yarn, pnpm", "width": 180},
    {"id": "urgency", "lane": "old", "col": 1, "type": "backend", "label": "Thấy cấp bách", "sublabel": "Node, npm", "width": 160},
    {"id": "adopt", "lane": "old", "col": 2, "type": "backend", "label": "Đưa ý tưởng vào", "sublabel": "fetch, permission, TS", "width": 170},
    {"id": "users", "lane": "user", "col": 3, "type": "external", "label": "Dùng luôn", "sublabel": "không phải đổi công cụ", "width": 170},
    {"id": "ecosystem", "lane": "old", "col": 3, "type": "database", "label": "Kho gói npm", "sublabel": "hơn 10 năm phụ thuộc", "width": 170}
  ],
  "edges": [
    {"id": "e1", "from": "challenger", "to": "urgency", "label": "làm trước", "variant": "emphasis"},
    {"id": "e2", "from": "urgency", "to": "adopt", "variant": "emphasis"},
    {"id": "e3", "from": "adopt", "to": "users", "variant": "emphasis"},
    {"id": "e4", "from": "ecosystem", "to": "challenger", "label": "phải tương thích", "variant": "dashed", "role": "return"}
  ]
}
