Projects / Open source · 2025
Unused Assets Finder
A VS Code extension that finds image files your code no longer uses.

01 — The problem
Front-end projects collect images that nothing references any more. They make the repository and the build heavier, and finding them by hand means searching for every file name one at a time.
02 — The solution
The extension scans the workspace, checks whether each image is referenced anywhere in the code, and lists the ones that are not in a panel in the VS Code sidebar. From there you can delete one file or all of them.
- TypeScript
- VS Code Extension API
- esbuild
03 — What it does
- Published on the VS Code Marketplace.
- Its own panel in the activity bar listing every unused image.
- Delete a single file from the list, or all unused files at once.
- Checks references in .js, .ts, .jsx, .tsx, .html and .css files.
- Supports .jpg, .jpeg, .png, .svg, .gif, .bmp and .webp.
- Skips folders such as node_modules and .next, and the list can be changed.
- Caches results so repeat scans are fast, with a refresh button to rescan.
04 — How it's built
- Extension
- TypeScript on the VS Code Extension API, with a tree view provider for the sidebar panel and commands for refresh and delete.
- Scanner
- Walks the workspace, collects image files and searches code files for references to each one.
- Build
- Bundled with esbuild. MIT licensed.
Next project
B-Hero →