{"id":20936822,"url":"https://github.com/aruntk/polymer-weight","last_synced_at":"2025-07-25T11:33:50.788Z","repository":{"id":57327145,"uuid":"80290052","full_name":"aruntk/polymer-weight","owner":"aruntk","description":":snail: See which component is making the app slow.","archived":false,"fork":false,"pushed_at":"2017-02-01T12:17:57.000Z","size":539,"stargazers_count":9,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-22T09:14:46.759Z","etag":null,"topics":["import","link","load","load-testing","polymer","size","webcomponents"],"latest_commit_sha":null,"homepage":"","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/aruntk.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}},"created_at":"2017-01-28T14:52:12.000Z","updated_at":"2021-07-15T00:07:56.000Z","dependencies_parsed_at":"2022-09-13T19:00:53.126Z","dependency_job_id":null,"html_url":"https://github.com/aruntk/polymer-weight","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/aruntk/polymer-weight","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aruntk%2Fpolymer-weight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aruntk%2Fpolymer-weight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aruntk%2Fpolymer-weight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aruntk%2Fpolymer-weight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aruntk","download_url":"https://codeload.github.com/aruntk/polymer-weight/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aruntk%2Fpolymer-weight/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266998040,"owners_count":24018949,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["import","link","load","load-testing","polymer","size","webcomponents"],"created_at":"2024-11-18T22:27:20.847Z","updated_at":"2025-07-25T11:33:50.747Z","avatar_url":"https://github.com/aruntk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# polymer-weight :weight_lifting_man:\n\nsize of imported components\n\n[![Join the chat at https://gitter.im/aruntk/polymer](https://badges.gitter.im/aruntk/polymer.svg)](https://gitter.im/aruntk/polymer?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge) [![npm](https://img.shields.io/npm/v/polymer-weight.svg) ![npm](https://img.shields.io/npm/dt/polymer-weight.svg)](https://www.npmjs.com/package/polymer-weight)\n\n![screenshot](screenshots/screenshot.png)\n\n## Installation\n\n```sh\nnpm i -g polymer-weight\nweigh --path path/to/file.html\n```\n\n## Options\n\n### Path\n\npath to the starting file (index file)\n```sh\nweigh --path path/to/file.html\n```\n### Depth\n\nHow deep the table should show.\n\neg if depth = 1. Immediate child links and the index file\n```sh\nweigh --path path/to/file.html --depth 1\n```\n\n## Table Columns\n\n### Standalone weight\n\nStandalone size of the components. ie. space that can be saved by removing the component.\n\nBy default table is sorted in the descending order of standalone weight.\n\n### Net weight\n\nNet weight of a link.\n\n### file size\n\nSize of the file corresponding to a link.\n\nMore features coming. :)\n\n\n## TODO\n\n- [x] Deep Scanning of files (walk).\n- [x] Net weight added by component and its children.\n- [x] Standalone size (space that can be saved by removing the component)\n- [x] Show dependency relationship in some way so that user can know which link to remove to reduce size.\n- [ ] Handle css imports. @import\n\n### Like it?\n\n:star: this repo\n\n### Found a bug?\n\nRaise an issue!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faruntk%2Fpolymer-weight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faruntk%2Fpolymer-weight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faruntk%2Fpolymer-weight/lists"}