All plugins are stored in folder "plugins" of on-premises builder installation and are distributed by folders.
To add your plugin to builder you need to take the following steps:
{"admin": true}After adding plugin you can test it in admin builder mode ("Create custom templates" link in your on-premises brand).
To make plugin available for all your customers set parameter {"admin": false} in file "main.json".