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 🙏

© 2025 – Pkg Stats / Ryan Hefner

strapi-plugin-deploy-dashboard

v0.0.5

Published

Dashboard for triggering webhooks.

Readme

strapi-plugin-deploy-dashboard

A Strapi plugin that allows you to manage deployment webhooks directly from a dashboard. Configure your deployment endpoints, trigger builds, and manage multiple environments with ease.

Check it out on npm npm


Features

  • Define deployment configurations in your project settings.
  • Support for multiple deployment environments and instances.
  • Advanced request options for fine-tuned webhook control.
  • User-friendly dashboard for triggering deployments.

Installation

  1. Install the plugin:

    npm install strapi-plugin-deploy-dashboard
  2. Enable the plugin in your Strapi project by adding it to your config/plugins.js file:

    module.exports = {
      'strapi-plugin-deploy-dashboard': {
        enabled: true,
      },
    };

Development

To contribute to the development of this plugin or customize it, follow these steps:

Setup

  1. Ensure the plugin is located in the plugins folder of your Strapi application.
  2. Link the plugin source folder in your config/plugins.js file:
    export default () => ({
        'strapi-plugin-deploy-dashboard': {
            enabled: true,
            resolve: './src/plugins/strapi-plugin-deploy-dashboard'
        }
    });

Development Commands

The following commands are available to streamline the development process:

  • Build: Builds the plugin for production.
    npm run build
  • Watch: Watches for changes in the plugin source code and rebuilds automatically.
    npm run watch

Configuration

The plugin is configured through the config object in your Strapi project. Here's how to set it up:

Example Configuration

Add the following configuration to your config/plugins.js file:

module.exports = {
  'strapi-plugin-deploy-dashboard': {
    config: {
      deployments: [
        {
          name: "Main Application",
          instances: [
            {
              id: "production",
              name: "Production",
              hookUrl: "https://example.com/webhook/deploy",
              requestOptions: {
                method: "POST",
                headers: {
                  "Content-Type": "application/json"
                },
                body: {
                  branch: "main"
                }
              }
            },
            {
              id: "staging",
              name: "Staging",
              hookUrl: "https://staging.example.com/webhook/deploy"
            }
          ]
        },
        {
          name: "Secondary Application",
          instances: [
            {
              id: "development",
              name: "Development",
              hookUrl: "https://dev.example.com/webhook/deploy"
            }
          ]
        }
      ]
    }
  }
};

Configuration Structure

| Property | Type | Description | Required | |------------------------------|--------------|---------------------------------------------------------------------------------------|--------------| | deployments | Array | A list of deployment configurations. Each deployment represents a group of instances. | Yes | | deployments[].name | String | The name of the deployment group (e.g., "Main Application"). | Yes | | deployments[].instances | Array | A list of instances within the deployment group. | Yes | | instances[].id | String | A unique identifier for the instance (e.g., "production", "staging"). | Yes | | instances[].name | String | A descriptive name for the instance (e.g., "Production"). | Yes | | instances[].hookUrl | String (URL) | The URL of the webhook to trigger the deployment. | Yes | | instances[].requestOptions | Object | Additional options for the request (e.g., headers, body, HTTP method). | No | | requestOptions.method | String | HTTP method to use for the request (default: POST). | No | | requestOptions.headers | Object | Headers to include with the request (e.g., Content-Type: application/json). | No | | requestOptions.body | Object | The body payload to send with the request (used for POST, PUT, etc.). | No |


Example Configurations

Basic Deployment Configuration

{
  name: "My Application",
    instances
:
  [
    {
      id: "prod",
      name: "Production",
      hookUrl: "https://example.com/webhook/deploy"
    },
    {
      id: "dev",
      name: "Development",
      hookUrl: "https://dev.example.com/webhook/deploy"
    }
  ]
}

Deployment with Advanced Options

{
  name: "Advanced Application",
    instances
:
  [
    {
      id: "staging",
      name: "Staging Environment",
      hookUrl: "https://staging.example.com/webhook/deploy",
      requestOptions: {
        method: "POST",
        headers: {
          "Authorization": "Bearer my-secret-token",
          "Content-Type": "application/json"
        },
        body: {
          branch: "staging",
          clearCache: true
        }
      }
    }
  ]
}

Using the Plugin

  1. Navigate to the Deploy Dashboard in the Strapi admin panel.
  2. View the list of configured deployments and instances.
  3. Trigger deployments by clicking the respective buttons for each instance.

Troubleshooting

  • Invalid Webhook URL: Ensure that the hookUrl is correctly formatted and accessible.
  • Authentication Issues: If the webhook requires authentication, include appropriate headers in the requestOptions.
  • Debugging Errors: Use Strapi logs to debug any issues with plugin functionality.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to improve this plugin.


License

This plugin is licensed under the MIT License.