{
  "schema_version": 2,
  "diagram_type": "workflow",
  "meta": {
    "title": "Deno: từ \"không npm\" tới chạy hệ sinh thái Node",
    "quality_profile": "showcase",
    "legend": {"mode": "hidden"},
    "views": [
      {"id": "walkback", "label": "Rút dần", "focus": ["y2018", "y2020", "back", "npm"], "note": "Mỗi bước thêm lại một thứ đã bỏ: file khai báo, lockfile, tên gói ngắn, rồi gói npm."},
      {"id": "bun", "label": "Tác động của Bun", "focus": ["bun", "npm"], "note": "Khoảng 6 tuần sau Bun 0.1, Deno công bố hỗ trợ npm. Deno nói do phản hồi người dùng; tác giả cho rằng Bun góp phần lớn."}
    ]
  },
  "lanes": [
    {"id": "deno", "label": "Deno"},
    {"id": "bun", "label": "Bun"}
  ],
  "mainPath": ["y2018", "y2020", "back", "npm", "v2", "cf"],
  "nodes": [
    {"id": "y2018", "lane": "deno", "col": 0, "type": "frontend", "label": "2018: ra mắt ý tưởng", "sublabel": "không npm, deps là URL", "width": 170},
    {"id": "y2020", "lane": "deno", "col": 1, "type": "backend", "label": "2020: Deno 1.0", "sublabel": "giữ nguyên cược", "width": 150},
    {"id": "back", "lane": "deno", "col": 2, "type": "backend", "label": "Thêm lại dần", "sublabel": "deps.ts, lock, import map", "width": 170},
    {"id": "npm", "lane": "deno", "col": 3, "type": "backend", "label": "2022: npm: specifier", "sublabel": "mục tiêu 80–90% gói npm", "width": 170},
    {"id": "v2", "lane": "deno", "col": 4, "type": "backend", "label": "2024: Deno 2", "sublabel": "tương thích Node, npm", "width": 160},
    {"id": "cf", "lane": "deno", "col": 5, "type": "cloud", "label": "2026: về Cloudflare", "sublabel": "runtime dừng dần", "width": 160},
    {"id": "bun", "lane": "bun", "col": 3, "type": "external", "label": "07/2022: Bun 0.1", "sublabel": "chạy gói npm sẵn có", "width": 170}
  ],
  "edges": [
    {"id": "e1", "from": "y2018", "to": "y2020", "variant": "emphasis"},
    {"id": "e2", "from": "y2020", "to": "back", "variant": "emphasis"},
    {"id": "e3", "from": "back", "to": "npm", "variant": "emphasis"},
    {"id": "e4", "from": "npm", "to": "v2", "variant": "emphasis"},
    {"id": "e5", "from": "v2", "to": "cf", "variant": "emphasis"},
    {"id": "e6", "from": "bun", "to": "npm", "label": "~6 tuần sau", "variant": "dashed"}
  ]
}
