Develop HotHost Plugins
mainPlugins in HotHost are standalone .js files using ESM format (import/export). CommonJS (require) is not supported.
Requirements:
- Must use ESM syntax.
- Must follow a specific defined structure (see
server/src/plugins/slack.jsfor a reference implementation). - Plugins should be placed in the
server/src/pluginsdirectory. - If your plugin requires external Node modules, you must bundle them using a tool like Webpack to ensure they are compatible with the ESM output. See
server/src/plugins/gmail.src/gmail.src.jsfor an example of bundlingnode-mailerinto a plugin.