Skip to Content
sdeck docs

Without hardware

A whole deck in memory, for tests, demos and CI.

createVirtualStreamDeck() gives a fully working deck on an in-memory transport, for tests, demos and CI. It is a Neo unless you name another model:

import { createVirtualStreamDeck } from "@sdeck/elgato";

const { deck, tap, turnDial, unplug, transport } = createVirtualStreamDeck("plus");
await deck.setKeyImage(0, "icon.png");
await Bun.write("screen.png", await deck.snapshot());
tap(0); // emits keyDown / keyUp
turnDial(1, -3); // emits dialTurn
// runApp(app, { openDeck: async () => deck }) runs a whole app on it

createMemoryTransport() in core is the underlying transport, usable for other models. It records every write and feature report and can simulate input and unplugging.