Vela

App developers

Native runtime and remote input

The first SDK gives a native Linux process a narrow presentation contract. The shell reads bounded frames and draws them with its own fonts and focus rules. This gives native applications a stable starting point in C, C++ or Rust and lets the television retain control of navigation when an app exits or stalls.

Process lifecycle

  1. The trusted launcher selects an installed ID and starts its executable under the application sandbox.
  2. The process receives an empty environment. It reads remote events on standard input and writes display frames on standard output.
  3. Its first valid frame makes the app visible. The startup deadline is four seconds.
  4. The user can leave with the shell's Home or Back control. End of input should let the app release its resources and exit.
  5. Malformed output, a failed start or an unexpected exit returns control to the shell.

Write diagnostics separately from the frame stream. Buffering a complete frame without flushing prevents the shell from presenting it. Avoid a tight loop that repeatedly sends the same content. A full Wayland surface, persistent app storage, arbitrary network access, background playback and rich graphics require additional APIs.

Wire format

VELA_CARD/1<TAB>Title<TAB>Body<LF>

Replace the markers with single tab and newline bytes. The title permits 48 printable ASCII characters and the body 120. Keep translated strings out of this constrained demonstrator until a UTF-8 presentation contract is supported. Input arrives as one byte per action.

Byte Action Example use
U / D Up / Down Previous or next list item.
L / R Left / Right Step between adjacent choices.
O OK Activate the current selection.

Home and Back are reserved by the platform. Keep a meaningful selection after a key press at the end of a list. A focused user should be able to predict what the next press will do.

C, C++ and Rust

In a development checkout the C/C++ header is sdk/native/include/vela/card.h. Use vela_card_present to present a card and vela_card_next_key to obtain an event. The dependency-free Rust crate under sdk/native/rust exposes present and next_key. Both speak the same versioned protocol. A developer can also write directly to the file descriptors, as the downloadable counter demonstrates.

The bundled Rust example lives in applications/rust-card. Build it on a matching Linux host or select an appropriate cross-target linker and static C library. A cargo build for the host does not change architecture merely because an ARM television is connected.

Beyond the card SDK

For a project with an existing Android codebase, first identify portable model, programme metadata, networking interfaces and navigation state. Keep Android lifecycle, view and platform service calls at the boundary. Kotlin Multiplatform and Compose are under evaluation. Retail APK installation and arbitrary Android framework APIs are outside the current runtime. Platform architecture