How adirwt852-cloud/graph works
GraphFlow scans frontend and backend source to build a dependency graph, then supports impact simulations, runtime-trace views, reports, and evaluation. Users can access the analysis through the CLI, server-backed UI, or GitHub Action. The supplied excerpts show key scanner, graph-builder, simulator, and UI relationships; some package capabilities are indexed but their internal call paths were not sampled, so those links are omitted.
Main entry points: App.tsx Analysis UI · index.ts CLI · server.ts Web Server · simulator.ts What-if Simulator
Components 23
Entry Points
- CLI
packages/cli/src/index.ts - Web Server
server.ts - GitHub Action
packages/github-action/src/action.ts
Graph Analysis
- Frontend Scanner
packages/scanner/src/frontendScanner.ts - Backend Scanner
packages/scanner/src/backendScanner.ts - Route Matcher
packages/scanner/src/routeMatcher.ts - Graph Builder
packages/graph-builder/src/graphBuilder.ts - Graph Types
packages/graph-builder/src/types.ts
Impact & Evidence
- What-if Simulator
packages/simulator/src/simulator.ts - Evaluation Harness
packages/evaluation/src/evaluationHarness.ts - Runtime Agent
packages/runtime-agent/src/runtimeAgent.ts
Reports & UI
- HTML Reporter
packages/reporter/src/htmlReporter.ts - PR Comment Formatter
packages/reporter/src/prCommentFormatter.ts - Analysis UI
src/App.tsx - Graph Canvas
src/components/GraphCanvas.tsx - Node Inspector
src/components/NodeInspectorModal.tsx - Simulation Controls
src/components/SimulationControls.tsx - Scenario Comparison
src/components/ScenarioComparisonModal.tsx - Evaluation Dashboard
src/components/EvaluationDashboard.tsx - PR Comment Preview
src/components/PrCommentSimulator.tsx - Runtime Trace View
src/components/RuntimeTraceView.tsx - Unresolved Sites
src/components/UnresolvedSitesModal.tsx
Other components
- Engineer
Connections 27
- Engineer → CLI: runs analysis
packages/cli/src/index.ts - Engineer → Web Server: uses web UI
server.ts - Engineer → GitHub Action: runs action
- CLI → Frontend Scanner: scans frontend
packages/cli/src/index.ts - CLI → Backend Scanner: scans backend
packages/cli/src/index.ts - CLI → Route Matcher: matches routes
packages/cli/src/index.ts - CLI → Graph Builder: builds graph
packages/cli/src/index.ts - CLI → What-if Simulator: runs simulation
packages/cli/src/index.ts - Web Server → Frontend Scanner: scans frontend
server.ts - Web Server → Backend Scanner: scans backend
server.ts - Web Server → Route Matcher: matches routes
server.ts - Web Server → Graph Builder: builds graph
server.ts - Web Server → What-if Simulator: runs scenarios
server.ts - Frontend Scanner → Route Matcher: provides call sites
packages/scanner/src/routeMatcher.ts - Backend Scanner → Route Matcher: provides routes
packages/scanner/src/routeMatcher.ts - Graph Builder → Graph Types: uses graph model
packages/graph-builder/src/graphBuilder.ts - What-if Simulator → Graph Types: uses graph model
packages/simulator/src/simulator.ts - Evaluation Harness → What-if Simulator: runs simulations
packages/evaluation/src/evaluationHarness.ts - Analysis UI → Graph Canvas: renders graph
src/App.tsx - Analysis UI → Node Inspector: shows node details
src/App.tsx - Analysis UI → Simulation Controls: offers controls
src/App.tsx - Analysis UI → Scenario Comparison: shows comparisons
src/App.tsx - Analysis UI → Evaluation Dashboard: shows evaluation
src/App.tsx - Analysis UI → PR Comment Preview: shows preview
src/App.tsx - Analysis UI → Runtime Trace View: shows traces
src/App.tsx - Analysis UI → Unresolved Sites: shows unresolved calls
src/App.tsx - PR Comment Preview → PR Comment Formatter: formats comment
src/components/PrCommentSimulator.tsx