Grant the machine
1
Open the app's integrations
Open the app in Stardeck, go to Settings, and select Integrations.
2
Grant an Edge machine
Under Edge Devices, choose the paired machine and select Grant.Only machines in the same organization are available.
3
Choose a default
If the app can use more than one Edge machine, select the star beside the machine it should use
by default.The default is used when the app sends a job without naming a particular machine or printer.
Pair a printer alias
An alias is a stable role used by the app, such asfront-counter, kitchen, or
customer-receipt. The alias points to a physical printer.
This lets you replace a printer later without changing app code.
1
Open Printer Pairings
In the app’s Settings → Integrations, find Printer Pairings.
2
Enter an alias
Use lowercase letters, numbers, hyphens, or underscores. Keep the name tied to the printer’s
job, not its model.
3
Choose the physical printer
Select a configured printer on one of the machines granted to this app, then select Pair.
4
Test the app flow
Run the app action that prints to this alias and confirm the job reaches the expected printer.
Customize receipt branding
Under Receipt Branding in the same app settings:- upload a PNG, JPEG, or WebP logo
- review the exact black-and-white print preview
- replace or remove the current logo
- turn the Powered by Stardeck footer mark on or off
Ask the agent to build an Edge feature
Once the grant exists, describe the behavior you want in the app’s project chat:For developers
Server-side app code can use@stardeck-customer-apps/edge-sdk. Stardeck injects the required
connection settings into sandboxes and deployments, so no device secret needs to be copied into
the app.
listPeripherals() and testPrint() to build an in-app pairing screen for location staff.
Handle offline and broken-binding errors by showing a retry or re-pairing action instead of a
generic failure.
Control the receipt layout
For alignment, bold, text size, rules, spacing, or a different section order, send an ordered list of blocks instead of the fixed fields:text, columns, separator, spacer, items, and barcode. Set
paperWidth on the receipt to lay out for 58mm or 80mm regardless of the printer.
A QR prints at the printer’s default size unless the block sets widthPercent (5–100), the share
of the paper width it should take. The printed width is quantised to whole dots per cell and
rounded down, so the code lands on the nearest size at or below the request — and the preview
draws that size, not the request. More data means a denser symbol at the same width, so shorten a
long URL rather than shrinking the code further.
Show an accurate preview in the app
getCapabilities() reports what the target printer can do — paper width and characters per line,
whether text prints as characters or as an image, Thai and Unicode coverage, supported barcodes,
cutter, and cash drawer. renderReceiptPreviewHtml() lays the receipt out with the same code the
printer uses, so an on-screen preview matches the paper.
Set up an Edge display
Show a fixed page or let the app change a screen live.