skirianov/dom-distill
Token-efficient DOM-to-tree distiller for LLMs and browser automation. Zero dependencies.
Executes a single-pass DOM traversal in the browser context to build a minimal JSON tree, scoring each node's interactivity via semantic tags, ARIA roles, and attributes (InteractionRank 0–10+), then filters to only actionable elements and assigns deterministic CSS selectors with stability scores (1.0 for `data-testid`, 0.3 for structural selectors). Includes optional React Fiber introspection to extract component names and patterns, plus fingerprint-based diffing to send only DOM deltas across LLM calls—reducing typical payloads by 90–97%.
Available on npm.
Stars
6
Forks
—
Language
TypeScript
License
MIT
Category
Last pushed
Mar 08, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/agents/skirianov/dom-distill"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
alibaba/page-agent
JavaScript in-page GUI agent. Control web interfaces with natural language.
steel-dev/steel-browser
🔥 Open Source Browser API for AI Agents & Apps. Steel Browser is a batteries-included browser...
4ier/neo
Turn any web app into an API. Chrome extension captures browser traffic, auto-generates schemas,...
violettoolssite/CFspider
Cloudflare Workers 代理 IP 池,VLESS 动态 IP,内置 AI 智能浏览器支持自然语言控制
actionbook/actionbook
Browser action engine for AI agents. 10× faster, resilient by design.