JavaScript plugin hello-world
Editions: Open Source · Free Cloud · Pro
Copy from sdk/js-plugin-build-sdk/examples/simple-plugin/main.js.
npm installin the example, then build the plugin package the CLI/engine expects.config.ymlmust declarecapabilities(project.graphql,project.rest, and/or system caps). ProtobufPLUGIN_TYPE_INTERNAL/PLUGIN_TYPE_EXTERNALvalues are reserved — do not reuse numbers.- Install on the engine (
apito plugin deployor copy intoPluginPath). - Activate in one project from Project Settings → Plugins.
- Call GraphQL/REST. Confirm a second project does not get the plugin.
- Deactivate, then remove the package from the host catalog.
Console UI for third-party JS plugins is declarative (host forms). Only Apito-signed official bundles inject compiled Console JavaScript.