GitHub - RaspAP/plugins: RaspAP official plugin repository

Add your plugin to the manifest.json file. Increment the id value, then add your plugin's details in JSON format. You may use the previously approved plugin in this file as a template. For example:

{
  "id": "<increment-last-id>",
  "name": "Amazing Plugin",
  "version": "v1.0.0",
  "description": "An amazing plugin to extend RaspAP",
  "author": "A. Plugin Author",
  "author_uri": "https://github.com/",
  "plugin_uri": "https://github.com/PluginAuthor/AmazingPlugin",
  "plugin_docs": "https://github.com/PluginAuthor/AmazingPlugin",
  "license": "GPL-3.0",
  "namespace": "RaspAP\\Plugins\\AmazingPlugin",
  "configuration": [
    {
      "source": "config/myplugin.conf",
      "destination": "/etc/myplugin.conf"
    }
  ],
  "default_locale": "en_US",
  "dependencies": {
    "some-apt-package": "1.0"
  },
  "icon": "fas fa-meteor",
  "install_path": "plugins",
  "javascript": {
     "source": "templates/app/js/AmazingPlugin.js"
   },
  "manifest_version": "1.0",
  "sudoers": [
    "www-data ALL=(ALL) NOPASSWD:/bin/systemctl * myplugin.service",
    "www-data ALL=(ALL) NOPASSWD:/bin/cat /etc/myplugin.conf",
    "www-data ALL=(ALL) NOPASSWD:/bin/cp /tmp/myplugin.conf /etc/myplugin.conf"
  ],
  "user_nonprivileged": {
    "name": "pluginuser",
    "pass": "pluginpass"
  }
 }