{"id":27204870,"url":"https://github.com/grayoj/treeflow","last_synced_at":"2025-04-09T22:59:55.531Z","repository":{"id":283490269,"uuid":"951931278","full_name":"grayoj/treeflow","owner":"grayoj","description":"A real-time DOM tree visualizer that allows users to inspect, manipulate, and explore the structure of a webpage.","archived":false,"fork":false,"pushed_at":"2025-04-09T20:12:47.000Z","size":68,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T22:59:51.214Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://treeflow-psi.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grayoj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-20T13:19:36.000Z","updated_at":"2025-04-09T20:12:51.000Z","dependencies_parsed_at":"2025-03-20T14:41:57.246Z","dependency_job_id":"4fa7b1e7-d52c-4a65-9407-88b990b7e615","html_url":"https://github.com/grayoj/treeflow","commit_stats":null,"previous_names":["grayoj/treeflow"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grayoj%2Ftreeflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grayoj%2Ftreeflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grayoj%2Ftreeflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grayoj%2Ftreeflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grayoj","download_url":"https://codeload.github.com/grayoj/treeflow/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125582,"owners_count":21051768,"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":[],"created_at":"2025-04-09T22:59:54.941Z","updated_at":"2025-04-09T22:59:55.495Z","avatar_url":"https://github.com/grayoj.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Treeflow \n\nTreeflow is a tool that visualizes the structure of a webpage’s DOM (Document Object Model) in real time. It converts the hierarchical relationships between elements into an interactive tree, allowing users to inspect, modify, and explore the webpage’s structure dynamically.\n\n![Treeflow Preview](https://yzub7xjzmf.ufs.sh/f/p5WCAJ95HVcju07ksZbmkZY7oWbqljgCEt0BL6f2hMGT9H3x)\n\n\n## How It Works\n\nTreeflow captures the current state of the DOM and represents it as a graph. Each HTML element becomes a node, and parent-child relationships are shown as connecting edges. The visualization updates when elements are added, removed, or modified.\n\n![Treeflow in Action](https://yzub7xjzmf.ufs.sh/f/p5WCAJ95HVcjnjmoEiupTo3uQUHaivRf6V9ePmEy0kIchZdF)\n\n### Accuracy Considerations\n\n- The structure displayed is based on the DOM at the time of capture.\n- Some dynamically generated elements may not appear immediately if they are loaded asynchronously.\n- Treeflow does not display non-DOM elements like JavaScript variables or event listeners.\n\n## Features\n\n- **Real-Time DOM Inspection** - See the structure of the webpage’s DOM as it currently exists.\n- **Command Execution** - Run JavaScript commands to modify the DOM and see the changes reflected in the visualization.\n- **Interactive Graph** - Click on nodes to highlight elements and understand their relationships.\n- **JSON Representation** - View the DOM as structured JSON data.\n- **Light and Dark Mode** - Adjust the interface for better readability.\n\n## Installation\n\n### 1. Clone the Repository\n```sh\ngit clone https://github.com/grayoj/treeflow.git\ncd treeflow\n```\n\n### 2. Install Dependencies\n\nUsing Bun (preferred):\n```sh\nbun install\n```\nor using npm:\n```sh\nnpm install\n```\n\n### 3. Run the Application\n\nUsing Bun:\n```sh\nbun run dev\n```\nor using npm:\n```sh\nnpm run dev\n```\n\n## Usage\n\n- Run JavaScript commands in the input box to inspect or modify the DOM.\n- Click on elements in the visualizer to see their relationships.\n- Use the JSON view to get a structured representation of the DOM tree.\n- Refresh the page to reset the visualization if needed.\n\n## License\n\nThis project is open-source under the MIT License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrayoj%2Ftreeflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrayoj%2Ftreeflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrayoj%2Ftreeflow/lists"}