HomeToolsMCPHow It WorksStoriesPhilosophyArchitectureStar on GitHub
All Tools
D
Dev ToolsFreeOpen Source

DOMGLYPH

UI that speaks to humans and machines — every component is a machine-readable contract.

MIT

ABOUT

AI agents, browser automation, and end-to-end test suites currently interact with web UIs through guesswork: matching by visible text, CSS class names, XPath, or visual position. Those signals break the moment a developer renames a class, restructures a layout, or tweaks copy — and the resulting failures compound across LLM copilots, Playwright tests, and RPA pipelines. DOMglyph removes that guesswork by treating the UI itself as a contract. Every component renders normally for users *and* publishes a stable semantic layer through `data-ai-*` attributes (`data-ai-id`, `data-ai-role`, `data-ai-action`, `data-ai-state`, `data-ai-screen`, `data-ai-section`, `data-ai-entity`, `data-ai-entity-id`). A companion runtime (`window.__DOMGLYPH__`) exposes `getScreenContext()`, `getAvailableActions()`, `getFormSchema()`, and `getRecentEvents()` so any agent can introspect the page and trigger actions deterministically — without parsing HTML or training on a specific DOM. This replaces fragile selectors, ad-hoc test IDs, and bespoke scraping layers with a typed, queryable interface. Frontend developers, UI engineers, and design-system builders shipping products that embed AI copilots, LLM-driven workflows, or large automated test suites get a single React + TypeScript library (ActionButton, FormField, Input, DataTable, Modal, etc.) where accessibility, styling, and machine-legibility are first-class from day one.

INSTALL
npm install @domglyph/components @domglyph/ai-contract @domglyph/runtime

INTEGRATION GUIDE

1. Building product UIs that embedded AI copilots and LLM agents can operate reliably without DOM scraping or per-app prompt engineering of selectors. 2. Replacing brittle CSS/XPath selectors in Playwright, Cypress, and Selenium suites with stable `data-ai-action` and `data-ai-id` targets, dramatically cutting test flakiness. 3. Powering browser-automation pipelines and RPA workflows that need a deterministic list of available actions and current element states on each screen. 4. Exposing form schemas via `getFormSchema()` so LLMs can fill, validate, and submit complex create/edit flows without being trained on the specific markup. 5. Shipping AI-native dashboards and admin panels where humans and autonomous agents share the same interface, with entity tracking (`data-ai-entity`, `data-ai-entity-id`) tying UI elements to domain objects. 6. Instrumenting multi-agent scenarios where multiple agents introspect screen context and recent events in real time to coordinate UI operations. 7. Standardizing an internal React design system (with primitives like Box, Stack, ButtonBase plus `@domglyph/tokens` design tokens) that is accessibility-compliant and AI-operable out of the box.

TAGS

ai-nativedesign-systemreacttypescriptcomponent-libraryai-agentsbrowser-automationllm-toolse2e-testingui-componentsaccessibilitydeveloper-tools
DOMglyph — AI Tool | Agentic AI For Good