Evidence-Grounded Laws of UX & Agentic UI Auditing
Stop letting AI agents guess click targets, invent UX scores, or suggest dark patterns.
lawofux combines all 30 Laws of UX, 35+ verified HCI & 2024–2026 arXiv studies,
dark-pattern & Agentic UI guardrails, live DOM & OpenCV probes, and 8 composable --extend stack adapters.
Interactive Before / After + Live runDomUxProbe()
Toggle between a flawed interface and its lawofux-patched version, then run the real
zero-dependency scripts/dom_ux_probe.js directly against the sandbox DOM.
runDomUxProbe() Output
Ready
Measured Details
Still Unverified (Cannot Prove Statically)
Copy-Paste Cross-Framework Examples (28)
Dependency-light reference components grouped into 5 chunks (Chunking + Hick's Law + Fitts's Law) across CSS/HTMX/Shadow DOM, React & Headless, Vue/Svelte/Solid/Angular, Mobile, and Desktop/Game/TUI.