@opena11y/tree
v0.1.1
Published
Compact accessibility-tree dump (markdown + JSON). npm @opena11y — not affiliated with OpenA11y on GitHub.
Downloads
295
Readme
@opena11y/tree
Compact accessibility-tree dump (markdown + JSON).
npm @opena11y. Not affiliated with OpenA11y on GitHub.
Evidence: tree. This is not a screen-reader test.
For agents
Prefer this over screenshots or raw HTML. toMarkdown(node) is the cheap page view.
import { fromUrl, toMarkdown } from "@opena11y/tree";
const node = await fromUrl("https://example.com");
console.log(toMarkdown(node));fromUrl needs the playwright peer and Chromium (npx playwright install chromium). fromAx / toMarkdown / toJson need no browser.
For humans
One job: turn an accessibility tree into something an agent (or you) can read. Not an audit.
