{"id":19839048,"url":"https://github.com/fedebertolini/html-size-visualizer","last_synced_at":"2025-07-01T00:03:45.045Z","repository":{"id":44117739,"uuid":"111197966","full_name":"fedebertolini/html-size-visualizer","owner":"fedebertolini","description":"Visualize an HTML document as a tree and detect the biggest sub-trees","archived":false,"fork":false,"pushed_at":"2023-04-19T13:03:30.000Z","size":456,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-20T14:43:41.410Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/fedebertolini.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":"2017-11-18T10:56:44.000Z","updated_at":"2021-12-31T16:22:36.000Z","dependencies_parsed_at":"2024-11-12T12:30:59.894Z","dependency_job_id":null,"html_url":"https://github.com/fedebertolini/html-size-visualizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fedebertolini/html-size-visualizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedebertolini%2Fhtml-size-visualizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedebertolini%2Fhtml-size-visualizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedebertolini%2Fhtml-size-visualizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedebertolini%2Fhtml-size-visualizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fedebertolini","download_url":"https://codeload.github.com/fedebertolini/html-size-visualizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedebertolini%2Fhtml-size-visualizer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261392997,"owners_count":23151876,"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":"2024-11-12T12:20:08.209Z","updated_at":"2025-07-01T00:03:45.010Z","avatar_url":"https://github.com/fedebertolini.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# html-size-visualizer\n\n## Description\nSimple CLI that parses a HTML document and creates a graph representation of the document.\nEach HTML tag is represented with a node. Each node is colored depending on its sub-tree's\nestimated size (in characters) using a green-red scale, red for the node with the biggest\nsubtree (always the root `\u003chtml\u003e` tag) and green for the smallest leafs.\n\nThe graph is intended to detect possible optimizations by trimming out the biggests\nsub-trees.\n\nExample:\n![Example](https://github.com/fedebertolini/html-size-visualizer/raw/master/Screenshot.png)\n\n## Installation\n```\nnpm -g html-size-visualizer\n```\n\n## Usage\nThe CLI requires only one argument: either a URL or a local file path.\n\nTo parse a local HTML file:\n```\nhtml-size-visualizer myFile.html\n```\n\nTo parse a website's HTML:\n```\nhtml-size-visualizer http://www.example.com\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedebertolini%2Fhtml-size-visualizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedebertolini%2Fhtml-size-visualizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedebertolini%2Fhtml-size-visualizer/lists"}