{"id":21487674,"url":"https://github.com/dtinth/accessibility-tree-visualizer","last_synced_at":"2025-07-15T15:31:30.239Z","repository":{"id":39275984,"uuid":"230646928","full_name":"dtinth/accessibility-tree-visualizer","owner":"dtinth","description":"Visualizes Google Chrome’s accessibility tree.","archived":false,"fork":false,"pushed_at":"2023-01-05T03:49:21.000Z","size":427,"stargazers_count":3,"open_issues_count":23,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T06:11:57.329Z","etag":null,"topics":["chrome-devtools-protocol","puppeteer"],"latest_commit_sha":null,"homepage":"https://codesandbox.io/embed/github/dtinth/accessibility-tree-visualizer/tree/master/?fontsize=14\u0026hidenavigation=1\u0026theme=dark\u0026view=preview","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dtinth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-28T18:22:13.000Z","updated_at":"2022-08-02T05:02:43.000Z","dependencies_parsed_at":"2023-02-03T09:32:23.281Z","dependency_job_id":null,"html_url":"https://github.com/dtinth/accessibility-tree-visualizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dtinth/accessibility-tree-visualizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtinth%2Faccessibility-tree-visualizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtinth%2Faccessibility-tree-visualizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtinth%2Faccessibility-tree-visualizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtinth%2Faccessibility-tree-visualizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dtinth","download_url":"https://codeload.github.com/dtinth/accessibility-tree-visualizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtinth%2Faccessibility-tree-visualizer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265443422,"owners_count":23766407,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chrome-devtools-protocol","puppeteer"],"created_at":"2024-11-23T13:30:06.738Z","updated_at":"2025-07-15T15:31:29.904Z","avatar_url":"https://github.com/dtinth.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Accessibility tree visualizer\n\nA simple React application that reads Chrome’s Accessibility Tree and visualizes it as a web page.\n\nIt can serve as a quick way to preview how VoiceOver might read your website.\n\n**Disclaimer:** This is just a proof-of-concept I did in a single night, so you will see very bad code inside.\nMoreover, the resulting webpage is not accessible at all.\n\n## How to use\n\n1. Obtain the Accessibility Tree of a website using Puppeteer with this script.\n\n   ```js\n   // get-ax-tree.js\n   const puppeteer = require('puppeteer')\n\n   ;(async () =\u003e {\n     const browser = await puppeteer.launch()\n     const page = await browser.newPage()\n     await page.goto(process.argv[2])\n     const client =\n       /** @type {import('puppeteer-core').CDPSession} */ (page._client)\n     try {\n       console.log(\n         JSON.stringify(\n           await client.send('Accessibility.getFullAXTree'),\n           null,\n           2,\n         ),\n       )\n     } catch (e) {\n       console.error(e)\n       process.exitCode = 1\n     } finally {\n       browser.close()\n     }\n   })()\n   ```\n\n   Usage:\n\n   ```\n   node get-ax-tree https://github.com/ \u003e tree.json\n   ```\n\n2. Drag the JSON file into the webpage at https://codesandbox.io/embed/github/dtinth/accessibility-tree-visualizer/tree/master/?fontsize=14\u0026hidenavigation=1\u0026theme=dark\u0026view=preview.\n\n   (Also: If you have your JSON tree copied into clipboard, you can paste it into the webpage and it will load the tree from the clipboard.)\n\n## Development\n\nI use CodeSandbox to develop this. Click this link to begin hacking: https://codesandbox.io/s/github/dtinth/accessibility-tree-visualizer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtinth%2Faccessibility-tree-visualizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdtinth%2Faccessibility-tree-visualizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtinth%2Faccessibility-tree-visualizer/lists"}