Plugin Store / Build a plugin

Build an XP-shell plugin

A plugin is a folder with a manifest.json and a Python entry point. Zip it, publish it, and after review anyone can install it from XP-shell's store.

Three kinds of plugin

  • Plugin ("kind": "window") — a floating window. Its widget_class extends widgets.plugin_window.PluginWindowBase and fills self.ids.content_area.
  • Communication node ("kind": "node") — a behaviour-tree leaf for the Communication workspace. Its action_class extends core.bt_engine.node_base.BTLeaf and implements update() with get_input() / set_output().
  • Service ("kind": "service") — runs in the background while active, no window.

Every kind may define on_activate() and on_deactivate() in its entry point. They can run while XP-shell is still booting — schedule anything that needs the running app with Clock.schedule_once(…, 0).

Folder layout

my_plugin/
├── manifest.json      required
├── plugin.py          entry point (required)
├── ui/my_plugin.kv    window plugins, optional
├── README.md          shown on your store page and in XP-shell
└── resources/         anything else your code loads

Replace the template README's first sentence (e.g. "What this node does, in one sentence.") with your own: uploads that still have it are refused. README.md is Markdown only: headings, lists, code, bold, italic and links. HTML is shown as plain text, not rendered. Images work when the file is in your zip, e.g. ![Screenshot](resources/screenshot.png) (PNG, JPEG, GIF or WebP, up to 5 MB); images from other websites appear as links.

manifest.json

Save it as plain UTF-8 (not "UTF-8 with BOM"): XP-shell can't read a manifest that starts with a byte-order mark.

FieldForMeaning
nameall · requiredUnique id and install folder: 2–40 lowercase letters, digits, _. Your first upload reserves it. Change the template's my_…_plugin name before uploading.
display_nameall · requiredShown in the store, up to 80 characters.
descriptionall · requiredOne line, up to 300 characters.
versionall · requiredThree numbers, MAJOR.MINOR.PATCH, e.g. 1.2.0 (no v, no leading zeros). Each upload needs a new one, higher than the live version: robots update to the highest number.
authorallFree text, up to 100 characters (replace the template's your-xparo-username).
kindallwindow (default), node or service.
entry_pointallPython module, default plugin.py.
statusallMust be ready to publish.
widget_classwindow · requiredKivy widget class opened as the window.
kv_filewindowDefault ui/<name>.kv.
commandwindowText/voice command(s) that open it.
top_level_tilewindowAdds a launcher tile, e.g. {"icon_glyph": "…"}.
bt_idnode · requiredThe node's ID in behaviour-tree XML. It must be unique in the store: a robot with two nodes of the same bt_id would only run one of them, so an upload whose bt_id another plugin already uses is refused. Change the template's my_node_plugin.
action_classnode · requiredBTLeaf subclass in the entry point.
categoryallGrouping in the store (for nodes, in the Communication store), e.g. storage; up to 40 characters.
inputs / outputsnodeLists of {"name", "type"} blackboard ports.
config_schemanodeList of {"key", "type", "label", "default", "options"} settings.

Publishing and review

  1. Zip the folder (the folder itself or its contents — both work), up to 20 MB and 100 MB once unpacked. On Windows use Explorer's Send to > Compressed (zipped) folder or 7-Zip: PowerShell 5.1's Compress-Archive writes backslash paths robots can't unpack.
  2. Upload it. It's checked right away: safe paths only (no .., absolute paths or symlinks), a valid manifest, and an entry point that exists.
  3. XPARO staff review the code. You'll get an email when it's approved, or a note on what to change.
  4. Approved versions appear in the store and in XP-shell. Upload a new version any time; the live one stays up while the new one is reviewed, and the new one's README, description and source code link go public only once it's approved. Use preview next to it on your plugin page to see how its listing will look.
  5. Uploaded by mistake? Withdraw a version while it waits for review, or Delete plugin if it never went live (that frees its name). A plugin that was live can only be hidden; hidden plugins can't be downloaded by anyone but you.

Plugins must do what their description says, must not hide or obfuscate code, and must not collect data or reach the network beyond their stated purpose.

Store API

What XP-shell uses — handy for your own tools too:

GET /api/xpshell/v1/store/plugins?kind=node&q=storage
GET /api/xpshell/v1/store/plugins/<name>
GET /api/xpshell/v1/store/plugins/<name>/download[?version=1.2.0]
    → the zip, with an X-Plugin-Sha256 header to verify it

Signed-in devices (Authorization: Bearer <device token>) of the plugin's author can also download versions still waiting for review.