Stream Deck plugins (experimental)¶
DroidDeck can run some Stream Deck plugins from a .streamDeckPlugin file you already have, and use
their actions on your deck. The feature is experimental and off by default.
A plugin is a program running on your PC
A plugin is third-party code. It runs with all the permissions of your Windows user: it can read, change and delete your files and use the internet. DroidDeck doesn't review or sandbox what it does. Only install plugins from people you trust.
- There is no promise of compatibility. A given plugin may not work, or may stop working after an update of DroidDeck or of the plugin.
- Items from Elgato Marketplace aren't supported, even free ones. Elgato's terms of use restrict using content from its service in other applications. Use plugins distributed outside the Marketplace, on GitHub for example, and follow each one's license.
- Protected (encrypted) plugins don't open, and DroidDeck doesn't try to open them.
- DroidDeck doesn't download plugins.
Elgato and Stream Deck are trademarks of their respective owners, named here only to say which file format DroidDeck works with. DroidDeck is an independent project: it isn't affiliated with, sponsored by or approved by Elgato or Corsair.
Turn it on and install a plugin¶
Everything here happens in the configurator on the PC
(http://localhost:4787). Phones and other computers can't turn the feature on or manage plugins.
- In the sidebar, open Integrations and, at the end of the list, Advanced → Plugins (experimental).
- Turn on Enable plugins (experimental), read the warning and confirm.
- Click Install from a file and choose the
.streamDeckPluginfile (up to 100 MB).
Plugins written for Node.js need Node.js installed on the PC (version 20 or newer, or newer if the plugin asks for it), from nodejs.org. DroidDeck doesn't download it. The page says whether it was found and which plugins need it. After installing Node.js, restart the plugin.
Each plugin on the page has:
- a switch to turn it off without uninstalling;
- its status: Running, Starting, Stopped (no saved button uses it, or it's waiting to restart), Failed (it gave up after repeated crashes), Not supported or Disabled;
- Restart, which also clears the failure count;
- Logs, with what DroidDeck and the plugin wrote. Logs may contain data from your accounts, so check them before sharing;
- Uninstall, which deletes the plugin's settings, including account sign-ins. Its buttons stay in your profiles but stop working.
Installing a newer file of the same plugin updates it and keeps its settings.
Use it on a button¶
In the button editor on the PC, choose the Plugin (experimental) action, then the plugin and one of its actions. Plugin actions can be used on tap, long press, double tap and as the action of the "on" state of a two-state button.
- With an empty Label, the button shows the title the plugin sends. Your own label always wins.
- The plugin's image fills the whole key. If you give the button your own icon or image, yours is shown instead.
- A key that isn't working says so: Starting, Stopped, Failed, Unavailable (not installed, turned off, or an action that can't run here) or Plugins off.
- A check mark or a warning sign flashes on the key when the plugin asks for it.
On a phone you can press plugin buttons, move and copy them, and change their label, icon and colours. Creating one, or changing which plugin or action it runs, only works on the PC.
Holding the key¶
A plugin button works like a key: the plugin gets the key down when your finger touches it and the key up when your finger lifts, so "hold" behaviours (push to talk, repeat while pressed) work. This applies to the phone and to the browser deck. In the PC configurator, where clicking a button only selects it, choose the action, save, and use Hold to test.
The rule:
- A button is really held when everything its tap runs is a plugin action and it has no long press and no double tap. On a two-state button, the on-state action, if any, must be a plugin action too.
- Otherwise the plugin gets a single press, key down immediately followed by key up: when the button has a long press or double tap (to tell the gestures apart, the tap can only be sent afterwards), for the long press and double tap actions, in multi-actions, in automations, and when a screen reader activates the button.
- On a held button, a long press doesn't show the "how to edit" hint (same as hold-mode keys). To edit, use the pencil.
- Swiping to another profile starting on top of the button doesn't press it: the key down goes out after about 80 ms with the finger still (a shorter tap is sent when you lift).
The PC releases the key by itself whenever it can't be sure someone is still holding it:
- the device's connection drops, or the app goes to the background, the browser loses focus or the button leaves the screen (another profile);
- the device sends no sign of life for 10 seconds (frozen app, network gone);
- the press lasts more than 10 minutes;
- the button is deleted, moved or given another action, or the plugin is restarted, turned off, updated or uninstalled, or DroidDeck closes. If the plugin crashes, the press simply ends.
Two devices on the same button make a single press, like one physical key: the plugin gets one key down, a two-state button toggles once, and the key goes up when the last one lets go. A tap that arrives while the key is held is ignored.
Holding needs both the app and the PC up to date. An old app keeps sending a single press, and so does a new app connected to an old PC.
In multi-actions¶
In the PC configurator, the multi-action editor has a Plugin (experimental) step
kind, with the plugin and the action. Only the actions the plugin allows in multi-actions
(SupportedInMultiActions in the manifest) are listed.
- Every step is its own plugin instance, with its own settings, even for two identical steps. The settings screen opens from the step itself, after you save the button.
- For an action with more than one state, choose the Desired state. DroidDeck sends it to the
plugin (
userDesiredState); the plugin decides what to do with it. On a step, DroidDeck doesn't toggle the state by itself. - A step sends key down immediately followed by key up. The multi-action waits for the plugin to receive the press before moving on (up to 11 seconds if the plugin is still starting); it can't know when the plugin has finished what it was going to do. Use the next step's delay if order matters.
- A step has no key on the deck: a title or image the plugin sends to it isn't shown. The check mark or warning sign flashes on the multi-action button.
Action settings screens (Property Inspector)¶
Some actions bring their own settings screen, a web page made by the plugin's author. On the PC configurator, choose the action, save the button, and click Configure action below the list of actions. What you change in that screen is saved right away; you don't need to save the button again.
The screen only opens in the configurator opened on the PC as http://localhost:4787 or
http://127.0.0.1:4787. Phones and other computers can't open it. It closes by itself if the plugin
restarts, stops, is turned off, updated or uninstalled, if the feature is turned off, or if the button
is removed or changes plugin or action.
How it's isolated¶
The screen is third-party code running in your browser, so DroidDeck keeps it apart from the configurator: it comes from a separate server that only the PC can reach, and runs in a sandbox with no access to the configurator, its storage or its access key. It can only read and change the settings of that button and the shared settings of its own plugin, talk to its plugin, and ask to open a web address on the PC. This protects DroidDeck from the screen. It doesn't make the plugin safe: the plugin itself is still a program with full access to your user account.
Limits¶
Screens are written for the Stream Deck app, and some won't work here, fully or in part:
- Nothing is kept in the browser.
localStorageandsessionStoragework only while the screen is open: when it closes, what the screen wrote there is lost (what it saves as button or plugin settings stays saved). Cookies are ignored. IndexedDB throws an error, which may stop the screen. - Almost no network. A screen only talks to DroidDeck and reads its own files (from the list
below), including with
fetchorXMLHttpRequest. No web services: it has to ask its plugin for data. - Only local files: scripts, styles, images and fonts must be inside the plugin. Nothing is loaded
from a CDN (the only exception is
sdpi-components, below).evalandnew Functionare blocked. - Only these file types are served: HTML, CSS, JS (
.js,.mjs), PNG, JPEG, GIF, WEBP, SVG, ICO and fonts (WOFF, WOFF2, TTF, OTF), and nothing in alogsfolder. .jsonfiles aren't served, because a plugin may keep tokens or caches in them. The exception is translated text:en.json,de.json,es.json,fr.json,ja.json,ko.json,zh_CN.jsonandzh_TW.jsonin the plugin's root, and only the text in theirLocalizationsection.- No popups. A link to the web, or a page calling
window.open, opens the address in the PC's browser (httpandhttpsonly, with the same rate limit as plugins: a refused address only shows in the plugin's logs). The screen doesn't get the opened window, so a sign-in that depends on talking to it, or that opens an empty window first, doesn't work: the plugin has to receive the result by itself.alert,confirm, downloads and form submission don't work either. - File and folder pickers don't give the plugin the real path of what you choose.
- If the screen tries to go to another page (other than through a link to the web), DroidDeck closes it. That can't prevent the request itself from being made, and the request's address can carry what the screen can see, including the button's settings and the plugin's shared settings.
- The screen is shown on a dark background, as in the Stream Deck app.
- Many screens fetch the
sdpi-componentslibrary, made for them, fromsdpi-components.dev. DroidDeck ships a copy (version 4.0.1, MIT license): when a<script>in the settings screen points to itsreleases/v3orreleases/v4address, that copy is used, with no internet access. The version may not be the one the plugin expected. Other addresses, other versions and libraries loaded from JavaScript stay blocked. - The
sdpi-componentslibrary (4.0.1) was tested with its example page: text, password, checkbox, choice, slider, date, color, lists coming from the plugin and fields filled in by it are saved and come back when you reopen the screen. The file field keeps only the file's name (see above). Not every component and option of the library was tested.
Dials (Stream Deck +)¶
Actions made for the dials of the Stream Deck + (Controllers: ["Encoder"] in the manifest) can be
placed on the deck as a dial button: the dial's screen (its 200 × 100 slice of the touch strip)
with the controls next to it. A phone has no knobs, so these are the gestures:
| On a Stream Deck + | On DroidDeck |
|---|---|
| Turn the dial | Drag up or down over the dial's screen (up = clockwise), or use the − and + buttons (hold to repeat) |
| Press and release the dial | The middle button: the plugin gets the press when the finger touches it and the release when it lifts |
| Turn while pressed | Hold the middle button with one finger and turn with another (dragging on the screen, or −/+) |
| Tap the touch strip | Tap the dial's screen (the plugin gets the position) |
| Long touch | Hold a still finger on the dial's screen |
- Dragging sideways still switches profiles, even when it starts on a dial.
- In the browser deck: click the dial (or Tab to it) and use the arrow keys to turn, PageUp/PageDown to turn 5 steps, Enter or space to press (the dial stays pressed while the key is held), T to tap the screen (Shift+T = long touch). The mouse wheel turns it too.
- With a screen reader, the screen and each control are read separately, with what the plugin says each gesture does. Everything can be done without dragging. Activating the middle button counts as a short press.
Put a dial on the deck¶
In the button editor on the PC, choose the Plugin (experimental) action, the plugin and the action. A dial-only action becomes a dial on its own; if it works as a key and as a dial, choose Key or Dial. The new button grows to 2 × 2 cells, the recommended size; 2 × 1 works well too (the controls move to the side). 1 × 1 works, but the controls get small. After saving, Try the saved dial, right in the editor, works like on the phone.
- A dial only works as the tap action. Long press, double tap, two states and information on the button don't apply to a dial, and a multi-action has no dial steps.
- The plugin gets row 0 and, as the column, the button's column in the profile. Two dials can share a column; the plugin tells them apart by context. DroidDeck still presents itself as a keypad device, not as a Stream Deck +.
- A plain press on a dial (an automation or an older app) becomes press and release.
- The middle button follows the rules for holding a key: the PC releases the dial on its own if the connection drops, after 10 s without a sign of life, after 10 minutes, or if the button changes or the plugin restarts.
The dial's screen¶
DroidDeck draws the built-in layouts ($X1, $A0, $A1, $B1, $B2, $C1) and custom .json
layouts from the plugin folder, and handles setFeedback, setFeedbackLayout,
setTriggerDescription, setTitle and setImage (the image goes to the icon item). Your label
replaces the plugin's title, and your icon or image replaces the icon item. The drawing is
DroidDeck's own: fonts, bar proportions and the five bar subtypes are close, not identical, and
haven't been compared against a real Stream Deck +.
Limits¶
Everything that comes from the plugin is checked on the PC:
- Layout: 1 to 24 items, inside 200 × 100, no overlap on the same
zOrder, unique keys (letters, numbers,-and_); a file of up to 32 KB inside the plugin folder. A layout that breaks a rule is refused as a whole (the reason goes to the logs) and the previous one stays. An invalid layout in the manifest becomes$X1, which is also the default. - Colours:
#rgb,#rrggbb, a colour name ortransparent; gradients with up to 8 stops. Texts up to 256 characters. An invalid property is ignored on its own. - Images: the same rules as keys (SVG without scripts or external references; nothing is fetched from the network), up to 400 px a side. The total size of a dial's images is limited.
- For the title, the colour, font and alignment sent by
setFeedbackare ignored, as in Stream Deck (where that choice belongs to the user). - Pace: turns are added up on the phone and on the PC (at most one
dialRotateevery 30 ms, and a turn or tap that can't be delivered within 2 s is dropped, not replayed later). The screen is sent to devices about 5 times a second at most, so animations lose frames and the response to turning can take a few tenths of a second.
Both the app and the PC need to be up to date. In an older app, a dial shows as a key with the icon and title, and tapping it presses and releases. A new app connected to an older PC shows a regular key.
System events¶
- Applications (
ApplicationsToMonitorin the manifest): the plugin is told when one of the executables it declared starts or quits (applicationDidLaunch/applicationDidTerminate), with the name as written in the manifest, ignoring case. The ones already running when the plugin starts are reported right away. DroidDeck only looks at the process list (every 2 s) while a plugin that declared applications is running, and never sends it the name of any other process. Up to 32 applications per plugin. A program that starts and quits between two looks can be missed. - PC waking up: after sleep or hibernation, running plugins receive
systemDidWakeUp. DroidDeck doesn't sendwillAppearagain: the keys never went away. - Deck grid: DroidDeck's deck is a single virtual device. When the number of rows or columns
changes, the plugin receives
deviceDidChange. The device exists as long as DroidDeck is open (with or without a phone connected), so there is nodeviceDidDisconnect.
Action resources¶
getResources, setResources and didReceiveResources work, in the plugin and in the settings
screen. Resources are stored on the PC with the button's settings (encrypted, copied with the button,
left out of backups and links).
- In Stream Deck, the files they point to travel with the action when it's exported. Not in DroidDeck: it only stores the texts (the paths) and never opens, copies or serves what they point to.
- Limits: 32 entries, keys up to 128 characters, values up to 1024, 16 KB in total. Above that, or with a value that isn't text, the request is ignored and what was stored stays.
Profiles that come with a plugin¶
A plugin can ship ready-made profiles (Profiles in the manifest) and ask the deck to open one of
them (switchToProfile).
- A plugin installs nothing on its own. Its profiles show on its card, in the plugins screen of
the configurator on the PC, with an Install profile button. If the plugin asks for a profile
that isn't installed, nothing changes and the card says it asked. The manifest's
AutoInstallis ignored. - Installing creates new profiles; none of yours is changed. From the file, DroidDeck keeps the titles, the images, the plugin's own actions (with their settings) and the navigation between folders of that same file. Hotkeys, opening programs, multi-actions, Stream Deck, OBS or other plugins' actions are left without an action. Resource files aren't extracted.
- Elgato doesn't document the
.streamDeckProfileformat: DroidDeck reads the same formats as its profile import. A file may fail to open. Buttons outside the grid are rearranged, as in the import, and the file's dials are ignored. - A plugin only switches to profiles its own manifest declares and that you installed. It can't open, list or read your profiles, and gets no reply to the request. At most one switch per second.
- The switch happens on the phones and browser decks that are
open, not in the configurator. A request without a profile name goes back to the profile that was
open, only if this plugin made the switch and you haven't changed pages since.
pagepicks the page (from 0; the first one without it). - Deleting an installed profile brings the Install profile button back. Uninstalling the plugin doesn't delete the profiles. If you add your own buttons to an installed profile, the plugin can take the deck there, but it doesn't learn what's on it and presses nothing.
What doesn't work¶
- Some action settings screens. See the limits.
- Running without a saved button. A plugin action only runs from a saved button (including as a step of its multi-action, or when an automation presses it).
- The Stream Deck Neo info bar, the legacy HTML plugins and deep links (
didReceiveDeepLink): DroidDeck doesn't register thestreamdeck://address in Windows. A plugin sign-in that ends at that address doesn't come back to DroidDeck.
While a plugin is running, all its saved buttons count as visible to it, in every profile. A plugin can
ask to open a web address: it opens in the browser on the PC (http and https only, with a rate
limit).
Settings and backups¶
Plugin settings, which may include account tokens, are stored only on the PC, encrypted. They aren't sent to phones, and backups and share links don't include them: they carry only which plugin and action each button uses. A profile restored on another PC starts with empty settings. See files and settings and the plugin API.