{"id":17720281,"url":"https://github.com/wintercounter/purge-react-icons","last_synced_at":"2025-07-24T10:06:41.077Z","repository":{"id":257825422,"uuid":"871816489","full_name":"wintercounter/purge-react-icons","owner":"wintercounter","description":"React icons is a great library, but it has too many icons and bundlers choke on it. This tool will remove any unused icons from the source files.","archived":false,"fork":false,"pushed_at":"2024-10-14T08:02:10.000Z","size":6,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T14:36:28.501Z","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/wintercounter.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,"zenodo":null}},"created_at":"2024-10-13T02:45:31.000Z","updated_at":"2025-03-20T10:32:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"6919cbfd-76f8-4ea9-88b0-d27987f57d4a","html_url":"https://github.com/wintercounter/purge-react-icons","commit_stats":null,"previous_names":["wintercounter/purge-react-icons"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wintercounter/purge-react-icons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintercounter%2Fpurge-react-icons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintercounter%2Fpurge-react-icons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintercounter%2Fpurge-react-icons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintercounter%2Fpurge-react-icons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wintercounter","download_url":"https://codeload.github.com/wintercounter/purge-react-icons/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintercounter%2Fpurge-react-icons/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266823632,"owners_count":23990046,"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-24T02:00:09.469Z","response_time":99,"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":[],"created_at":"2024-10-25T15:26:36.987Z","updated_at":"2025-07-24T10:06:41.042Z","avatar_url":"https://github.com/wintercounter.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# purge-react-icons\n\n\u003e Purge unused icons from react-icons during development to solve memory issues\n\n## Usage\n\n```sh\n# Default directorz is src\nnpx purge-react-icons\n\n# Passing source directory\nnpx purge-react-icons lib\n```\n\nOver the years I had many issues using `react-icons` in my projects during development.\nRecently I had to use a laptop having 8GB RAM only for a large Next.js project, and I wasn't able to run the project because of the memory usage caused by `react-icons`.\nTo solve this issue, I created this package to remove unused icons from `react-icons` and reduce memory usage.\n\n## How it works\n\nThis package will scan the source directory for all the files and find all the icons used in the project.\nThen it will remove all the unused icons from `react-icons` and create a new `react-icons` package with only the used icons.\nThe original `react-icons` package will be backed up in a `react-icons_backup` directory,\nso every time you run the command it'll work from the backed up `react-icons` package.\n\nYou need to run this command every time you add new icons to your project. This is a minor inconvenience for mature projects,\nfor new projects it might be annoying to run this command every time you add new icons, but it's a viable tradeoff for those having\nmemory issues with `react-icons`.\n\nTS types are untouched, so autocompletion will work as expected.\n\nNext.js is optimizing barrel files, so you might need to remove the `.next` folder as well to clear caches.\n\nEven if you have a large amount memory, you might want to use this package to reduce the overall memory usage of your project and to achieve faster startup times.\n\nThis tool is only intended for development purposes, you should not use it in production. In production tree shaking should be handled by your bundler, so there is no need to use this package in production.\n\n## License\n\nMIT © wintercounter\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwintercounter%2Fpurge-react-icons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwintercounter%2Fpurge-react-icons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwintercounter%2Fpurge-react-icons/lists"}