The Webito Plugin SDK provides a framework for building plugins that can easily integrate with your applications.
- Plugin Architecture: Create modular plugins that can be easily maintained and updated.
- Event Hooks: Use event hooks to respond to application events.
- Asynchronous Support: Built-in support for asynchronous operations.
To install the Webito Plugin SDK, follow these steps:
-
Install package from npm:
npm install webito-plugin-sdk
-
Use it in your project:
import webito from 'webito-plugin-sdk'; const starter = new webito.WebitoPlugin('yourPluginName');
To create a new plugin, follow these steps:
const starter = new webito.WebitoPlugin('pluginName');
starter.registerHook('hookName', (data) => {
// Your logic here
});
You can execute hooks with the following function:
const result = await starter.executeHook('hookName', { data });
We welcome contributions! Please feel free to submit a pull request or open an issue.
This project is licensed under the MIT License - see the LICENSE file for details.