Projects / Open source · 2025

Unused Assets Finder

A VS Code extension that finds image files your code no longer uses.

Unused Assets Finder listing in the VS Code extensions view

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

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 →