component-usage-tracker
v1.0.1
Published
A Strapi 5 plugin that tracks and displays component usage across all content types in your Strapi application
Maintainers
Readme
Component Usage Tracker
A Strapi 5 plugin that tracks and displays component usage across all content types in your Strapi application. Helps identify which components are actively used and which can be safely removed.
Features
- 📊 View all components and their usage statistics
- 🔍 See which content types use each component
- 📈 Track usage counts across your entire application
- 🎯 Identify unused components for cleanup
- 💡 Admin panel UI for easy visualization
Installation
npm install component-usage-trackerConfiguration
Add the plugin to your config/plugins.js (or config/plugins.ts):
module.exports = {
// ... other plugins
'component-usage-tracker': {
enabled: true,
},
};Usage
- After installation and configuration, restart your Strapi server
- Navigate to the Strapi admin panel
- Find "Component Usage Tracker" in the plugins section
- View component usage statistics and details
Features Overview
Component Usage Table
- Lists all components in your Strapi application
- Shows usage count for each component
- Displays which content types use each component
- Sortable and searchable interface
Component Details
- Click on any component to see detailed usage information
- View all content types that reference the component
- Identify unused components (usage count: 0)
Requirements
- Strapi 5.20.0 or higher
- Node.js 18-20
- React 18+
Development
Build the plugin
npm run buildWatch mode
npm run watchVerify plugin structure
npm run verifyLicense
MIT
Author
Osniel Torres
Repository
https://github.com/Technology-Delivery/component-usage-tracker
Issues
Report issues at: https://github.com/Technology-Delivery/component-usage-tracker/issues
