Your scripts. Your Stream Deck.
Turn program output into live text, progress rings, and images. An open-source Stream Deck plugin for macOS and Windows.
Get started · Examples · Protocol · Build · Changelog
showcase.py • video.sh • gif.py • fluxcapacitor.py
A line of output is all it takes:
| Code | On your key |
|---|---|
Bash | |
Python | |
Node.js |
Try the clocks, CPU, disk space, and counter demos, or explore the output protocol.
Choose how your program runs:
| Stream | Loop | Run |
|---|---|---|
![]() Keep it live. |
![]() Run. Wait. Repeat. |
![]() One press. One execution. |
- Stream: Tap to start or stop. Runs until stopped or the program exits.
- Loop: Tap to start or refresh; hold one second to stop. Repeats after each completion and the selected delay.
- Run: Tap to execute once; hold one second to stop. Busy taps are ignored. Retains successful output and never restarts automatically.
Run and Loop keep a successful run's final output visible, if any. Loop retains it between runs; no-output success shows success.
Stop keys before copying or exporting them to prevent automatic starts.
Programs may keep running after a plugin restart.
- Runtime: macOS 13+ or Windows 11 x64 · Stream Deck 7.1+
- Build: Node.js 24 and npm on macOS arm64/x64, Linux x64 (build-only), or Windows x64; internet access is needed for the first build (see the Windows guide)
- Demos: See demo requirements.
If you have a packaged build, open git.renaudcerrato.deckforge.streamDeckPlugin with Stream Deck to install it, then create your first key.
No package yet? Build one from source.
Set an absolute path to a program you trust. It runs directly with your permissions—without a shell or plugin PATH lookup. On macOS, executable scripts use their shebang. On Windows, choose an interpreter executable and put the script path in Arguments; see the Windows setup guide.
In Windows Arguments, backslashes stay literal. Use quotes to keep a path with spaces together, such as 'C:\My Scripts\showcase.py' or "C:\My Scripts\showcase.py".
On macOS, try the Python showcase:
- Drag Stream onto a key.
- Under Executable, select the absolute path to
demos/showcase.pyin your checkout. - Tap to start the demo. Tap again while it runs to stop; after it exits, tap again to replay.
On Windows 11 x64, add Stream to a key and run the clock.ps1 demo with PowerShell 5.1. Replace the example script path with its absolute path on your computer:
Executable: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Arguments: -NoLogo -NoProfile -NonInteractive -File 'C:\absolute\path\to\repo\demos\clock.ps1'
PowerShell's execution policy applies; do not weaken it if the script is blocked.
More examples: clocks, CPU, disk space, and counters.
Send flushed UTF-8 records, one per line (LF or CRLF). Maximum payload: 262,144 bytes, excluding the line ending. Text, cards, and progress use a 144 × 144 logical canvas, not hardware pixels.
text:42|color:cyan;label:Items
Start options with |; separate key:value pairs with ;. Omitted options reset to defaults on every record.
| Record | Result |
|---|---|
text:First\nSecond |
Two hard lines. |
text:Literal \\n |
Literal backslash followed by n. |
text:Ready|label:A\nB |
Caption keeps \n literal. |
card:UP|header:API;footer:HTTP 200 |
Header and footer around a single-line main value; see Card. |
Wire format and parsing rules
| Rule | Contract |
|---|---|
| Framing | Records may span reads; blank records are ignored. |
| Plain stdout | Literal text, including JSON-looking text. |
| Options | First unescaped | starts options; first : separates each key and value. Keys/enums are case-sensitive; whitespace is not trimmed. Quotes, commas, and later colons are literal. |
| Escapes | Use a backslash to escape ;, |, or another backslash. Unknown escapes remain literal; a dangling escape invalidates the command. |
| Hard breaks | Only explicit text: main content decodes \n, after command parsing. Plain stdout, captions, card fields, and progress keep it literal. Physical LF/CRLF always end records. |
| Numbers | Finite decimals only: no whitespace, exponent notation, or hex. |
| Defaults | Output styles are not saved preferences. header, footer, label, and display apply only to the current record; omission clears them or restores their documented defaults. |
text:A\|B\;C\\D
Prints A|B;C\D.
Shared options and colors
| Shared option | Default / values |
|---|---|
color |
Key theme (default #969696); text/card ink or progress fill. Opaque named color or #RRGGBB. |
background |
#000000; generated text, card, and progress. Built-in status artwork uses black. |
font |
sans; sans or mono. |
weight |
normal; normal or bold. |
label-weight |
Text/progress; defaults to headline/value weight; normal or bold. |
label-gap |
Text 8, progress 2; any finite nonnegative value, used only when both are visible. |
border |
0; 0–16 logical units. |
border-color |
Key theme, independently of color; opaque named color or #RRGGBB. |
Colors: 148 opaque named colors (aliases included) or six-digit #RRGGBB, case-insensitive and normalized to lowercase. No alpha, short hex, transparent, currentColor, CSS functions, or arbitrary CSS.
Auto-sized, wrapping text. Add label for a caption (centered by default); its color inherits by default.
| Record | Result |
|---|---|
text:144|label:FPS;label-position:above |
Caption above the headline. |
text:|label:Ready |
Caption only; auto size 18. |
text:|background:#101820 |
Clear text to the selected background. |
text:One\nTwo|font-size:18;padding:34;padding-y:28;line-height:2.5;border:16 |
Two hard lines with wide spacing and a 16-unit frame. |
Text options and layout rules
| Text option | Default / values |
|---|---|
font-size |
auto; auto or any finite positive size. Auto searches from 48 down to 16; fixed sizes, including fractional sizes, never shrink. |
label |
Empty; literal caption (omission clears it). |
label-size |
auto; half the fitted main font, bounded to 14–18 (18 for a caption alone); or any finite positive fixed size. |
label-color |
Effective main ink; opaque named color or #RRGGBB. |
label-position |
below; above or below the headline. |
valign |
center; top, center, bottom (whole visible block). |
align |
center; left, center, right (main text only). |
label-align |
center; left, center, right (caption only, against padded edges, including caption-only output). |
overflow |
wrap; wrap or one-line ellipsis. |
padding |
16; any finite nonnegative value sets both axes. A border may increase effective padding. |
padding-x, padding-y |
16; any finite nonnegative value. Each axis overrides padding regardless of option order; an omitted axis uses padding. |
line-height |
1.2; any finite value at least 1. |
| Mode | Behavior |
|---|---|
| No visible caption | Wrap within available height. Soft wrapping respects hard lines; leading, trailing, and consecutive empty lines consume font height and spacing. |
| Auto size | Fewest complete visual lines respecting hard breaks, then largest size from 48 to 16. At 16, overflow ellipsizes the last visible line, including when only blank lines are hidden. |
overflow:ellipsis |
One line; decoded hard breaks become spaces. |
| Case | Behavior |
|---|---|
| Nonblank caption | Single-line headline; decoded breaks become spaces. Caption uses label-align (center by default) above/below; both may ellipsize. |
| Auto headline | Fit headline and caption together; largest complete headline, or ellipsize at 16 if none fits. |
| Blank headline | Caption only, centered by default; auto size 18 regardless of label-position. |
| Fixed headline and caption too tall together | Drop only caption and gap; keep headline size and alignment. |
| Empty/normalized blank caption | Restore ordinary wrapping. |
Whitespace and NFC normalization apply within each hard line. Main text: at most 512 graphemes, including breaks. Padding is clipped safely inside the canvas and may be increased for a border; impossible content areas or layouts skip the record. Blank main text without a visible caption clears the background. Text color options reject accent; value-color is unsupported.
Cards display a main value with optional single-line header and footer.
Card options and layout rules
| Card option | Default / values |
|---|---|
header, footer |
Empty; literal single-line record content. Empty sides reserve no space. |
font-size |
auto (default; 48 down to 16, falling back to 16) or any finite positive size; fixed sizes never shrink. |
align |
center; left, center, right for the main value. |
overflow |
ellipsis (default; one-line main value); wrap soft-wraps the main value only. |
header-size, footer-size |
auto (default): half the fitted main size, clamped to 14–18 (18 without main content); or any finite positive size. |
header-color, footer-color |
Main color; opaque named color or #RRGGBB. |
header-font, footer-font |
Main font; sans or mono. |
header-weight, footer-weight |
Main weight; normal or bold. |
header-align, footer-align |
center; left, center, right, independently per side. |
header-gap, footer-gap |
8 each; any finite nonnegative value; no gap is reserved for a blank side. |
padding, padding-x, padding-y |
16 per axis; any finite nonnegative value. Each axis overrides padding; a border may increase effective padding. |
Cards also accept color, background, font, weight, border, and border-color from Shared styling.
- Header and footer sit at the padded top and bottom edges; the main block centers vertically between their slots.
header-gapandfooter-gapindependently set each visible side's gap. overflow:wrapsoft-wraps only the main value, with fixed 1.2 line spacing; header and footer remain single-line. Auto size prefers the fewest complete lines, then the largest size from 48 down to 16. If text still overflows, the last available line ellipsizes when possible; if no line fits in the middle area, one clipped line remains.- Ellipsized lines clip to the padded area if even the ellipsis cannot fit. Oversized lines may overlap or clip rather than being dropped; fixed main and side sizes never shrink.
- A nonpositive content area or unrepresentable geometry skips the record. An empty main value, header, and footer leave only the background and any border.
\nstays literal in all card fields.
progress:42.5
progress:17/1034
progress:17/1034|display:17 done
Send a percentage or ratio. display changes the annotation, not the fill. Default percentages round to tenths (17/1034 shows 1.6%).
Progress options and layout rules
| Progress option | Default / values |
|---|---|
type |
ring; ring or bar. |
scale |
Ring 80; bar 85; any finite positive percentage. Geometry scale, not value; the track must fit the canvas and border. |
thickness |
Ring 8; bar 12; any finite positive size. The track must remain drawable and fit. |
track-color |
#333333; opaque named color or #RRGGBB. |
label |
Empty; literal text (omission clears it). |
display |
Rounded percent; literal text, empty hides the value (omission restores percent). |
value-size |
16; any finite positive size. |
value-color |
White; opaque color or lowercase accent (effective fill). |
value-position |
center; center, above, below, none (hides the value). |
label-size |
16; any finite positive size. |
label-color |
White; opaque color or lowercase accent (effective fill). |
label-position |
below; above or below. |
rounded |
true; true or false (ring caps/bar corners). |
| Rule | Contract |
|---|---|
| Input | Finite decimal percentage, or ratio with exactly one slash, two finite decimal operands, and positive denominator. Invalid input skips the record. No separate value/max options. |
| Fill | Clamp to 0–100, retaining full precision (17/1034 ≈ 1.6441%). Rings fill clockwise from 12 o'clock. |
| Default annotation | Round to nearest tenth; omit trailing .0. Rounding never changes fill or stops the program. |
| Custom annotation | display is literal text, not a template. Empty display or value-position:none hides the value. |
| Annotation colors | Lowercase accent follows effective fill, including theme-only redraws without explicit fill. Explicit opaque colors stay fixed. |
| Fit | Explicit display/labels may ellipsize; default percentages never truncate. Font sizes and geometry never shrink. The whole track and every visible annotation must fit the 144-unit canvas and any protected border; infeasible or undrawable layouts skip the entire record. |
| Caption gap | label-gap is exact for a centered ring pair or a same-side value/caption pair; otherwise it is a minimum subject to geometry. |
| Centered ring value + label | Value and caption are centered together. |
Send one-line SVG or a base64 image URI. PNG, JPEG, SVG, and WebP are supported; GIF is not.
| Record | Preview |
|---|---|
SVG · <svg …>…</svg>Full record |
|
WebP · data:image/webp;base64,…Full record |
![]() |
PNG · data:image/png;base64,…Full record |
![]() |
JPEG · data:image/jpeg;base64,…Full record |
![]() |
Image formats and validation
Base64 prefixes: data:image/png;base64,, data:image/jpeg;base64,, data:image/svg+xml;base64,, data:image/webp;base64,.
Basic MIME/base64 checks only, not full decoding or parsing. Images ignore generated colors, borders, and backgrounds and have no producer-supplied title. A custom native title may overlay them.
| Invalid input | Result |
|---|---|
| Invalid reserved command; duplicate, unknown, or inapplicable option; impossible layout | Skip the record; keep the previous frame; do not reinterpret as text. |
| Invalid UTF-8, oversized payload, unterminated nonblank record at EOF, or malformed recognized image prefix | Stop the program; the key shows Error with the fixed Image protocol error. status. |
Fix malformed output, then retry: Stream—tap; Loop—hold one second to disable, then tap. Restarting the plugin also clears a protocol error. Retry is blocked if the previous program cannot be confirmed stopped or a settings save remains unconfirmed.
Error recovery rules
| Case | Behavior |
|---|---|
| Stream protocol error | No auto-relaunch. |
| Loop nonzero exit or signal failure | Retry after the interval; fatal protocol errors require manual recovery. |
| Executable, arguments, or working-directory edit | Can clear recoverable errors after safe cleanup and confirmed save; never starts the program. |
| Setup press, theme edit, or press-mode edit | Does not clear errors. |
Error messages never include output records.
Use the key's theme in your output:
import os
theme = os.environ.get("ELGATO_ACTION_THEME_COLOR", "#969696")
print(f"text:Building|color:{theme}", flush=True)Theme changes affect the next launch only. See Launch Environment for all available variables.
npm install
npm run packOpen dist/git.renaudcerrato.deckforge.streamDeckPlugin with Stream Deck to install. Use npm run build to build without packaging. Neither command requires Stream Deck or a device. See Requirements and the Windows guide.
Link the checkout:
npm run linkAfter rebuilding an already-linked checkout:
streamdeck restart git.renaudcerrato.deckforgenpm run stop stops the plugin; npm run unlink removes its development link without deleting plugin files. npm run watch builds on startup and source changes, restarting the plugin only after a successful build.
Licensed under the Apache License 2.0. Bundled third-party components retain their own licenses and notices.






