Deterministic scene graph for browser agents, fusing DOM, accessibility, style, and text.
ui‑graph builds a deterministic, content‑addressed scene graph that merges DOM, accessibility, style, and text evidence into a single, traceable structure. It preserves source conflicts, flags disagreements, and produces budgeted text views that report what was dropped, making it ideal for building browser agents that need precise provenance. The library is pure TypeScript, requires no browser or OCR, and is designed for developers who already capture page data with CDP or Playwright. Compared to flat accessibility trees, ui‑graph keeps geometry, role, and text in sync, giving agents a richer, verifiable context.
View on GitHub →apatureai/ui-graph