Disclaimer: This is made with Claude code. Use at your own risk. I did not check every line of code. That having said, it works great for me.
I've just released a new open-source tool to help keep your Wappler node
projects clean and organized. It automatically finds unused server
actions, dead routes, and empty folders.
What it does:
Finds unused server actions in /app/api/ and /app/lib/
Detects dead routes that point to missing files
Identifies empty folders for cleanup
Smart reference scanning across HTML, EJS, JSON, and JS files
Queue-aware - won't delete actions used by Bull queues
Interactive interface for safe cleanup
Installation & Usage:
One-time usage (no installation needed)
npx wappler-cleanup-tool
Or install globally
npm install -g wappler-cleanup-tool
cd /path/to/your/wappler/project
wappler-cleanup
Safety First:
- Multiple confirmation prompts
- Make sure to backup / commit your work first!
Perfect for project maintenance and keeping your codebase lean!
npm: wappler-cleanup-tool - npm
GitHub: GitHub - kars-h/wappler-cleanup-tool: Interactive CLI tool to identify and cleanup unused resources in Wappler projects