skirianov/dom-distill

Token-efficient DOM-to-tree distiller for LLMs and browser automation. Zero dependencies.

42
/ 100
Emerging

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.

No Dependents
Maintenance 13 / 25
Adoption 11 / 25
Maturity 18 / 25
Community 0 / 25

How are scores calculated?

Stars

6

Forks

Language

TypeScript

License

MIT

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.