npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

strapi-plugin-component-docs

v1.0.3

Published

Add documentation link to your component

Downloads

188

Readme

Strapi Plugin - Component Documentation Link

This Strapi plugin adds an input component to the Strapi admin panel that allows users to view documentation related to a component via a modal or external link. It is particularly useful for displaying component-specific documentation directly in the Strapi admin interface.

Preview

Documentation Image

Documentation Image

Features

  • Displays a "View Documentation" button in the Strapi admin panel.
  • If an iframe is allowed (disableIframe is false), it shows the documentation inside a modal as an embedded iframe.
  • If iframes are disabled (disableIframe is true), it opens the documentation link in a new browser tab.

Installation

To install the plugin, you can use npm or yarn:

npm install strapi-plugin-component-docs

or

yarn add strapi-plugin-component-docs

Usage

After installing the plugin, it will add a new input field in the component settings within the Strapi admin panel. The field will have the option to either:

  • Open the documentation in a modal with an embedded iframe (if disableIframe is false).
  • Open the documentation in a new tab (if disableIframe is true).

Configuration

You can configure the input field using the following options:

  • url: The URL of the documentation.
  • disableIframe: If true, the documentation will open in a new browser tab rather than inside an iframe.

Example

{
  "type": "text",
  "customField": "documentationLink",
  "options": {
    "url": "https://example.com/docs",
    "disableIframe": false
  }
}

How it works:

  1. The component renders a button labeled "View Documentation".
  2. When clicked, if disableIframe is set to false, it opens a modal with an iframe displaying the documentation.
  3. If disableIframe is true, the plugin opens the documentation in a new browser tab.

Hiding the Field from API Responses

If you do not want the docsUrl field to appear in your API responses (which is likely, as it is a UI-related field), you can modify your Strapi project's api.ts file to exclude this field.

Add custom field name array to prevent it from being included in the API response:

Example api.ts configuration:

export default ({ env }) => ({
  responses: {
    privateAttributes: [
      // Custom field name
      'docsUrl',
      // ...
    ],
  },
  // ...
});

This ensures that the field will not be included in the API responses.

License

MIT License.