Preparing
Before you start developing a plugin, you should go through the following preparation steps.
Step 1. Prerequisites
Install all the necessary packages and programs:
-
ONLYOFFICE DocSpace on-premises.
To install it on your local server, follow the instructions in ONLYOFFICE Help Center.
-
@onlyoffice/docspace-plugin-sdk npm package
To install the @onlyoffice/docspace-plugin-sdk npm package globally, use the following command:
npm i -g @onlyoffice/docspace-plugin-sdk
Step 2. Draft
Design the way your plugin will work:
-
Choose the service that allows you to add the necessary functionality to your DocSpace.
For example, AssemblyAI, ConvertAPI, Draw.io.
Please make sure that the service documentation is available, check its license, availability of API methods, etc. For some services, the user must obtain an API key to start using the plugin.
-
Think about where to implement the plugin, what the plugin's structure will be, how the user will interact with the plugin's components, etc. Make a list of the required plugin types and items depending on this information. For more information, read the Plugin types and Plugin items sections of the Plugins SDK documentation.
-
Come up with the plugin's structure. All the required files are described here.
-
Choose a name for your plugin and write a description for it.