Strapi plugin logo for Components Usage Info

Components Usage Info

Find out the collections where a selected component is populated with data.

thumbnail for Components Usage Info

Strapi plugin strapi-plugin-components-usage-info

A Strapi plugin to find out the collections where a selected component is populated with data.

Installation

via npm:

1npm i strapi-plugin-components-usage-info

via yarn:

1yarn add strapi-plugin-components-usage-info

Plugin Configuration

Within your Strapi v5 project's config/plugin.js, enable the plugin:

1module.exports = {
2    // ...
3    "strapi-plugin-components-usage-info" : {
4      enabled: true
5    },
6    // ...
7  }

What problem does this plugin solve?

When trying to identify if a certain component is populated with any data anywhere within that setup, this plugin can be used to quickly find this information. This can be useful for analysis before:

  • Modifying the fields of an existing component.
  • Deleting a component from the setup.

How does it work?

Once installed and enabled, the plugin displays a list of all the components in the setup. On selecting a certain component, it lists the collections and records that contain data for the selected component.

image

FAQ

When identifying if a component is populated within a certain record:

  • If the selected component is directly not part of a collection, but instead part of another component that belongs to the collection, such relationships (upto any depth level) are taken into consideration.
  • Locales are also taken into consideration and displayed.
  • Only published records are considered. Draft versions or older versions of the records are not considered.
  • This plugin works with Strapi v5.0.0 onwards. It does not support earlier Strapi versions.

Bugs

For any bugs, please create an issue here.

About

  • This plugin is created by Punit Sethi.
  • I'm an independent developer working on Strapi migrations, customizations, configuration projects (see here).
  • For any Strapi implementation requirement, please write to me at punit@tezify.com.

Install now

npm install strapi-plugin-components-usage-info

STATS

1 GitHub star11 weekly downloads

Last updated

50 days ago

Strapi Version

5.6.0 and above

Author

github profile image for Punit Sethi
Punit Sethi

Useful links

Create your own plugin

Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.