kycplugins are two good examples you can find there. The final version of a KYC plugin would look like this. All server side code is included in the server.js which is minified in the final plugin json in a field called
script. The Web components are in
/webfolder. Once you build a web bundle you need to provide the link of that in the
web_viewof your plugin. Check out here to fully understand how web_view works and how to develop one.
bioetc. There are two fields called
metais used for configuring private variables for the plugin such as secret keys while
public_metais used for public variables such as a URL or an image etc. These variables are provided in the configure section of the plugin in the Operator controls so once the plugin is installed, admin can change the dynamically so we recommend you to put your constant variables using these methods instead of hardcoding them in your script.