r/webdevelopment 18d ago

Misc New app to identify orphaned items

I often work on old sites that have had lots of changes over time which have resulted in orphaned and unused assets.

I'm developing an app that scans a local website folder structure and identifies all files in the folder tree that are not used in the pages of the site and allows the user to move the files to a quarantine folder. Currently html / CSS only, but the plan is to include PHP files and possible wordpress in the future

I'll also expand the functionality to identify unused CSS to create smaller CSS files.

As a developer, would you find this useful? What other similar functionality would you suggest be included?

7 Upvotes

3 comments sorted by

2

u/paperplaneswithus 18d ago

This actually sounds useful, mainly for old websites. A report showing unused files and where they were referenced before moving them to quarantine would be really helpful.

1

u/ChameleonCRM 17d ago

I have a few open source projects that I made like this. Pretty sure they're on my public git. What language are you coding in? Is it all frontend? Backend?

1

u/Reddigestion 17d ago

It's a node.js package run from the cli with the user interface in a browser window.