Getting Started
This page takes a Storyboard UI from nothing to running — first on your development machine, then on a display.
Table of Contents
Add the Extension to Your Project
Point at Your Storyboard Install
Before You Start
You need three things that this extension does not install for you:
| Why | Notes | |
|---|---|---|
| Crank Storyboard Designer | Authors the UI and exports the .gapp the engine loads |
Packaging shells out to it |
| A target Storyboard Engine build | Runs the UI on the display | Must match the display's architecture and rendering stack |
| A desktop Storyboard Engine build | Runs the UI on your development machine | Same Storyboard version as the target build |
Both engine builds normally come from the same Crank install, in sibling folders under
Storyboard_Engine/<version>/.
A package that ships to a device also needs a Storyboard Runtime licence selected on the
project. Packaging fails with Invalid Project Licenses without it. Desktop development does not.
Add the Extension to Your Project
In the OpenPV Developer Toolkit, open the Extensions tab and add the Storyboard extension.

Then reference the package in your application:
<PackageReference Include="Ahsoka.Extensions.Storyboard" />
Adding it in the Toolkit is what makes the extension participate in Generate and packaging.
Referencing the package is what lets your code compile against StoryboardClient. You need both.
Point at Your Storyboard Install
Adding the extension creates StoryboardConfiguration.json beside your platform's
PackageInfo.json. Open the Storyboard page in the Toolkit and set the two engine folders on the
Project tab: Storyboard Engine is the build for your display, Storyboard Debug Engine the
build for the machine you develop on.

The Generator tab controls the C# model generator: whether it runs, which folder the generated classes go to, and their namespace and base class.

Both tabs write to the same file:
{
"modelGeneratorEnabled": true,
"generatorOutputFolder": "../Generated",
"generatorNameSpace": "MyApp.Storyboard",
"generatorModelBaseClass": "MyViewModelBase",
"storyboardEngineFolder": "C:/Program Files/Crank_Software/Storyboard_Engine/9.0-stable.202601270852/linux-tiam62x-aarch64-opengles_2.0-wayland-obj",
"storyboardDebugEngineFolder": "C:/Program Files/Crank_Software/Storyboard_Engine/9.0-stable.202601270852/windows-x86_64-swrender-obj",
"launchConfigurations": []
}
storyboardEngineFolder is copied into the package and must match the display.
storyboardDebugEngineFolder runs on this machine. Picking the wrong one for either is the
most common setup mistake — see Configuration Reference.
Important
These are absolute paths to a local install, so they are machine specific. A project cloned onto another developer's machine — or onto Linux or macOS — needs them repointed. Nothing translates them for you.
Choose a Storyboard Project
Add a launch configuration pointing at your Storyboard project folder:
"launchConfigurations": [
{
"generatorProjectPath": "../StoryboardProject",
"storyboardAppName": "ThermostatIO",
"surfaceId": "2000"
}
]

storyboardAppName is the .gde filename without its extension. surfaceId picks the display.
One entry means one engine instance on one screen.
Warning
A launch configuration with an empty generatorProjectPath or storyboardAppName is skipped
everywhere — no model objects, no exported application, no engine on the start script. The
package still builds and deploys, and the display comes up blank. The Generate log says so, but
nothing fails.
Generate the Model Objects
Run Generate in the Toolkit. Two Storyboard steps run:
--GenerateStoryboardClassesreads every launch configuration'sevents/custom.evtand writesGeneratedStoryboardObjects.csintogeneratorOutputFolder.--AddStoryboardSDKadds the Storyboard SDK and the native SBIO wrapper to your project.
Step 2 runs whether or not modelGeneratorEnabled is true — the engine and the exported
application are needed either way. Only step 1 is gated on it.
Generate then goes on to build the .opv package, so the console keeps scrolling well past the
Storyboard steps. Step 1 is silent when it succeeds; the Storyboard lines to look for are step 2's
Exporting SB Application and Export complete, which name the exported .gapp.

You should now have one class per event. See Generated Model Objects for what they look like.
Wire Up the Client
Construct the client with the generated metadata, add every channel, then start it:
using Ahsoka.Storyboard;
var client = new StoryboardClient(StoryboardMetadata.EventMetadata);
// Add every channel BEFORE starting. Order determines the channel id.
client.AddInputChannel("thermostat_backend");
client.AddOutputChannel("thermostat_frontend");
client.StartStoryboardUI();
Receive events through the dispatcher, so handlers run on your application's main thread rather than on the client's listener thread:
Dispatcher.Default.RegisterCallback<StoryboardEventArgs>(HandleInputMessage, client);
void HandleInputMessage(object model, StoryboardEventArgs e)
{
switch (e.Message.Name)
{
case ChangeBrightness.Name:
var change = e.Message.GetObject<ChangeBrightness>();
ApplyBrightness(change.Value, change.Increase == 1);
break;
}
}
Registering the client as a dispatch source also lets the dispatcher open the channels and start
the listener for you when Dispatcher.Default.StartAndRun() runs — you do not call
StartEventListenerAsync yourself in that case.
To send, set the properties on a generated model object and hand its message to the client:
var update = new ThermostatUpdate();
update.CurrentTemperature = 58;
update.TargetTemperature = 70;
client.SendEvent(update.Message);
Important
The channel names must match the Storyboard application name, which is stored inside the
.gde model and is not necessarily the .gde filename. A name that matches nothing never opens,
and StartStoryboardUI blocks waiting for it — see
Channels & Messages.
Run It on the Desktop
Build and run. On Windows, macOS, or desktop Linux the client starts sbengine itself from
storyboardDebugEngineFolder, then opens the channels.

No display hardware is involved, so this is the fastest way to exercise events end to end.
Run It on a Display
Package the project and deploy it. On a device the flow is different in one important way: your
application does not start the engine. The installer writes the engine into the package and emits
an sbengine command into the generated UI start script, which runs before your application. The
client detects it is on a target and only opens channels.
See Packaging & Launch for what ends up in the package.
Start From a Demo Instead
The package ships runnable demos. In the Toolkit, choose one when creating a project:
| Demo | Language | Shows |
|---|---|---|
Ahsoka.CS.Blank.Storyboard |
C# | The minimum wiring, with an empty Storyboard project |
Ahsoka.CS.Storyboard |
C# | A thermostat UI with events in both directions |
Ahsoka.CS.MultiScreen.Storyboard |
C# | Two displays, two engines, one shared model |
Ahsoka.CPP.Storyboard |
C++ | The same thermostat from C++ |
Starting from Ahsoka.CS.Storyboard and changing an event is usually faster than assembling a
project from scratch.