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. Itswidget_classextendswidgets.plugin_window.PluginWindowBaseand fillsself.ids.content_area. - Communication node (
"kind": "node") — a behaviour-tree leaf for the Communication workspace. Itsaction_classextendscore.bt_engine.node_base.BTLeafand implementsupdate()withget_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.  (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.
| Field | For | Meaning |
|---|---|---|
name | all · required | Unique id and install folder: 2–40 lowercase letters, digits, _. Your first upload reserves it. Change the template's my_…_plugin name before uploading. |
display_name | all · required | Shown in the store, up to 80 characters. |
description | all · required | One line, up to 300 characters. |
version | all · required | Three 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. |
author | all | Free text, up to 100 characters (replace the template's your-xparo-username). |
kind | all | window (default), node or service. |
entry_point | all | Python module, default plugin.py. |
status | all | Must be ready to publish. |
widget_class | window · required | Kivy widget class opened as the window. |
kv_file | window | Default ui/<name>.kv. |
command | window | Text/voice command(s) that open it. |
top_level_tile | window | Adds a launcher tile, e.g. {"icon_glyph": "…"}. |
bt_id | node · required | The 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_class | node · required | BTLeaf subclass in the entry point. |
category | all | Grouping in the store (for nodes, in the Communication store), e.g. storage; up to 40 characters. |
inputs / outputs | node | Lists of {"name", "type"} blackboard ports. |
config_schema | node | List of {"key", "type", "label", "default", "options"} settings. |
Publishing and review
- 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-Archivewrites backslash paths robots can't unpack. - Upload it. It's checked right away: safe paths only (no
.., absolute paths or symlinks), a valid manifest, and an entry point that exists. - XPARO staff review the code. You'll get an email when it's approved, or a note on what to change.
- 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.
- 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.