- KBO 공식 홈페이지에서 연도별 팀 순위 및 상대 전적 데이터를 가져오는 크롤링 스크립트를 구현했습니다. - ASP.NET의 ViewState 및 EventValidation 필드를 처리하여 동적인 연도 전환 요청을 지원합니다. - 데이터를 가독성 높은 콘솔 테이블 형태로 출력하거나 JSON 형식으로 변환하는 기능을 제공합니다.
305 lines
137 KiB
HTML
305 lines
137 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>graphify - graphify-out/graph.html</title>
|
|
<script src="https://unpkg.com/vis-network/standalone/umd/vis-network.min.js"></script>
|
|
<style>
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
body { background: #0f0f1a; color: #e0e0e0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; display: flex; height: 100vh; overflow: hidden; }
|
|
#graph { flex: 1; }
|
|
#sidebar { width: 280px; background: #1a1a2e; border-left: 1px solid #2a2a4e; display: flex; flex-direction: column; overflow: hidden; }
|
|
#search-wrap { padding: 12px; border-bottom: 1px solid #2a2a4e; }
|
|
#search { width: 100%; background: #0f0f1a; border: 1px solid #3a3a5e; color: #e0e0e0; padding: 7px 10px; border-radius: 6px; font-size: 13px; outline: none; }
|
|
#search:focus { border-color: #4E79A7; }
|
|
#search-results { max-height: 140px; overflow-y: auto; padding: 4px 12px; border-bottom: 1px solid #2a2a4e; display: none; }
|
|
.search-item { padding: 4px 6px; cursor: pointer; border-radius: 4px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.search-item:hover { background: #2a2a4e; }
|
|
#info-panel { padding: 14px; border-bottom: 1px solid #2a2a4e; min-height: 140px; }
|
|
#info-panel h3 { font-size: 13px; color: #aaa; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
|
|
#info-content { font-size: 13px; color: #ccc; line-height: 1.6; }
|
|
#info-content .field { margin-bottom: 5px; }
|
|
#info-content .field b { color: #e0e0e0; }
|
|
#info-content .empty { color: #555; font-style: italic; }
|
|
.neighbor-link { display: block; padding: 2px 6px; margin: 2px 0; border-radius: 3px; cursor: pointer; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid #333; }
|
|
.neighbor-link:hover { background: #2a2a4e; }
|
|
#neighbors-list { max-height: 160px; overflow-y: auto; margin-top: 4px; }
|
|
#legend-wrap { flex: 1; overflow-y: auto; padding: 12px; }
|
|
#legend-wrap h3 { font-size: 13px; color: #aaa; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
|
|
.legend-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; border-radius: 4px; font-size: 12px; }
|
|
.legend-item:hover { background: #2a2a4e; padding-left: 4px; }
|
|
.legend-item.dimmed { opacity: 0.35; }
|
|
.legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
|
|
.legend-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.legend-count { color: #666; font-size: 11px; }
|
|
#stats { padding: 10px 14px; border-top: 1px solid #2a2a4e; font-size: 11px; color: #555; }
|
|
#legend-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 4px 0; }
|
|
#legend-controls label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; color: #aaa; user-select: none; }
|
|
#legend-controls label:hover { color: #e0e0e0; }
|
|
.legend-cb, #select-all-cb { appearance: none; -webkit-appearance: none; width: 14px; height: 14px; border: 1.5px solid #3a3a5e; border-radius: 3px; background: #0f0f1a; cursor: pointer; position: relative; flex-shrink: 0; }
|
|
.legend-cb:checked, #select-all-cb:checked { background: #4E79A7; border-color: #4E79A7; }
|
|
.legend-cb:checked::after, #select-all-cb:checked::after { content: ''; position: absolute; left: 3.5px; top: 1px; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
|
|
#select-all-cb:indeterminate { background: #4E79A7; border-color: #4E79A7; }
|
|
#select-all-cb:indeterminate::after { content: ''; position: absolute; left: 2px; top: 5px; width: 8px; height: 2px; background: #fff; border: none; transform: none; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="graph"></div>
|
|
<div id="sidebar">
|
|
<div id="search-wrap">
|
|
<input id="search" type="text" placeholder="Search nodes..." autocomplete="off">
|
|
<div id="search-results"></div>
|
|
</div>
|
|
<div id="info-panel">
|
|
<h3>Node Info</h3>
|
|
<div id="info-content"><span class="empty">Click a node to inspect it</span></div>
|
|
</div>
|
|
<div id="legend-wrap">
|
|
<h3>Communities</h3>
|
|
<div id="legend-controls">
|
|
<label><input type="checkbox" id="select-all-cb" checked onchange="toggleAllCommunities(!this.checked)">Select All</label>
|
|
</div>
|
|
<div id="legend"></div>
|
|
</div>
|
|
<div id="stats">173 nodes · 177 edges · 28 communities</div>
|
|
</div>
|
|
<script>
|
|
const RAW_NODES = [{"id": "backend_reads_firestore_users", "label": "Firestore users Collection", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 31.4, "font": {"size": 12, "color": "#ffffff"}, "title": "Firestore users Collection", "community": 2, "community_name": "Scoreboard & User Write Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "document", "degree": 5}, {"id": "backend_reads_firestore_votehistory", "label": "Firestore voteHistory Subcollection", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 22.9, "font": {"size": 12, "color": "#ffffff"}, "title": "Firestore voteHistory Subcollection", "community": 1, "community_name": "Archive & Stats Pipeline", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "document", "degree": 3}, {"id": "backend_reads_firestore_attendance", "label": "Firestore attendance Subcollection", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "Firestore attendance Subcollection", "community": 11, "community_name": "Attendance Service (Server)", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "document", "degree": 1}, {"id": "backend_reads_firestore_pointledger", "label": "Firestore pointLedger Subcollection", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "Firestore pointLedger Subcollection", "community": 11, "community_name": "Attendance Service (Server)", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "document", "degree": 1}, {"id": "backend_reads_firestore_games", "label": "Firestore games Collection", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 31.4, "font": {"size": 12, "color": "#ffffff"}, "title": "Firestore games Collection", "community": 1, "community_name": "Archive & Stats Pipeline", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "document", "degree": 5}, {"id": "backend_reads_firestore_kbocache", "label": "Firestore kboCache Collection", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "Firestore kboCache Collection", "community": 0, "community_name": "Read/Write Optimization Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "document", "degree": 2}, {"id": "backend_reads_firestore_kbolocks", "label": "Firestore kboLocks Collection", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "Firestore kboLocks Collection", "community": 0, "community_name": "Read/Write Optimization Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "document", "degree": 2}, {"id": "backend_reads_rtdb_votes", "label": "RTDB /votes/{gameId} Path", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 22.9, "font": {"size": 12, "color": "#ffffff"}, "title": "RTDB /votes/{gameId} Path", "community": 8, "community_name": "Server Vote & RTDB Layer", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "document", "degree": 3}, {"id": "backend_reads_rtdb_uservotes", "label": "RTDB /userVotes/{uid}/{date} Path", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 27.1, "font": {"size": 12, "color": "#ffffff"}, "title": "RTDB /userVotes/{uid}/{date} Path", "community": 1, "community_name": "Archive & Stats Pipeline", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "document", "degree": 4}, {"id": "backend_reads_rtdb_cachestats", "label": "RTDB /cache/stats/{uid} Path", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 31.4, "font": {"size": 12, "color": "#ffffff"}, "title": "RTDB /cache/stats/{uid} Path", "community": 1, "community_name": "Archive & Stats Pipeline", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "document", "degree": 5}, {"id": "backend_reads_rtdb_scoreboardcache", "label": "RTDB /scoreboardCache/{date} Path", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 22.9, "font": {"size": 12, "color": "#ffffff"}, "title": "RTDB /scoreboardCache/{date} Path", "community": 2, "community_name": "Scoreboard & User Write Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "document", "degree": 3}, {"id": "backend_reads_rtdb_nicknames", "label": "RTDB /nicknames Path", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "RTDB /nicknames Path", "community": 2, "community_name": "Scoreboard & User Write Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "document", "degree": 1}, {"id": "backend_reads_rtdb_usernicknames", "label": "RTDB /userNicknames Path", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "RTDB /userNicknames Path", "community": 2, "community_name": "Scoreboard & User Write Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "document", "degree": 1}, {"id": "backend_reads_external_kbo", "label": "External KBO API (koreabaseball.com)", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 27.1, "font": {"size": 12, "color": "#ffffff"}, "title": "External KBO API (koreabaseball.com)", "community": 0, "community_name": "Read/Write Optimization Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "document", "degree": 4}, {"id": "backend_reads_memcache", "label": "In-Memory MemCache (Server-side)", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 22.9, "font": {"size": 12, "color": "#ffffff"}, "title": "In-Memory MemCache (Server-side)", "community": 8, "community_name": "Server Vote & RTDB Layer", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "document", "degree": 3}, {"id": "backend_reads_svc_gamelistservice", "label": "gameListService (Server)", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 22.9, "font": {"size": 12, "color": "#ffffff"}, "title": "gameListService (Server)", "community": 8, "community_name": "Server Vote & RTDB Layer", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 3}, {"id": "backend_reads_svc_rankservice", "label": "rankService (Server)", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "rankService (Server)", "community": 0, "community_name": "Read/Write Optimization Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 2}, {"id": "backend_reads_svc_playerservice", "label": "playerService (Server)", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "playerService (Server)", "community": 0, "community_name": "Read/Write Optimization Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 2}, {"id": "backend_reads_svc_scheduleservice", "label": "scheduleService (Server)", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "scheduleService (Server)", "community": 0, "community_name": "Read/Write Optimization Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 2}, {"id": "backend_reads_svc_gamedetailservice", "label": "gameDetailService (Server)", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 27.1, "font": {"size": 12, "color": "#ffffff"}, "title": "gameDetailService (Server)", "community": 0, "community_name": "Read/Write Optimization Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 4}, {"id": "backend_reads_svc_scoreboardservice", "label": "scoreboardService (Server)", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 31.4, "font": {"size": 12, "color": "#ffffff"}, "title": "scoreboardService (Server)", "community": 2, "community_name": "Scoreboard & User Write Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 5}, {"id": "backend_reads_svc_statsservice", "label": "statsService (Server)", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 27.1, "font": {"size": 12, "color": "#ffffff"}, "title": "statsService (Server)", "community": 1, "community_name": "Archive & Stats Pipeline", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 4}, {"id": "backend_reads_svc_predictionservice", "label": "predictionService (Server)", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 22.9, "font": {"size": 12, "color": "#ffffff"}, "title": "predictionService (Server)", "community": 8, "community_name": "Server Vote & RTDB Layer", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 3}, {"id": "backend_reads_svc_judgmentservice", "label": "judgmentService (Server)", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "judgmentService (Server)", "community": 1, "community_name": "Archive & Stats Pipeline", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 2}, {"id": "backend_reads_svc_gamesyncservice", "label": "gameSyncService (Server)", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 31.4, "font": {"size": 12, "color": "#ffffff"}, "title": "gameSyncService (Server)", "community": 0, "community_name": "Read/Write Optimization Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 5}, {"id": "backend_reads_svc_userservice", "label": "userService (Server)", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 40.0, "font": {"size": 12, "color": "#ffffff"}, "title": "userService (Server)", "community": 2, "community_name": "Scoreboard & User Write Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 7}, {"id": "backend_reads_svc_ranksnapshotservice", "label": "rankSnapshotService (Server)", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 27.1, "font": {"size": 12, "color": "#ffffff"}, "title": "rankSnapshotService (Server)", "community": 2, "community_name": "Scoreboard & User Write Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 4}, {"id": "backend_reads_svc_attendanceservice", "label": "attendanceService (Server)", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 22.9, "font": {"size": 12, "color": "#ffffff"}, "title": "attendanceService (Server)", "community": 11, "community_name": "Attendance Service (Server)", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 3}, {"id": "backend_reads_repo_kbocacherepo", "label": "kboCacheRepository (Server)", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 31.4, "font": {"size": 12, "color": "#ffffff"}, "title": "kboCacheRepository (Server)", "community": 0, "community_name": "Read/Write Optimization Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 5}, {"id": "backend_reads_repo_kborepo", "label": "kboRepository (Server)", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 35.7, "font": {"size": 12, "color": "#ffffff"}, "title": "kboRepository (Server)", "community": 0, "community_name": "Read/Write Optimization Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 6}, {"id": "backend_reads_repo_scoreboardcacherepo", "label": "scoreboardCacheRepository (Server)", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "scoreboardCacheRepository (Server)", "community": 15, "community_name": "Nickname Reservation", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 0}, {"id": "backend_reads_repo_voterepo", "label": "voteRepository (Server)", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 31.4, "font": {"size": 12, "color": "#ffffff"}, "title": "voteRepository (Server)", "community": 8, "community_name": "Server Vote & RTDB Layer", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 5}, {"id": "backend_reads_repo_gamerepo", "label": "gameRepository (Server)", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 22.9, "font": {"size": 12, "color": "#ffffff"}, "title": "gameRepository (Server)", "community": 1, "community_name": "Archive & Stats Pipeline", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 3}, {"id": "backend_reads_repo_votehistoryrepo", "label": "voteHistoryRepository (Server)", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "voteHistoryRepository (Server)", "community": 1, "community_name": "Archive & Stats Pipeline", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 2}, {"id": "backend_reads_endpoint_kbo_games", "label": "GET /kbo/games Endpoint", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "GET /kbo/games Endpoint", "community": 8, "community_name": "Server Vote & RTDB Layer", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 1}, {"id": "backend_reads_endpoint_kbo_rank", "label": "GET /kbo/rank Endpoint", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "GET /kbo/rank Endpoint", "community": 0, "community_name": "Read/Write Optimization Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 1}, {"id": "backend_reads_endpoint_kbo_player", "label": "GET /kbo/player Endpoint", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "GET /kbo/player Endpoint", "community": 0, "community_name": "Read/Write Optimization Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 1}, {"id": "backend_reads_endpoint_kbo_schedule", "label": "GET /kbo/schedule Endpoint", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "GET /kbo/schedule Endpoint", "community": 0, "community_name": "Read/Write Optimization Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 2}, {"id": "backend_reads_endpoint_kbo_gamedetail", "label": "GET /kbo/gameDetail Endpoint", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "GET /kbo/gameDetail Endpoint", "community": 0, "community_name": "Read/Write Optimization Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 2}, {"id": "backend_reads_endpoint_scoreboard", "label": "GET /prediction/scoreboard Endpoint", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "GET /prediction/scoreboard Endpoint", "community": 2, "community_name": "Scoreboard & User Write Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 1}, {"id": "backend_reads_endpoint_stats", "label": "GET /stats Endpoint", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "GET /stats Endpoint", "community": 1, "community_name": "Archive & Stats Pipeline", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 1}, {"id": "backend_reads_endpoint_prediction_games", "label": "GET /prediction/games Endpoint", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "GET /prediction/games Endpoint", "community": 1, "community_name": "Archive & Stats Pipeline", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 1}, {"id": "backend_reads_endpoint_prediction", "label": "GET /prediction Endpoint", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "GET /prediction Endpoint", "community": 8, "community_name": "Server Vote & RTDB Layer", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 1}, {"id": "backend_reads_endpoint_prediction_summary", "label": "GET /prediction/summary Endpoint", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "GET /prediction/summary Endpoint", "community": 8, "community_name": "Server Vote & RTDB Layer", "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md", "file_type": "code", "degree": 1}, {"id": "backend_writes_cron_kbodailyrefresh", "label": "kboDailyRefresh Cron (02:00 KST)", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "kboDailyRefresh Cron (02:00 KST)", "community": 0, "community_name": "Read/Write Optimization Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-writes.md", "file_type": "code", "degree": 2}, {"id": "backend_writes_cron_dailyarchive", "label": "dailyArchive Cron (03:00 KST)", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 40.0, "font": {"size": 12, "color": "#ffffff"}, "title": "dailyArchive Cron (03:00 KST)", "community": 1, "community_name": "Archive & Stats Pipeline", "source_file": "graphify-out/tmp-corpus/backend_backend-writes.md", "file_type": "code", "degree": 7}, {"id": "backend_writes_trigger_ongamecompleted", "label": "onGameCompleted Firestore Trigger", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 22.9, "font": {"size": 12, "color": "#ffffff"}, "title": "onGameCompleted Firestore Trigger", "community": 1, "community_name": "Archive & Stats Pipeline", "source_file": "graphify-out/tmp-corpus/backend_backend-writes.md", "file_type": "code", "degree": 3}, {"id": "backend_writes_svc_gameresultservice", "label": "gameResultService (Server)", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 31.4, "font": {"size": 12, "color": "#ffffff"}, "title": "gameResultService (Server)", "community": 1, "community_name": "Archive & Stats Pipeline", "source_file": "graphify-out/tmp-corpus/backend_backend-writes.md", "file_type": "code", "degree": 5}, {"id": "backend_writes_svc_nicknameservice", "label": "nicknameRepository (Server)", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "nicknameRepository (Server)", "community": 16, "community_name": "voteHistory Subcollection", "source_file": "graphify-out/tmp-corpus/backend_backend-writes.md", "file_type": "code", "degree": 0}, {"id": "backend_writes_endpoint_post_user", "label": "POST /user Endpoint (createMe)", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "POST /user Endpoint (createMe)", "community": 2, "community_name": "Scoreboard & User Write Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-writes.md", "file_type": "code", "degree": 1}, {"id": "backend_writes_endpoint_patch_user", "label": "PATCH /user Endpoint (updateMe)", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "PATCH /user Endpoint (updateMe)", "community": 2, "community_name": "Scoreboard & User Write Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-writes.md", "file_type": "code", "degree": 1}, {"id": "backend_writes_endpoint_get_user", "label": "GET /user Endpoint (getMe)", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "GET /user Endpoint (getMe)", "community": 2, "community_name": "Scoreboard & User Write Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-writes.md", "file_type": "code", "degree": 1}, {"id": "backend_writes_endpoint_post_prediction", "label": "POST /prediction Endpoint", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "POST /prediction Endpoint", "community": 8, "community_name": "Server Vote & RTDB Layer", "source_file": "graphify-out/tmp-corpus/backend_backend-writes.md", "file_type": "code", "degree": 1}, {"id": "backend_writes_endpoint_put_prediction", "label": "PUT /prediction Endpoint", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "PUT /prediction Endpoint", "community": 8, "community_name": "Server Vote & RTDB Layer", "source_file": "graphify-out/tmp-corpus/backend_backend-writes.md", "file_type": "code", "degree": 1}, {"id": "backend_writes_endpoint_post_checkin", "label": "POST /attendance/check-in Endpoint", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "POST /attendance/check-in Endpoint", "community": 11, "community_name": "Attendance Service (Server)", "source_file": "graphify-out/tmp-corpus/backend_backend-writes.md", "file_type": "code", "degree": 1}, {"id": "backend_writes_endpoint_post_admin_gameend", "label": "POST /admin/game/end Endpoint (markGameEnded)", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "POST /admin/game/end Endpoint (markGameEnded)", "community": 1, "community_name": "Archive & Stats Pipeline", "source_file": "graphify-out/tmp-corpus/backend_backend-writes.md", "file_type": "code", "degree": 1}, {"id": "backend_writes_endpoint_debug_forcesync", "label": "debug/forceSync Endpoint (unauthenticated)", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "debug/forceSync Endpoint (unauthenticated)", "community": 0, "community_name": "Read/Write Optimization Fixes", "source_file": "graphify-out/tmp-corpus/backend_backend-writes.md", "file_type": "code", "degree": 1}, {"id": "backend_lifecycle_client_firebaseauth", "label": "Client Firebase Auth", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "Client Firebase Auth", "community": 17, "community_name": "pointLedger Subcollection", "source_file": "graphify-out/tmp-corpus/backend_data-lifecycle.md", "file_type": "document", "degree": 0}, {"id": "backend_lifecycle_client_remoteconfig", "label": "Client Remote Config (team_order_by_standing)", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "Client Remote Config (team_order_by_standing)", "community": 18, "community_name": "Firebase Auth (Client)", "source_file": "graphify-out/tmp-corpus/backend_data-lifecycle.md", "file_type": "document", "degree": 0}, {"id": "backend_lifecycle_client_fcm", "label": "Client FCM / users.fcmTokens Direct Write", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "Client FCM / users.fcmTokens Direct Write", "community": 2, "community_name": "Scoreboard & User Write Fixes", "source_file": "graphify-out/tmp-corpus/backend_data-lifecycle.md", "file_type": "document", "degree": 1}, {"id": "backend_lifecycle_client_swrcache", "label": "Client SWR Cache (swr_cache.dart)", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "Client SWR Cache (swr_cache.dart)", "community": 0, "community_name": "Read/Write Optimization Fixes", "source_file": "graphify-out/tmp-corpus/backend_data-lifecycle.md", "file_type": "code", "degree": 2}, {"id": "backend_lifecycle_concept_fanout", "label": "Fan-out Write Pattern (stats invalidation)", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "Fan-out Write Pattern (stats invalidation)", "community": 1, "community_name": "Archive & Stats Pipeline", "source_file": "graphify-out/tmp-corpus/backend_data-lifecycle.md", "file_type": "document", "degree": 1}, {"id": "backend_lifecycle_concept_precompute", "label": "Precompute Scoreboard Cache Concept", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "Precompute Scoreboard Cache Concept", "community": 2, "community_name": "Scoreboard & User Write Fixes", "source_file": "graphify-out/tmp-corpus/backend_data-lifecycle.md", "file_type": "document", "degree": 1}, {"id": "backend_lifecycle_concept_distributedlock", "label": "Distributed Lock (kboLocks TTL 30s)", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "Distributed Lock (kboLocks TTL 30s)", "community": 0, "community_name": "Read/Write Optimization Fixes", "source_file": "graphify-out/tmp-corpus/backend_data-lifecycle.md", "file_type": "document", "degree": 1}, {"id": "backend_improvements_reads_r1_gamedaycache", "label": "R1: GameDayCache Memoization Fix", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "R1: GameDayCache Memoization Fix", "community": 1, "community_name": "Archive & Stats Pipeline", "source_file": "graphify-out/tmp-corpus/backend_improvements-backend-reads.md", "file_type": "document", "degree": 2}, {"id": "backend_improvements_reads_r4_backoff", "label": "R4: Cache Stampede Exponential Backoff Fix", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "R4: Cache Stampede Exponential Backoff Fix", "community": 0, "community_name": "Read/Write Optimization Fixes", "source_file": "graphify-out/tmp-corpus/backend_improvements-backend-reads.md", "file_type": "document", "degree": 1}, {"id": "backend_improvements_reads_r5_fieldmask", "label": "R5: Scoreboard Self-User FieldMask Fix", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "R5: Scoreboard Self-User FieldMask Fix", "community": 2, "community_name": "Scoreboard & User Write Fixes", "source_file": "graphify-out/tmp-corpus/backend_improvements-backend-reads.md", "file_type": "document", "degree": 1}, {"id": "backend_improvements_reads_r7_parallelrank", "label": "R7: Multi-Year Rank Parallel Fetch Fix", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "R7: Multi-Year Rank Parallel Fetch Fix", "community": 0, "community_name": "Read/Write Optimization Fixes", "source_file": "graphify-out/tmp-corpus/backend_improvements-backend-reads.md", "file_type": "document", "degree": 1}, {"id": "backend_improvements_writes_w1_diff", "label": "W1: games syncGamesForMonth getAll+diff Fix", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "W1: games syncGamesForMonth getAll+diff Fix", "community": 0, "community_name": "Read/Write Optimization Fixes", "source_file": "graphify-out/tmp-corpus/backend_improvements-backend-writes.md", "file_type": "document", "degree": 1}, {"id": "backend_improvements_writes_w2_votehistory", "label": "W2: voteHistory Double-Write Consolidation Fix", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "W2: voteHistory Double-Write Consolidation Fix", "community": 1, "community_name": "Archive & Stats Pipeline", "source_file": "graphify-out/tmp-corpus/backend_improvements-backend-writes.md", "file_type": "document", "degree": 1}, {"id": "backend_improvements_writes_w3_statsdedup", "label": "W3: Archive Stats Invalidation Fan-out Dedup Fix", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "W3: Archive Stats Invalidation Fan-out Dedup Fix", "community": 1, "community_name": "Archive & Stats Pipeline", "source_file": "graphify-out/tmp-corpus/backend_improvements-backend-writes.md", "file_type": "document", "degree": 1}, {"id": "backend_improvements_writes_w4_ranksnapshot", "label": "W4: Rank Snapshot Merged Into Judgment Tx Fix", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "W4: Rank Snapshot Merged Into Judgment Tx Fix", "community": 2, "community_name": "Scoreboard & User Write Fixes", "source_file": "graphify-out/tmp-corpus/backend_improvements-backend-writes.md", "file_type": "document", "degree": 1}, {"id": "backend_improvements_writes_w5r6_photourl", "label": "W5+R6: getMe photoUrl Hot-Write Suppression Fix", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "W5+R6: getMe photoUrl Hot-Write Suppression Fix", "community": 2, "community_name": "Scoreboard & User Write Fixes", "source_file": "graphify-out/tmp-corpus/backend_improvements-backend-writes.md", "file_type": "document", "degree": 1}, {"id": "backend_improvements_writes_w6_gamedetailttl", "label": "W6: game_detail Cache Bulk Invalidation Stopped", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "W6: game_detail Cache Bulk Invalidation Stopped", "community": 0, "community_name": "Read/Write Optimization Fixes", "source_file": "graphify-out/tmp-corpus/backend_improvements-backend-writes.md", "file_type": "document", "degree": 1}, {"id": "opt_W1", "label": "W1: Games Sync Diff Optimization", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 22.9, "font": {"size": 12, "color": "#ffffff"}, "title": "W1: Games Sync Diff Optimization", "community": 4, "community_name": "Server Cron & Game Sync", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "document", "degree": 3}, {"id": "opt_W2", "label": "W2: voteHistory Double Write Consolidation", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "W2: voteHistory Double Write Consolidation", "community": 9, "community_name": "Game Trigger & Stats Invalidation", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "document", "degree": 2}, {"id": "opt_W3", "label": "W3: Stats Invalidation Fan-out Per User", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "W3: Stats Invalidation Fan-out Per User", "community": 9, "community_name": "Game Trigger & Stats Invalidation", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "document", "degree": 1}, {"id": "opt_W4", "label": "W4: Users Cron Write Deduplication", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "W4: Users Cron Write Deduplication", "community": 19, "community_name": "Remote Config (Client)", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "document", "degree": 0}, {"id": "opt_W5", "label": "W5: getMe photoUrl Write Conservative", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "W5: getMe photoUrl Write Conservative", "community": 20, "community_name": "Firestore Trigger", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "document", "degree": 0}, {"id": "opt_W6", "label": "W6: kboCache game_detail TTL Natural Expiry", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "W6: kboCache game_detail TTL Natural Expiry", "community": 4, "community_name": "Server Cron & Game Sync", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "document", "degree": 1}, {"id": "opt_R1", "label": "R1: dailyArchive listByDate Sharing", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 22.9, "font": {"size": 12, "color": "#ffffff"}, "title": "R1: dailyArchive listByDate Sharing", "community": 4, "community_name": "Server Cron & Game Sync", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "document", "degree": 3}, {"id": "opt_R2", "label": "R2: getStats Incremental Aggregation", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "R2: getStats Incremental Aggregation", "community": 9, "community_name": "Game Trigger & Stats Invalidation", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "document", "degree": 2}, {"id": "opt_R3", "label": "R3: dailyArchive userVotes Shallow Read", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "R3: dailyArchive userVotes Shallow Read", "community": 4, "community_name": "Server Cron & Game Sync", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "document", "degree": 1}, {"id": "opt_R4", "label": "R4: Cache Stampede Polling Backoff", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "R4: Cache Stampede Polling Backoff", "community": 14, "community_name": "Scoreboard Cache", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "document", "degree": 1}, {"id": "opt_R5", "label": "R5: Scoreboard getUser Select + Rank Cache", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "R5: Scoreboard getUser Select + Rank Cache", "community": 21, "community_name": "rankSnapshot Service", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "document", "degree": 0}, {"id": "opt_R6", "label": "R6: createMe/updateMe Remove Secondary getUser", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "R6: createMe/updateMe Remove Secondary getUser", "community": 22, "community_name": "KBO External API", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "document", "degree": 0}, {"id": "opt_R7", "label": "R7: Rank Multi-year getOrFetch Parallelization", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "R7: Rank Multi-year getOrFetch Parallelization", "community": 23, "community_name": "MemCache (In-Memory)", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "document", "degree": 0}, {"id": "opt_C1", "label": "C1: voteSummary Polling to RTDB Subscription", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 31.4, "font": {"size": 12, "color": "#ffffff"}, "title": "C1: voteSummary Polling to RTDB Subscription", "community": 7, "community_name": "Prediction Vote Flow", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "document", "degree": 5}, {"id": "opt_C2", "label": "C2: rank/h2h Duplicate Call Removal", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 27.1, "font": {"size": 12, "color": "#ffffff"}, "title": "C2: rank/h2h Duplicate Call Removal", "community": 5, "community_name": "Client KBO Data (Rank/Player)", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "document", "degree": 4}, {"id": "opt_C3", "label": "C3: pitchers/acePitcher Duplicate Call Removal", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 22.9, "font": {"size": 12, "color": "#ffffff"}, "title": "C3: pitchers/acePitcher Duplicate Call Removal", "community": 5, "community_name": "Client KBO Data (Rank/Player)", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "document", "degree": 3}, {"id": "opt_C4", "label": "C4: Uncached autoDispose Providers SWR/keepAlive", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 31.4, "font": {"size": 12, "color": "#ffffff"}, "title": "C4: Uncached autoDispose Providers SWR/keepAlive", "community": 3, "community_name": "Client User Auth & Profile", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "document", "degree": 5}, {"id": "readme_overview", "label": "Panit Data Pattern Documentation Overview", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "Panit Data Pattern Documentation Overview", "community": 4, "community_name": "Server Cron & Game Sync", "source_file": "graphify-out/tmp-corpus/backend_README.md", "file_type": "document", "degree": 2}, {"id": "readme_cost_summary", "label": "Cost Summary: Top Write/Read/Client Costs", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 27.1, "font": {"size": 12, "color": "#ffffff"}, "title": "Cost Summary: Top Write/Read/Client Costs", "community": 4, "community_name": "Server Cron & Game Sync", "source_file": "graphify-out/tmp-corpus/backend_README.md", "file_type": "document", "degree": 4}, {"id": "readme_index_ok", "label": "Firestore Composite Indexes (No Gaps)", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "Firestore Composite Indexes (No Gaps)", "community": 4, "community_name": "Server Cron & Game Sync", "source_file": "graphify-out/tmp-corpus/backend_README.md", "file_type": "document", "degree": 1}, {"id": "client_dio_provider", "label": "dioProvider \u2014 Single HTTP Gateway (keepAlive)", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "dioProvider \u2014 Single HTTP Gateway (keepAlive)", "community": 12, "community_name": "kboCache & Lock", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "client_api_base", "label": "Cloud Functions Base URL (asia-northeast3-mmday-panit)", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "Cloud Functions Base URL (asia-northeast3-mmday-panit)", "community": 12, "community_name": "kboCache & Lock", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "client_game_repo", "label": "GameRepository (keepAlive)", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "GameRepository (keepAlive)", "community": 6, "community_name": "Client KBO Schedule & GameDetail", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "client_user_repo", "label": "UserRepository (keepAlive)", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 40.0, "font": {"size": 12, "color": "#ffffff"}, "title": "UserRepository (keepAlive)", "community": 3, "community_name": "Client User Auth & Profile", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 7}, {"id": "client_prediction_repo", "label": "PredictionRepository (keepAlive)", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 27.1, "font": {"size": 12, "color": "#ffffff"}, "title": "PredictionRepository (keepAlive)", "community": 7, "community_name": "Prediction Vote Flow", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 4}, {"id": "client_team_record_repo", "label": "TeamRecordRepository (keepAlive)", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "TeamRecordRepository (keepAlive)", "community": 5, "community_name": "Client KBO Data (Rank/Player)", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "client_player_repo", "label": "PlayerRepository (keepAlive)", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "PlayerRepository (keepAlive)", "community": 5, "community_name": "Client KBO Data (Rank/Player)", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "client_game_detail_repo", "label": "GameDetailRepository (keepAlive)", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "GameDetailRepository (keepAlive)", "community": 6, "community_name": "Client KBO Schedule & GameDetail", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "client_scoreboard_repo", "label": "ScoreboardRepository (keepAlive)", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "ScoreboardRepository (keepAlive)", "community": 3, "community_name": "Client User Auth & Profile", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "client_attendance_repo", "label": "AttendanceRepository (keepAlive)", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 22.9, "font": {"size": 12, "color": "#ffffff"}, "title": "AttendanceRepository (keepAlive)", "community": 10, "community_name": "Attendance & Notification", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 3}, {"id": "client_notice_repo", "label": "NoticeRepository (keepAlive, mock TODO)", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "NoticeRepository (keepAlive, mock TODO)", "community": 24, "community_name": "RTDB userVotes Path", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 0}, {"id": "client_ep_schedule", "label": "CF Endpoint: GET /kbo/schedule", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "CF Endpoint: GET /kbo/schedule", "community": 6, "community_name": "Client KBO Schedule & GameDetail", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 2}, {"id": "client_ep_rank", "label": "CF Endpoint: GET /kbo/rank", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 22.9, "font": {"size": 12, "color": "#ffffff"}, "title": "CF Endpoint: GET /kbo/rank", "community": 5, "community_name": "Client KBO Data (Rank/Player)", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 3}, {"id": "client_ep_player", "label": "CF Endpoint: GET /kbo/player", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 22.9, "font": {"size": 12, "color": "#ffffff"}, "title": "CF Endpoint: GET /kbo/player", "community": 5, "community_name": "Client KBO Data (Rank/Player)", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 3}, {"id": "client_ep_game_detail", "label": "CF Endpoint: GET /kbo/gameDetail", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "CF Endpoint: GET /kbo/gameDetail", "community": 6, "community_name": "Client KBO Schedule & GameDetail", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 2}, {"id": "client_ep_get_user", "label": "CF Endpoint: GET /user", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 27.1, "font": {"size": 12, "color": "#ffffff"}, "title": "CF Endpoint: GET /user", "community": 3, "community_name": "Client User Auth & Profile", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 4}, {"id": "client_ep_check_nickname", "label": "CF Endpoint: GET /user/check-nickname", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "CF Endpoint: GET /user/check-nickname", "community": 3, "community_name": "Client User Auth & Profile", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "client_ep_post_user", "label": "CF Endpoint: POST /user (onboarding)", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "CF Endpoint: POST /user (onboarding)", "community": 3, "community_name": "Client User Auth & Profile", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "client_ep_patch_user", "label": "CF Endpoint: PATCH /user (profile update)", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "CF Endpoint: PATCH /user (profile update)", "community": 3, "community_name": "Client User Auth & Profile", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "client_ep_delete_user", "label": "CF Endpoint: DELETE /user", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "CF Endpoint: DELETE /user", "community": 3, "community_name": "Client User Auth & Profile", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "client_ep_stats", "label": "CF Endpoint: GET /stats", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "CF Endpoint: GET /stats", "community": 3, "community_name": "Client User Auth & Profile", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 2}, {"id": "client_ep_stats_history", "label": "CF Endpoint: GET /stats/history", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "CF Endpoint: GET /stats/history", "community": 3, "community_name": "Client User Auth & Profile", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "client_ep_post_prediction", "label": "CF Endpoint: POST /prediction", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "CF Endpoint: POST /prediction", "community": 7, "community_name": "Prediction Vote Flow", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 2}, {"id": "client_ep_put_prediction", "label": "CF Endpoint: PUT /prediction", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "CF Endpoint: PUT /prediction", "community": 7, "community_name": "Prediction Vote Flow", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "client_ep_get_prediction", "label": "CF Endpoint: GET /prediction (by date)", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "CF Endpoint: GET /prediction (by date)", "community": 7, "community_name": "Prediction Vote Flow", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "client_ep_vote_summary", "label": "CF Endpoint: GET /prediction/summary (10s polling)", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "CF Endpoint: GET /prediction/summary (10s polling)", "community": 7, "community_name": "Prediction Vote Flow", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 2}, {"id": "client_ep_scoreboard", "label": "CF Endpoint: GET /prediction/scoreboard", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "CF Endpoint: GET /prediction/scoreboard", "community": 3, "community_name": "Client User Auth & Profile", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 2}, {"id": "client_ep_attendance_month", "label": "CF Endpoint: GET /attendance/month", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "CF Endpoint: GET /attendance/month", "community": 10, "community_name": "Attendance & Notification", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "client_ep_checkin", "label": "CF Endpoint: POST /attendance/check-in", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "CF Endpoint: POST /attendance/check-in", "community": 10, "community_name": "Attendance & Notification", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 2}, {"id": "client_ep_notifications", "label": "CF Endpoint: PATCH /users/me/notifications", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "CF Endpoint: PATCH /users/me/notifications", "community": 10, "community_name": "Attendance & Notification", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "client_auth_repo", "label": "AuthRepository (Google/Apple signIn)", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "AuthRepository (Google/Apple signIn)", "community": 25, "community_name": "RTDB scoreboardCache", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 0}, {"id": "client_auth_state_provider", "label": "authStateChangesProvider (Live Stream, keepAlive)", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "authStateChangesProvider (Live Stream, keepAlive)", "community": 26, "community_name": "Client Prediction Provider", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 0}, {"id": "client_remote_config", "label": "Remote Config Service (team_order_by_standing)", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "Remote Config Service (team_order_by_standing)", "community": 27, "community_name": "Stats Cache (RTDB)", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 0}, {"id": "client_fcm_service", "label": "FCM Service (token write to Firestore)", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "FCM Service (token write to Firestore)", "community": 13, "community_name": "User Profile Service", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "fs_users_fcm_tokens", "label": "Firestore: users/{uid}.fcmTokens (direct write)", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "Firestore: users/{uid}.fcmTokens (direct write)", "community": 13, "community_name": "User Profile Service", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "client_swr_cache", "label": "SWR Cache (SharedPreferences + in-memory, no TTL)", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 27.1, "font": {"size": 12, "color": "#ffffff"}, "title": "SWR Cache (SharedPreferences + in-memory, no TTL)", "community": 6, "community_name": "Client KBO Schedule & GameDetail", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 4}, {"id": "client_schedule_cache", "label": "ScheduleCache (monthly_schedule namespace)", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "ScheduleCache (monthly_schedule namespace)", "community": 6, "community_name": "Client KBO Schedule & GameDetail", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 2}, {"id": "client_game_detail_cache", "label": "GameDetailCache (game_detail namespace)", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "GameDetailCache (game_detail namespace)", "community": 6, "community_name": "Client KBO Schedule & GameDetail", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 2}, {"id": "client_day_record_cache", "label": "DayRecordCache (day_prediction_record, skip if settled)", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "DayRecordCache (day_prediction_record, skip if settled)", "community": 6, "community_name": "Client KBO Schedule & GameDetail", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 2}, {"id": "client_game_record_dates_cache", "label": "GameRecordDatesCache (game_record_dates namespace)", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "GameRecordDatesCache (game_record_dates namespace)", "community": 6, "community_name": "Client KBO Schedule & GameDetail", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 2}, {"id": "client_provider_monthly_schedule", "label": "monthlySchedule Provider (keepAlive + SWR)", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "monthlySchedule Provider (keepAlive + SWR)", "community": 6, "community_name": "Client KBO Schedule & GameDetail", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 2}, {"id": "client_provider_game_detail", "label": "gameDetail Provider (keepAlive + SWR)", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "gameDetail Provider (keepAlive + SWR)", "community": 6, "community_name": "Client KBO Schedule & GameDetail", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 2}, {"id": "client_provider_vote_summary", "label": "voteSummary Provider (StreamProvider 10s poll)", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 22.9, "font": {"size": 12, "color": "#ffffff"}, "title": "voteSummary Provider (StreamProvider 10s poll)", "community": 7, "community_name": "Prediction Vote Flow", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 3}, {"id": "client_provider_current_user", "label": "currentUser Provider (autoDispose, no cache)", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "currentUser Provider (autoDispose, no cache)", "community": 3, "community_name": "Client User Auth & Profile", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 2}, {"id": "client_provider_rank", "label": "rank Provider (autoDispose, no cache)", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "rank Provider (autoDispose, no cache)", "community": 5, "community_name": "Client KBO Data (Rank/Player)", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "client_provider_h2h", "label": "h2h Provider (autoDispose, no cache, duplicates rank call)", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "h2h Provider (autoDispose, no cache, duplicates rank call)", "community": 5, "community_name": "Client KBO Data (Rank/Player)", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 2}, {"id": "client_provider_pitchers", "label": "pitchers Provider (autoDispose, no cache)", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "pitchers Provider (autoDispose, no cache)", "community": 5, "community_name": "Client KBO Data (Rank/Player)", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 2}, {"id": "client_provider_ace_pitcher", "label": "acePitcher Provider (autoDispose, duplicate player call)", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "acePitcher Provider (autoDispose, duplicate player call)", "community": 5, "community_name": "Client KBO Data (Rank/Player)", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 2}, {"id": "client_provider_scoreboard", "label": "scoreboard Provider (autoDispose, no cache)", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "scoreboard Provider (autoDispose, no cache)", "community": 3, "community_name": "Client User Auth & Profile", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 2}, {"id": "client_provider_user_stats", "label": "userStats Provider (autoDispose, no cache)", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "userStats Provider (autoDispose, no cache)", "community": 3, "community_name": "Client User Auth & Profile", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 2}, {"id": "client_provider_day_prediction_record", "label": "DayPredictionRecord Provider (autoDispose + SWR skip if settled)", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "DayPredictionRecord Provider (autoDispose + SWR skip if settled)", "community": 6, "community_name": "Client KBO Schedule & GameDetail", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "client_provider_game_record_dates", "label": "GameRecordDates Provider (keepAlive + SWR)", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "GameRecordDates Provider (keepAlive + SWR)", "community": 6, "community_name": "Client KBO Schedule & GameDetail", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "client_provider_prediction_action", "label": "PredictionAction Notifier (keepAlive)", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "PredictionAction Notifier (keepAlive)", "community": 7, "community_name": "Prediction Vote Flow", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 2}, {"id": "client_provider_checkin_controller", "label": "CheckInController Notifier (autoDispose)", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "CheckInController Notifier (autoDispose)", "community": 10, "community_name": "Attendance & Notification", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "client_splash_page", "label": "splash_page.dart (duplicate GET /user on start)", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "splash_page.dart (duplicate GET /user on start)", "community": 3, "community_name": "Client User Auth & Profile", "source_file": "graphify-out/tmp-corpus/client_client-patterns.md", "file_type": "code", "degree": 1}, {"id": "rtdb_vote_aggregates", "label": "RTDB: voteAggregates/{gameId} (public read)", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "RTDB: voteAggregates/{gameId} (public read)", "community": 7, "community_name": "Prediction Vote Flow", "source_file": "graphify-out/tmp-corpus/client_improvements-client.md", "file_type": "code", "degree": 2}, {"id": "client_vote_repo_after", "label": "VoteRepository After C1 (RTDB onValue subscription)", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "VoteRepository After C1 (RTDB onValue subscription)", "community": 7, "community_name": "Prediction Vote Flow", "source_file": "graphify-out/tmp-corpus/client_improvements-client.md", "file_type": "code", "degree": 2}, {"id": "client_standings_provider_after", "label": "standings Provider After C2 (single source)", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "standings Provider After C2 (single source)", "community": 5, "community_name": "Client KBO Data (Rank/Player)", "source_file": "graphify-out/tmp-corpus/client_improvements-client.md", "file_type": "code", "degree": 2}, {"id": "client_h2h_provider_after", "label": "headToHead Provider After C2 (watches standings)", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "headToHead Provider After C2 (watches standings)", "community": 5, "community_name": "Client KBO Data (Rank/Player)", "source_file": "graphify-out/tmp-corpus/client_improvements-client.md", "file_type": "code", "degree": 2}, {"id": "client_ace_pitcher_after", "label": "acePitcher Provider After C3 (derived from pitchers)", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "acePitcher Provider After C3 (derived from pitchers)", "community": 5, "community_name": "Client KBO Data (Rank/Player)", "source_file": "graphify-out/tmp-corpus/client_improvements-client.md", "file_type": "code", "degree": 2}, {"id": "client_current_user_after", "label": "currentUser Provider After C4 (keepAlive)", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "currentUser Provider After C4 (keepAlive)", "community": 3, "community_name": "Client User Auth & Profile", "source_file": "graphify-out/tmp-corpus/client_improvements-client.md", "file_type": "code", "degree": 2}, {"id": "client_improvements_summary", "label": "Client Improvements Summary (C1-C4 Applied)", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 27.1, "font": {"size": 12, "color": "#ffffff"}, "title": "Client Improvements Summary (C1-C4 Applied)", "community": 5, "community_name": "Client KBO Data (Rank/Player)", "source_file": "graphify-out/tmp-corpus/client_improvements-client.md", "file_type": "document", "degree": 4}, {"id": "backend_debug_handlers", "label": "debugHandlers.ts (Unauthenticated forceSync/dailyArchive)", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "debugHandlers.ts (Unauthenticated forceSync/dailyArchive)", "community": 4, "community_name": "Server Cron & Game Sync", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "code", "degree": 2}, {"id": "backend_sync_games_service", "label": "syncGamesForMonth (gameSyncService.ts:63)", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 27.1, "font": {"size": 12, "color": "#ffffff"}, "title": "syncGamesForMonth (gameSyncService.ts:63)", "community": 4, "community_name": "Server Cron & Game Sync", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "code", "degree": 4}, {"id": "backend_daily_archive", "label": "dailyArchive.ts (setDay + judgeDay)", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 35.7, "font": {"size": 12, "color": "#ffffff"}, "title": "dailyArchive.ts (setDay + judgeDay)", "community": 4, "community_name": "Server Cron & Game Sync", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "code", "degree": 6}, {"id": "backend_judge_day", "label": "judgeDay (judgmentService.ts:94)", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "judgeDay (judgmentService.ts:94)", "community": 9, "community_name": "Game Trigger & Stats Invalidation", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "code", "degree": 2}, {"id": "backend_invalidate_stats", "label": "invalidateStats (/cache/stats/{uid} delete)", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 27.1, "font": {"size": 12, "color": "#ffffff"}, "title": "invalidateStats (/cache/stats/{uid} delete)", "community": 9, "community_name": "Game Trigger & Stats Invalidation", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "code", "degree": 4}, {"id": "backend_game_result_service", "label": "gameResultService.ts:42 (stats fan-out on game complete)", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "gameResultService.ts:42 (stats fan-out on game complete)", "community": 9, "community_name": "Game Trigger & Stats Invalidation", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "code", "degree": 1}, {"id": "backend_on_game_completed", "label": "onGameCompleted.ts:59 (Firestore trigger)", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "onGameCompleted.ts:59 (Firestore trigger)", "community": 9, "community_name": "Game Trigger & Stats Invalidation", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "code", "degree": 1}, {"id": "fs_games", "label": "Firestore: games collection", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 22.9, "font": {"size": 12, "color": "#ffffff"}, "title": "Firestore: games collection", "community": 4, "community_name": "Server Cron & Game Sync", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "code", "degree": 3}, {"id": "fs_vote_history", "label": "Firestore: voteHistory collection", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 27.1, "font": {"size": 12, "color": "#ffffff"}, "title": "Firestore: voteHistory collection", "community": 9, "community_name": "Game Trigger & Stats Invalidation", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "code", "degree": 4}, {"id": "fs_daily_archive", "label": "Firestore: dailyArchive collection", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "Firestore: dailyArchive collection", "community": 4, "community_name": "Server Cron & Game Sync", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "code", "degree": 1}, {"id": "fs_cache_stats", "label": "Firestore/Cache: /cache/stats/{uid}", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 22.9, "font": {"size": 12, "color": "#ffffff"}, "title": "Firestore/Cache: /cache/stats/{uid}", "community": 9, "community_name": "Game Trigger & Stats Invalidation", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "code", "degree": 3}, {"id": "rtdb_user_votes", "label": "RTDB: /userVotes (full tree, all users/dates)", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "RTDB: /userVotes (full tree, all users/dates)", "community": 4, "community_name": "Server Cron & Game Sync", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "code", "degree": 2}, {"id": "rtdb_votes_gameId", "label": "RTDB: votes/{gameId}/counts (public read)", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "RTDB: votes/{gameId}/counts (public read)", "community": 7, "community_name": "Prediction Vote Flow", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "code", "degree": 2}, {"id": "fs_kbo_cache", "label": "Firestore/Cache: kboCache (game_detail__ TTL)", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "Firestore/Cache: kboCache (game_detail__ TTL)", "community": 4, "community_name": "Server Cron & Game Sync", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "code", "degree": 2}, {"id": "backend_get_stats_cf", "label": "CF: /stats (getStats Cloud Function)", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "CF: /stats (getStats Cloud Function)", "community": 9, "community_name": "Game Trigger & Stats Invalidation", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "code", "degree": 2}, {"id": "backend_wait_for_cache", "label": "waitForCache / getOrFetchDynamic (polling lock)", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "waitForCache / getOrFetchDynamic (polling lock)", "community": 14, "community_name": "Scoreboard Cache", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "code", "degree": 1}, {"id": "backend_cron_0200", "label": "Cron Job: 02:00 daily (syncGamesForMonth + kboCache invalidation)", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": "Cron Job: 02:00 daily (syncGamesForMonth + kboCache invalidation)", "community": 4, "community_name": "Server Cron & Game Sync", "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md", "file_type": "code", "degree": 2}];
|
|
const RAW_EDGES = [{"from": "backend_reads_svc_scoreboardservice", "to": "backend_reads_firestore_users", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_ranksnapshotservice", "to": "backend_reads_firestore_users", "label": "writes_to", "title": "writes_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_writes_cron_dailyarchive", "to": "backend_reads_firestore_users", "label": "writes_to", "title": "writes_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_userservice", "to": "backend_reads_firestore_users", "label": "writes_to", "title": "writes_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_lifecycle_client_fcm", "to": "backend_reads_firestore_users", "label": "writes_to", "title": "writes_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_repo_votehistoryrepo", "to": "backend_reads_firestore_votehistory", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_writes_cron_dailyarchive", "to": "backend_reads_firestore_votehistory", "label": "writes_to", "title": "writes_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_improvements_writes_w2_votehistory", "to": "backend_reads_firestore_votehistory", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_attendanceservice", "to": "backend_reads_firestore_attendance", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_attendanceservice", "to": "backend_reads_firestore_pointledger", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_repo_gamerepo", "to": "backend_reads_firestore_games", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_judgmentservice", "to": "backend_reads_firestore_games", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_gamesyncservice", "to": "backend_reads_firestore_games", "label": "writes_to", "title": "writes_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_writes_endpoint_post_admin_gameend", "to": "backend_reads_firestore_games", "label": "writes_to", "title": "writes_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_firestore_games", "to": "backend_writes_trigger_ongamecompleted", "label": "triggers", "title": "triggers [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_repo_kborepo", "to": "backend_reads_firestore_kbocache", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_repo_kbocacherepo", "to": "backend_reads_firestore_kbocache", "label": "writes_to", "title": "writes_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_repo_kbocacherepo", "to": "backend_reads_firestore_kbolocks", "label": "writes_to", "title": "writes_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_firestore_kbolocks", "to": "backend_lifecycle_concept_distributedlock", "label": "conceptually_related_to", "title": "conceptually_related_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_predictionservice", "to": "backend_reads_rtdb_votes", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_writes_svc_gameresultservice", "to": "backend_reads_rtdb_votes", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_repo_voterepo", "to": "backend_reads_rtdb_votes", "label": "writes_to", "title": "writes_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_statsservice", "to": "backend_reads_rtdb_uservotes", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_repo_voterepo", "to": "backend_reads_rtdb_uservotes", "label": "writes_to", "title": "writes_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_writes_cron_dailyarchive", "to": "backend_reads_rtdb_uservotes", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_writes_svc_gameresultservice", "to": "backend_reads_rtdb_uservotes", "label": "writes_to", "title": "writes_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_statsservice", "to": "backend_reads_rtdb_cachestats", "label": "writes_to", "title": "writes_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_writes_svc_gameresultservice", "to": "backend_reads_rtdb_cachestats", "label": "invalidates", "title": "invalidates [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_improvements_writes_w3_statsdedup", "to": "backend_reads_rtdb_cachestats", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_writes_trigger_ongamecompleted", "to": "backend_reads_rtdb_cachestats", "label": "invalidates", "title": "invalidates [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_writes_cron_dailyarchive", "to": "backend_reads_rtdb_cachestats", "label": "invalidates", "title": "invalidates [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_scoreboardservice", "to": "backend_reads_rtdb_scoreboardcache", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_ranksnapshotservice", "to": "backend_reads_rtdb_scoreboardcache", "label": "writes_to", "title": "writes_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_rtdb_scoreboardcache", "to": "backend_lifecycle_concept_precompute", "label": "conceptually_related_to", "title": "conceptually_related_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_userservice", "to": "backend_reads_rtdb_nicknames", "label": "writes_to", "title": "writes_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_userservice", "to": "backend_reads_rtdb_usernicknames", "label": "writes_to", "title": "writes_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_gamelistservice", "to": "backend_reads_external_kbo", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_repo_kborepo", "to": "backend_reads_external_kbo", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_gamedetailservice", "to": "backend_reads_external_kbo", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_gamesyncservice", "to": "backend_reads_external_kbo", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_gamelistservice", "to": "backend_reads_memcache", "label": "caches", "title": "caches [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_scoreboardservice", "to": "backend_reads_memcache", "label": "caches", "title": "caches [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_predictionservice", "to": "backend_reads_memcache", "label": "caches", "title": "caches [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_endpoint_kbo_games", "to": "backend_reads_svc_gamelistservice", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_endpoint_kbo_rank", "to": "backend_reads_svc_rankservice", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_rankservice", "to": "backend_reads_repo_kborepo", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_endpoint_kbo_player", "to": "backend_reads_svc_playerservice", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_playerservice", "to": "backend_reads_repo_kborepo", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_endpoint_kbo_schedule", "to": "backend_reads_svc_scheduleservice", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_scheduleservice", "to": "backend_reads_repo_kborepo", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_endpoint_kbo_gamedetail", "to": "backend_reads_svc_gamedetailservice", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_gamedetailservice", "to": "backend_reads_repo_kbocacherepo", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_improvements_writes_w6_gamedetailttl", "to": "backend_reads_svc_gamedetailservice", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_endpoint_scoreboard", "to": "backend_reads_svc_scoreboardservice", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_improvements_reads_r5_fieldmask", "to": "backend_reads_svc_scoreboardservice", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_endpoint_stats", "to": "backend_reads_svc_statsservice", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_svc_statsservice", "to": "backend_reads_repo_votehistoryrepo", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_endpoint_prediction_summary", "to": "backend_reads_svc_predictionservice", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_writes_cron_dailyarchive", "to": "backend_reads_svc_judgmentservice", "label": "triggers", "title": "triggers [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_writes_cron_kbodailyrefresh", "to": "backend_reads_svc_gamesyncservice", "label": "triggers", "title": "triggers [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_improvements_writes_w1_diff", "to": "backend_reads_svc_gamesyncservice", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_writes_endpoint_debug_forcesync", "to": "backend_reads_svc_gamesyncservice", "label": "triggers", "title": "triggers [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_writes_endpoint_post_user", "to": "backend_reads_svc_userservice", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_writes_endpoint_patch_user", "to": "backend_reads_svc_userservice", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_writes_endpoint_get_user", "to": "backend_reads_svc_userservice", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_improvements_writes_w5r6_photourl", "to": "backend_reads_svc_userservice", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_writes_cron_dailyarchive", "to": "backend_reads_svc_ranksnapshotservice", "label": "triggers", "title": "triggers [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_improvements_writes_w4_ranksnapshot", "to": "backend_reads_svc_ranksnapshotservice", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_writes_endpoint_post_checkin", "to": "backend_reads_svc_attendanceservice", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_writes_cron_kbodailyrefresh", "to": "backend_reads_repo_kbocacherepo", "label": "triggers", "title": "triggers [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_improvements_reads_r4_backoff", "to": "backend_reads_repo_kbocacherepo", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_improvements_reads_r7_parallelrank", "to": "backend_reads_repo_kborepo", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_endpoint_prediction", "to": "backend_reads_repo_voterepo", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_writes_endpoint_post_prediction", "to": "backend_reads_repo_voterepo", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_writes_endpoint_put_prediction", "to": "backend_reads_repo_voterepo", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_reads_endpoint_prediction_games", "to": "backend_reads_repo_gamerepo", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_improvements_reads_r1_gamedaycache", "to": "backend_reads_repo_gamerepo", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_lifecycle_client_swrcache", "to": "backend_reads_endpoint_kbo_schedule", "label": "caches", "title": "caches [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_lifecycle_client_swrcache", "to": "backend_reads_endpoint_kbo_gamedetail", "label": "caches", "title": "caches [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_improvements_reads_r1_gamedaycache", "to": "backend_writes_cron_dailyarchive", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_writes_trigger_ongamecompleted", "to": "backend_writes_svc_gameresultservice", "label": "triggers", "title": "triggers [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_writes_svc_gameresultservice", "to": "backend_lifecycle_concept_fanout", "label": "conceptually_related_to", "title": "conceptually_related_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_cost_summary", "to": "opt_W1", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "opt_W1", "to": "backend_sync_games_service", "label": "optimized_by", "title": "optimized_by [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "opt_W1", "to": "fs_games", "label": "optimized_by", "title": "optimized_by [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "opt_W2", "to": "backend_daily_archive", "label": "optimized_by", "title": "optimized_by [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "opt_W2", "to": "backend_judge_day", "label": "optimized_by", "title": "optimized_by [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "opt_W3", "to": "backend_invalidate_stats", "label": "optimized_by", "title": "optimized_by [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "opt_W6", "to": "fs_kbo_cache", "label": "optimized_by", "title": "optimized_by [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_cost_summary", "to": "opt_R1", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "opt_R1", "to": "backend_daily_archive", "label": "optimized_by", "title": "optimized_by [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "opt_R1", "to": "fs_games", "label": "optimized_by", "title": "optimized_by [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "opt_R2", "to": "fs_cache_stats", "label": "optimized_by", "title": "optimized_by [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "opt_R2", "to": "fs_vote_history", "label": "optimized_by", "title": "optimized_by [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "opt_R3", "to": "rtdb_user_votes", "label": "optimized_by", "title": "optimized_by [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "opt_R4", "to": "backend_wait_for_cache", "label": "optimized_by", "title": "optimized_by [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_cost_summary", "to": "opt_C1", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "opt_C1", "to": "client_provider_vote_summary", "label": "optimized_by", "title": "optimized_by [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "opt_C1", "to": "rtdb_votes_gameId", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_improvements_summary", "to": "opt_C1", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "opt_C1", "to": "client_vote_repo_after", "label": "optimized_by", "title": "optimized_by [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "opt_C2", "to": "client_provider_h2h", "label": "optimized_by", "title": "optimized_by [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_improvements_summary", "to": "opt_C2", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "opt_C2", "to": "client_h2h_provider_after", "label": "optimized_by", "title": "optimized_by [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "opt_C2", "to": "client_standings_provider_after", "label": "optimized_by", "title": "optimized_by [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "opt_C3", "to": "client_provider_ace_pitcher", "label": "optimized_by", "title": "optimized_by [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_improvements_summary", "to": "opt_C3", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "opt_C3", "to": "client_ace_pitcher_after", "label": "optimized_by", "title": "optimized_by [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "opt_C4", "to": "client_provider_current_user", "label": "optimized_by", "title": "optimized_by [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "opt_C4", "to": "client_provider_scoreboard", "label": "optimized_by", "title": "optimized_by [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "opt_C4", "to": "client_provider_user_stats", "label": "optimized_by", "title": "optimized_by [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_improvements_summary", "to": "opt_C4", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "opt_C4", "to": "client_current_user_after", "label": "optimized_by", "title": "optimized_by [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_overview", "to": "readme_cost_summary", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_overview", "to": "readme_index_ok", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_dio_provider", "to": "client_api_base", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_game_repo", "to": "client_ep_schedule", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_user_repo", "to": "client_ep_get_user", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_user_repo", "to": "client_ep_check_nickname", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_user_repo", "to": "client_ep_post_user", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_user_repo", "to": "client_ep_patch_user", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_user_repo", "to": "client_ep_delete_user", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_user_repo", "to": "client_ep_stats", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_user_repo", "to": "client_ep_stats_history", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_prediction_repo", "to": "client_ep_post_prediction", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_prediction_repo", "to": "client_ep_put_prediction", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_prediction_repo", "to": "client_ep_get_prediction", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_prediction_repo", "to": "client_ep_vote_summary", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_team_record_repo", "to": "client_ep_rank", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_player_repo", "to": "client_ep_player", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_game_detail_repo", "to": "client_ep_game_detail", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_scoreboard_repo", "to": "client_ep_scoreboard", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_attendance_repo", "to": "client_ep_attendance_month", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_attendance_repo", "to": "client_ep_checkin", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_attendance_repo", "to": "client_ep_notifications", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_provider_monthly_schedule", "to": "client_ep_schedule", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_provider_rank", "to": "client_ep_rank", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_provider_h2h", "to": "client_ep_rank", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_provider_pitchers", "to": "client_ep_player", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_provider_ace_pitcher", "to": "client_ep_player", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_provider_game_detail", "to": "client_ep_game_detail", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_provider_current_user", "to": "client_ep_get_user", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_splash_page", "to": "client_ep_get_user", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_current_user_after", "to": "client_ep_get_user", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_provider_user_stats", "to": "client_ep_stats", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_provider_prediction_action", "to": "client_ep_post_prediction", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_provider_vote_summary", "to": "client_ep_vote_summary", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_provider_scoreboard", "to": "client_ep_scoreboard", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_provider_checkin_controller", "to": "client_ep_checkin", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_fcm_service", "to": "fs_users_fcm_tokens", "label": "writes_to", "title": "writes_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_schedule_cache", "to": "client_swr_cache", "label": "implements", "title": "implements [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_game_detail_cache", "to": "client_swr_cache", "label": "implements", "title": "implements [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_day_record_cache", "to": "client_swr_cache", "label": "implements", "title": "implements [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_game_record_dates_cache", "to": "client_swr_cache", "label": "implements", "title": "implements [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_provider_monthly_schedule", "to": "client_schedule_cache", "label": "caches", "title": "caches [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_provider_game_detail", "to": "client_game_detail_cache", "label": "caches", "title": "caches [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_provider_day_prediction_record", "to": "client_day_record_cache", "label": "caches", "title": "caches [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_provider_game_record_dates", "to": "client_game_record_dates_cache", "label": "caches", "title": "caches [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_provider_prediction_action", "to": "client_provider_vote_summary", "label": "invalidates", "title": "invalidates [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_ace_pitcher_after", "to": "client_provider_pitchers", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "client_vote_repo_after", "to": "rtdb_vote_aggregates", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "rtdb_votes_gameId", "to": "rtdb_vote_aggregates", "label": "semantically_similar_to", "title": "semantically_similar_to [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "client_h2h_provider_after", "to": "client_standings_provider_after", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_debug_handlers", "to": "backend_sync_games_service", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_debug_handlers", "to": "backend_daily_archive", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_sync_games_service", "to": "fs_games", "label": "writes_to", "title": "writes_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_cron_0200", "to": "backend_sync_games_service", "label": "triggers", "title": "triggers [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_daily_archive", "to": "fs_vote_history", "label": "writes_to", "title": "writes_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_daily_archive", "to": "fs_daily_archive", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_daily_archive", "to": "rtdb_user_votes", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_judge_day", "to": "fs_vote_history", "label": "writes_to", "title": "writes_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_on_game_completed", "to": "backend_invalidate_stats", "label": "triggers", "title": "triggers [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_invalidate_stats", "to": "fs_cache_stats", "label": "invalidates", "title": "invalidates [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_game_result_service", "to": "backend_invalidate_stats", "label": "triggers", "title": "triggers [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_get_stats_cf", "to": "fs_vote_history", "label": "reads_from", "title": "reads_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "backend_get_stats_cf", "to": "fs_cache_stats", "label": "reads_from", "title": "reads_from [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "backend_cron_0200", "to": "fs_kbo_cache", "label": "invalidates", "title": "invalidates [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}];
|
|
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Read/Write Optimization Fixes", "count": 22}, {"cid": 1, "color": "#F28E2B", "label": "Archive & Stats Pipeline", "count": 18}, {"cid": 2, "color": "#E15759", "label": "Scoreboard & User Write Fixes", "count": 16}, {"cid": 3, "color": "#76B7B2", "label": "Client User Auth & Profile", "count": 16}, {"cid": 4, "color": "#59A14F", "label": "Server Cron & Game Sync", "count": 15}, {"cid": 5, "color": "#EDC948", "label": "Client KBO Data (Rank/Player)", "count": 14}, {"cid": 6, "color": "#B07AA1", "label": "Client KBO Schedule & GameDetail", "count": 13}, {"cid": 7, "color": "#FF9DA7", "label": "Prediction Vote Flow", "count": 11}, {"cid": 8, "color": "#9C755F", "label": "Server Vote & RTDB Layer", "count": 10}, {"cid": 9, "color": "#BAB0AC", "label": "Game Trigger & Stats Invalidation", "count": 10}, {"cid": 10, "color": "#4E79A7", "label": "Attendance & Notification", "count": 5}, {"cid": 11, "color": "#F28E2B", "label": "Attendance Service (Server)", "count": 4}, {"cid": 12, "color": "#E15759", "label": "kboCache & Lock", "count": 2}, {"cid": 13, "color": "#76B7B2", "label": "User Profile Service", "count": 2}, {"cid": 14, "color": "#59A14F", "label": "Scoreboard Cache", "count": 2}, {"cid": 15, "color": "#EDC948", "label": "Nickname Reservation", "count": 1}, {"cid": 16, "color": "#B07AA1", "label": "voteHistory Subcollection", "count": 1}, {"cid": 17, "color": "#FF9DA7", "label": "pointLedger Subcollection", "count": 1}, {"cid": 18, "color": "#9C755F", "label": "Firebase Auth (Client)", "count": 1}, {"cid": 19, "color": "#BAB0AC", "label": "Remote Config (Client)", "count": 1}, {"cid": 20, "color": "#4E79A7", "label": "Firestore Trigger", "count": 1}, {"cid": 21, "color": "#F28E2B", "label": "rankSnapshot Service", "count": 1}, {"cid": 22, "color": "#E15759", "label": "KBO External API", "count": 1}, {"cid": 23, "color": "#76B7B2", "label": "MemCache (In-Memory)", "count": 1}, {"cid": 24, "color": "#59A14F", "label": "RTDB userVotes Path", "count": 1}, {"cid": 25, "color": "#EDC948", "label": "RTDB scoreboardCache", "count": 1}, {"cid": 26, "color": "#B07AA1", "label": "Client Prediction Provider", "count": 1}, {"cid": 27, "color": "#FF9DA7", "label": "Stats Cache (RTDB)", "count": 1}];
|
|
|
|
// HTML-escape helper — prevents XSS when injecting graph data into innerHTML
|
|
function esc(s) {
|
|
return String(s).replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"').replace(/'/g,''');
|
|
}
|
|
|
|
// Build vis datasets
|
|
const nodesDS = new vis.DataSet(RAW_NODES.map(n => ({
|
|
id: n.id, label: n.label, color: n.color, size: n.size,
|
|
font: n.font, title: n.title,
|
|
_community: n.community, _community_name: n.community_name,
|
|
_source_file: n.source_file, _file_type: n.file_type, _degree: n.degree,
|
|
})));
|
|
|
|
const edgesDS = new vis.DataSet(RAW_EDGES.map((e, i) => ({
|
|
id: i, from: e.from, to: e.to,
|
|
label: '',
|
|
title: e.title,
|
|
dashes: e.dashes,
|
|
width: e.width,
|
|
color: e.color,
|
|
arrows: { to: { enabled: true, scaleFactor: 0.5 } },
|
|
})));
|
|
|
|
const container = document.getElementById('graph');
|
|
const network = new vis.Network(container, { nodes: nodesDS, edges: edgesDS }, {
|
|
physics: {
|
|
enabled: true,
|
|
solver: 'forceAtlas2Based',
|
|
forceAtlas2Based: {
|
|
gravitationalConstant: -60,
|
|
centralGravity: 0.005,
|
|
springLength: 120,
|
|
springConstant: 0.08,
|
|
damping: 0.4,
|
|
avoidOverlap: 0.8,
|
|
},
|
|
stabilization: { iterations: 200, fit: true },
|
|
},
|
|
interaction: {
|
|
hover: true,
|
|
tooltipDelay: 100,
|
|
hideEdgesOnDrag: true,
|
|
navigationButtons: false,
|
|
keyboard: false,
|
|
},
|
|
nodes: { shape: 'dot', borderWidth: 1.5 },
|
|
edges: { smooth: { type: 'continuous', roundness: 0.2 }, selectionWidth: 3 },
|
|
});
|
|
|
|
network.once('stabilizationIterationsDone', () => {
|
|
network.setOptions({ physics: { enabled: false } });
|
|
});
|
|
|
|
function showInfo(nodeId) {
|
|
const n = nodesDS.get(nodeId);
|
|
if (!n) return;
|
|
const neighborIds = network.getConnectedNodes(nodeId);
|
|
const neighborItems = neighborIds.map(nid => {
|
|
const nb = nodesDS.get(nid);
|
|
const color = nb ? nb.color.background : '#555';
|
|
return `<span class="neighbor-link" style="border-left-color:${esc(color)}" onclick="focusNode(${JSON.stringify(nid)})">${esc(nb ? nb.label : nid)}</span>`;
|
|
}).join('');
|
|
document.getElementById('info-content').innerHTML = `
|
|
<div class="field"><b>${esc(n.label)}</b></div>
|
|
<div class="field">Type: ${esc(n._file_type || 'unknown')}</div>
|
|
<div class="field">Community: ${esc(n._community_name)}</div>
|
|
<div class="field">Source: ${esc(n._source_file || '-')}</div>
|
|
<div class="field">Degree: ${n._degree}</div>
|
|
${neighborIds.length ? `<div class="field" style="margin-top:8px;color:#aaa;font-size:11px">Neighbors (${neighborIds.length})</div><div id="neighbors-list">${neighborItems}</div>` : ''}
|
|
`;
|
|
}
|
|
|
|
function focusNode(nodeId) {
|
|
network.focus(nodeId, { scale: 1.4, animation: true });
|
|
network.selectNodes([nodeId]);
|
|
showInfo(nodeId);
|
|
}
|
|
|
|
// Track hovered node — hover detection is more reliable than click params
|
|
let hoveredNodeId = null;
|
|
network.on('hoverNode', params => {
|
|
hoveredNodeId = params.node;
|
|
container.style.cursor = 'pointer';
|
|
});
|
|
network.on('blurNode', () => {
|
|
hoveredNodeId = null;
|
|
container.style.cursor = 'default';
|
|
});
|
|
container.addEventListener('click', () => {
|
|
if (hoveredNodeId !== null) {
|
|
showInfo(hoveredNodeId);
|
|
network.selectNodes([hoveredNodeId]);
|
|
}
|
|
});
|
|
network.on('click', params => {
|
|
if (params.nodes.length > 0) {
|
|
showInfo(params.nodes[0]);
|
|
} else if (hoveredNodeId === null) {
|
|
document.getElementById('info-content').innerHTML = '<span class="empty">Click a node to inspect it</span>';
|
|
}
|
|
});
|
|
|
|
const searchInput = document.getElementById('search');
|
|
const searchResults = document.getElementById('search-results');
|
|
searchInput.addEventListener('input', () => {
|
|
const q = searchInput.value.toLowerCase().trim();
|
|
searchResults.innerHTML = '';
|
|
if (!q) { searchResults.style.display = 'none'; return; }
|
|
const matches = RAW_NODES.filter(n => n.label.toLowerCase().includes(q)).slice(0, 20);
|
|
if (!matches.length) { searchResults.style.display = 'none'; return; }
|
|
searchResults.style.display = 'block';
|
|
matches.forEach(n => {
|
|
const el = document.createElement('div');
|
|
el.className = 'search-item';
|
|
el.textContent = n.label;
|
|
el.style.borderLeft = `3px solid ${n.color.background}`;
|
|
el.style.paddingLeft = '8px';
|
|
el.onclick = () => {
|
|
network.focus(n.id, { scale: 1.5, animation: true });
|
|
network.selectNodes([n.id]);
|
|
showInfo(n.id);
|
|
searchResults.style.display = 'none';
|
|
searchInput.value = '';
|
|
};
|
|
searchResults.appendChild(el);
|
|
});
|
|
});
|
|
document.addEventListener('click', e => {
|
|
if (!searchResults.contains(e.target) && e.target !== searchInput)
|
|
searchResults.style.display = 'none';
|
|
});
|
|
|
|
const hiddenCommunities = new Set();
|
|
|
|
const selectAllCb = document.getElementById('select-all-cb');
|
|
|
|
function updateSelectAllState() {
|
|
const total = LEGEND.length;
|
|
const hidden = hiddenCommunities.size;
|
|
selectAllCb.checked = hidden === 0;
|
|
selectAllCb.indeterminate = hidden > 0 && hidden < total;
|
|
}
|
|
|
|
function toggleAllCommunities(hide) {
|
|
document.querySelectorAll('.legend-item').forEach(item => {
|
|
hide ? item.classList.add('dimmed') : item.classList.remove('dimmed');
|
|
});
|
|
document.querySelectorAll('.legend-cb').forEach(cb => {
|
|
cb.checked = !hide;
|
|
});
|
|
LEGEND.forEach(c => {
|
|
if (hide) hiddenCommunities.add(c.cid); else hiddenCommunities.delete(c.cid);
|
|
});
|
|
const updates = RAW_NODES.map(n => ({ id: n.id, hidden: hide }));
|
|
nodesDS.update(updates);
|
|
updateSelectAllState();
|
|
}
|
|
|
|
const legendEl = document.getElementById('legend');
|
|
LEGEND.forEach(c => {
|
|
const item = document.createElement('div');
|
|
item.className = 'legend-item';
|
|
const cb = document.createElement('input');
|
|
cb.type = 'checkbox';
|
|
cb.className = 'legend-cb';
|
|
cb.checked = true;
|
|
cb.addEventListener('change', (e) => {
|
|
e.stopPropagation();
|
|
if (cb.checked) {
|
|
hiddenCommunities.delete(c.cid);
|
|
item.classList.remove('dimmed');
|
|
} else {
|
|
hiddenCommunities.add(c.cid);
|
|
item.classList.add('dimmed');
|
|
}
|
|
const updates = RAW_NODES
|
|
.filter(n => n.community === c.cid)
|
|
.map(n => ({ id: n.id, hidden: !cb.checked }));
|
|
nodesDS.update(updates);
|
|
updateSelectAllState();
|
|
});
|
|
item.innerHTML = `<div class="legend-dot" style="background:${c.color}"></div>
|
|
<span class="legend-label">${c.label}</span>
|
|
<span class="legend-count">${c.count}</span>`;
|
|
item.prepend(cb);
|
|
item.onclick = (e) => {
|
|
if (e.target === cb) return;
|
|
cb.checked = !cb.checked;
|
|
cb.dispatchEvent(new Event('change'));
|
|
};
|
|
legendEl.appendChild(item);
|
|
});
|
|
</script>
|
|
<script>
|
|
// Render hyperedges as shaded regions
|
|
const hyperedges = [{"id": "kbo_cache_pipeline", "label": "KBO External Fetch to Cache to Client Endpoint Pipeline", "nodes": ["backend_reads_external_kbo", "backend_reads_firestore_kbocache", "backend_reads_repo_kbocacherepo", "backend_reads_firestore_kbolocks", "backend_lifecycle_concept_distributedlock"], "relation": "participate_in", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "graphify-out/tmp-corpus/backend_backend-reads.md"}, {"id": "daily_archive_write_pipeline", "label": "dailyArchive Cron Write Pipeline", "nodes": ["backend_writes_cron_dailyarchive", "backend_reads_svc_judgmentservice", "backend_reads_firestore_votehistory", "backend_reads_firestore_users", "backend_reads_svc_ranksnapshotservice", "backend_reads_rtdb_scoreboardcache", "backend_reads_rtdb_cachestats"], "relation": "participate_in", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "graphify-out/tmp-corpus/backend_backend-writes.md"}, {"id": "game_completed_fanout", "label": "onGameCompleted Fan-out Write Pattern", "nodes": ["backend_writes_trigger_ongamecompleted", "backend_writes_svc_gameresultservice", "backend_reads_rtdb_uservotes", "backend_reads_rtdb_cachestats", "backend_lifecycle_concept_fanout"], "relation": "implement", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "graphify-out/tmp-corpus/backend_backend-writes.md"}, {"id": "backend_read_optimization_set", "label": "Backend Read Optimization Set R1 R4 R5 R7", "nodes": ["backend_improvements_reads_r1_gamedaycache", "backend_improvements_reads_r4_backoff", "backend_improvements_reads_r5_fieldmask", "backend_improvements_reads_r7_parallelrank"], "relation": "form", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "graphify-out/tmp-corpus/backend_improvements-backend-reads.md"}, {"id": "backend_write_optimization_set", "label": "Backend Write Optimization Set W1 through W6", "nodes": ["backend_improvements_writes_w1_diff", "backend_improvements_writes_w2_votehistory", "backend_improvements_writes_w3_statsdedup", "backend_improvements_writes_w4_ranksnapshot", "backend_improvements_writes_w5r6_photourl", "backend_improvements_writes_w6_gamedetailttl"], "relation": "form", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "graphify-out/tmp-corpus/backend_improvements-backend-writes.md"}, {"id": "prediction_vote_flow", "label": "User Prediction Vote Flow", "nodes": ["backend_writes_endpoint_post_prediction", "backend_writes_endpoint_put_prediction", "backend_reads_repo_voterepo", "backend_reads_rtdb_votes", "backend_reads_rtdb_uservotes"], "relation": "participate_in", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "graphify-out/tmp-corpus/backend_backend-writes.md"}, {"id": "tier1_optimizations", "label": "Tier 1 High-Impact Low-Risk Optimizations", "nodes": ["opt_W1", "opt_W2", "opt_R1", "opt_C1"], "relation": "form", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md"}, {"id": "tier2_optimizations", "label": "Tier 2 Medium-Impact Optimizations", "nodes": ["opt_R2", "opt_W3", "opt_R3", "opt_R4", "opt_C2", "opt_C3"], "relation": "form", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md"}, {"id": "tier3_optimizations", "label": "Tier 3 Small / Housekeeping Optimizations", "nodes": ["opt_W4", "opt_W5", "opt_W6", "opt_R5", "opt_R6", "opt_R7", "opt_C4"], "relation": "form", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "graphify-out/tmp-corpus/backend_optimization-plan.md"}, {"id": "client_applied_improvements", "label": "Applied Client Optimizations (opt/client-rw branch)", "nodes": ["opt_C1", "opt_C2", "opt_C3", "opt_C4", "client_vote_repo_after", "client_standings_provider_after", "client_h2h_provider_after", "client_ace_pitcher_after", "client_current_user_after"], "relation": "implement", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "graphify-out/tmp-corpus/client_improvements-client.md"}, {"id": "swr_cache_adapters", "label": "SWR Cache Adapters (4 domains)", "nodes": ["client_schedule_cache", "client_game_detail_cache", "client_day_record_cache", "client_game_record_dates_cache"], "relation": "implement", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "graphify-out/tmp-corpus/client_client-patterns.md"}, {"id": "client_keepalive_repos", "label": "All Client Repositories (keepAlive)", "nodes": ["client_game_repo", "client_user_repo", "client_prediction_repo", "client_team_record_repo", "client_player_repo", "client_game_detail_repo", "client_scoreboard_repo", "client_attendance_repo"], "relation": "participate_in", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "graphify-out/tmp-corpus/client_client-patterns.md"}, {"id": "duplicate_call_problem", "label": "Duplicate CF Call Pattern (C2+C3)", "nodes": ["client_provider_h2h", "client_provider_rank", "client_ep_rank", "client_provider_ace_pitcher", "client_provider_pitchers", "client_ep_player"], "relation": "participate_in", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "graphify-out/tmp-corpus/client_client-patterns.md"}];
|
|
// afterDrawing passes ctx already transformed to network coordinate space.
|
|
// Draw node positions raw — no manual pan/zoom/DPR math needed.
|
|
network.on('afterDrawing', function(ctx) {
|
|
hyperedges.forEach(h => {
|
|
const positions = h.nodes
|
|
.map(nid => network.getPositions([nid])[nid])
|
|
.filter(p => p !== undefined);
|
|
if (positions.length < 2) return;
|
|
ctx.save();
|
|
ctx.globalAlpha = 0.12;
|
|
ctx.fillStyle = '#6366f1';
|
|
ctx.strokeStyle = '#6366f1';
|
|
ctx.lineWidth = 2;
|
|
ctx.beginPath();
|
|
// Centroid and expanded hull in network coordinates
|
|
const cx = positions.reduce((s, p) => s + p.x, 0) / positions.length;
|
|
const cy = positions.reduce((s, p) => s + p.y, 0) / positions.length;
|
|
const expanded = positions.map(p => ({
|
|
x: cx + (p.x - cx) * 1.15,
|
|
y: cy + (p.y - cy) * 1.15
|
|
}));
|
|
ctx.moveTo(expanded[0].x, expanded[0].y);
|
|
expanded.slice(1).forEach(p => ctx.lineTo(p.x, p.y));
|
|
ctx.closePath();
|
|
ctx.fill();
|
|
ctx.globalAlpha = 0.4;
|
|
ctx.stroke();
|
|
// Label
|
|
ctx.globalAlpha = 0.8;
|
|
ctx.fillStyle = '#4f46e5';
|
|
ctx.font = 'bold 11px sans-serif';
|
|
ctx.textAlign = 'center';
|
|
ctx.fillText(h.label, cx, cy - 5);
|
|
ctx.restore();
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |