JSPM

component-usage-tracker

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q34049F
  • License MIT

A Strapi 5 plugin that tracks and displays component usage across all content types in your Strapi application

Package Exports

  • component-usage-tracker/package.json
  • component-usage-tracker/strapi-admin
  • component-usage-tracker/strapi-server

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-tracker

Configuration

Add the plugin to your config/plugins.js (or config/plugins.ts):

module.exports = {
  // ... other plugins
  'component-usage-tracker': {
    enabled: true,
  },
};

Usage

  1. After installation and configuration, restart your Strapi server
  2. Navigate to the Strapi admin panel
  3. Find "Component Usage Tracker" in the plugins section
  4. 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 build

Watch mode

npm run watch

Verify plugin structure

npm run verify

License

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