{
  "schema_version": 2,
  "diagram_type": "workflow",
  "meta": {
    "title": "Ý tưởng package manager lan từ kẻ đi trước sang npm",
    "quality_profile": "showcase",
    "legend": {"mode": "hidden"},
    "views": [
      {"id": "lock", "label": "Lockfile", "focus": ["yarn", "npm5"], "note": "Yarn (2016) đòi cài đặt phải giống hệt nhau mỗi lần; npm 5 có package-lock.json năm sau."},
      {"id": "scripts", "label": "Install scripts", "focus": ["others", "npm12"], "note": "pnpm, Bun tắt mặc định, vlt chưa từng bật; tháng 6/2026 GitHub công bố npm 12 cũng tắt."}
    ]
  },
  "lanes": [
    {"id": "first", "label": "Làm trước"},
    {"id": "npm", "label": "npm làm theo"}
  ],
  "nodes": [
    {"id": "yarn", "lane": "first", "col": 0, "type": "frontend", "label": "Yarn: lockfile", "sublabel": "2016", "width": 160},
    {"id": "pnpm", "lane": "first", "col": 1, "type": "frontend", "label": "pnpm: bớt trùng file", "sublabel": "node_modules nhẹ", "width": 170},
    {"id": "bun", "lane": "first", "col": 2, "type": "frontend", "label": "Bun: cài nhanh", "sublabel": "ép xem lại tốc độ", "width": 160},
    {"id": "others", "lane": "first", "col": 3, "type": "security", "label": "Tắt install scripts", "sublabel": "pnpm, Bun, vlt", "width": 170},
    {"id": "npm5", "lane": "npm", "col": 0, "type": "backend", "label": "npm 5", "sublabel": "package-lock.json", "width": 160},
    {"id": "perf", "lane": "npm", "col": 2, "type": "backend", "label": "Xem lại hiệu năng", "sublabel": "các bên dẫn đầu", "width": 160},
    {"id": "npm12", "lane": "npm", "col": 3, "type": "backend", "label": "npm 12", "sublabel": "tắt mặc định (công bố 06/2026)", "width": 200}
  ],
  "edges": [
    {"id": "e1", "from": "yarn", "to": "npm5", "label": "năm sau", "variant": "emphasis"},
    {"id": "e2", "from": "bun", "to": "perf", "variant": "dashed"},
    {"id": "e3", "from": "others", "to": "npm12", "label": "sau chuỗi worm", "variant": "emphasis"}
  ]
}
