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
Monthly downloads
818
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.
CloakHQ/CloakBrowser
Stealth Chromium that passes every bot detection test. Drop-in Playwright replacement with...
hanzili/hanzi-browse
let any ai agent use the local browser
4ier/neo
Turn any web app into an API. Chrome extension captures browser traffic, auto-generates schemas,...
nicobailon/surf-cli
The CLI for AI agents to control Chrome. Zero config, agent-agnostic, battle-tested.