packages/feed/tools/dag-visualizer/README.md
Standalone, zero-dependency visualization of ALL data flowing through the Feed game engine tick execution.
# Open directly in browser — no server needed
open feed/tools/dag-visualizer/index.html
# Or serve it
npx serve feed/tools/dag-visualizer
Click any node in the DAG to see everything:
Three ways to load data:
tick-summary.json or full TickTrace JSON fileEmbed in any admin page via iframe:
<iframe src="/tools/dag-visualizer/index.html" style="width:100%;height:100vh;border:none"></iframe>
Enable tracing in the Feed engine:
FEED_DAG_TRACE=true bun run game-tick
Traces are written to runs/dag-traces/ with this structure:
runs/dag-traces/tick-{timestamp}-{number}/
tick-summary.json # Load this file into the visualizer
nodes/01-init.json # Full node data
llm-calls/call-001-*.json # Full LLM prompts/responses
npc-trajectories/*.json # Per-NPC decision logs