How Plugins run
Plugins code are written using web technologies: HTML, CSS and Javascript.
In order to provide stability and security to the Qatium platform the plugins are splitted in two parts:
-
Plugin Engine: Has access to the SDK. This artifact runs in a sandboxed environment in the main thread, which does not have access to Web APIs. This means, the plugin can use all the common Javascript APIs like calling
console.log
, using Promises or creatingArrays
, but cannot access the DOM to modify UI elements. -
Plugin UI: The second part runs in an
iframe
and allows the plugin to display a user interface for the plugin engine and access the Web APIs.
Learn more about communicating between the engine and UI.