{"id":23270383,"url":"https://github.com/kusstar/vite-bundle-visualizer","last_synced_at":"2025-05-14T16:13:33.066Z","repository":{"id":47125031,"uuid":"515898032","full_name":"KusStar/vite-bundle-visualizer","owner":"KusStar","description":"CLI for visualizing your vite project bundle.","archived":false,"fork":false,"pushed_at":"2024-10-27T15:32:18.000Z","size":882,"stargazers_count":386,"open_issues_count":7,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T08:32:38.289Z","etag":null,"topics":["bundle-analyzer","bundle-visualizer","cli","vite"],"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/KusStar.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":"2022-07-20T08:31:05.000Z","updated_at":"2025-03-27T09:13:01.000Z","dependencies_parsed_at":"2024-05-12T08:25:12.680Z","dependency_job_id":"34e7bad1-4100-4370-9d51-c1f15bae2aaa","html_url":"https://github.com/KusStar/vite-bundle-visualizer","commit_stats":{"total_commits":80,"total_committers":7,"mean_commits":"11.428571428571429","dds":"0.23750000000000004","last_synced_commit":"5bae93d3006e22d4153fc0e33b9ad2f172f1111c"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KusStar%2Fvite-bundle-visualizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KusStar%2Fvite-bundle-visualizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KusStar%2Fvite-bundle-visualizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KusStar%2Fvite-bundle-visualizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KusStar","download_url":"https://codeload.github.com/KusStar/vite-bundle-visualizer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248708472,"owners_count":21149006,"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":["bundle-analyzer","bundle-visualizer","cli","vite"],"created_at":"2024-12-19T18:51:26.243Z","updated_at":"2025-04-13T11:38:18.261Z","avatar_url":"https://github.com/KusStar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vite-bundle-visualizer\n\nVisualize vite bundle, like [webpack-bundle-analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer).\n\nA wrapper of  [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer).\n\n\u003e In most scenarios you shouldn't need this library, the recommended solution is to add\n`rollup-plugin-visualizer` directly to your vite configuration. However, if you are using\nvite, and want to run the visualizer directly from your command line via a CLI command\ninstead without needing to build your site, now you have a solution with the\n`vite-bundle-visualizer`.([@wparad](https://github.com/wparad))\n\n## Usage\n\n```console\n# In your vite project's root\n$ npx vite-bundle-visualizer\n# Then open stats.html in browser\n\n# Use specified vite config file\n$ npx vite-bundle-visualizer -c your.config.js\n```\n\n```console\n$ vite-bundle-visualizer --help\n\nvite-bundle-visualizer\n\nUsage:\n  $ vite-bundle-visualizer \u003ccommand\u003e [options]\n\nOptions:\n  -h, --help                Display this message\n  --template -t \u003ctemplate\u003e  Template to use, options are \"raw-data\" (JSON), \"treemap\", \"list\", \"sunburst\" and \"network\" (default: treemap)\n  --output -o \u003cfilepath\u003e    Output file path, should be \"**/*.html\" or \"**/*.json\" (default: /var/folders/lb/9tn84c8x42nctvbs1fb3vxd40000gn/T/tmp-20782-nmqZuvXaZNxh/stats.html)\n  --open \u003copen\u003e             Should open browser after generated, except when template is \"json\" (default: true)\n  --config -c \u003cfile\u003e        Use specified vite config file\n  --entry --input -i        Use specified entry file, default is \"index.html\"\n  --sourcemap               use sourcemap to calculate sizes of modules. By idea it will present more accurate results, defaults is false\n  --mode -m \u003cmode\u003e          set env mode, defaults to production\n```\n\n## Screenshots\n\n### Visualizer Templates\n\n#### Treemap\n\n```console\n$ vite-bundle-visualizer\n```\n\n![treemap](./screenshots/treemap.png)\n\n#### Sunburst\n\n```console\n$ vite-bundle-visualizer -t sunburst\n```\n\n![sunburst](./screenshots/sunburst.png)\n\n#### Network\n\n```console\n$ vite-bundle-visualizer -t network\n```\n\n![network](./screenshots/network.jpg)\n\n#### Raw data\n\nOutput raw data (JSON) of stats\n\n```console\n# @deprecated vite-bundle-visualizer -t json\n$ vite-bundle-visualizer -t raw-data\n```\n\n[demo/react/stats.json](./demo/react/stats.json)\n\n#### List\n\nOutput yml file with all the data\n\n```console\n$ vite-bundle-visualizer -t list\n```\n\n[demo/react/stats.yml](./demo/react/stats.yml)\n\n## Dependencies\n\n- [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer)\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkusstar%2Fvite-bundle-visualizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkusstar%2Fvite-bundle-visualizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkusstar%2Fvite-bundle-visualizer/lists"}