Skip to main content
Create a project:
Replace main.star with:
Run the live preview:
Open http://localhost:8080. You can pass configuration through the preview URL, for example http://localhost:8080?message=good%20morning.

What the code does

  1. load imports the runtime’s render module.
  2. main(config) is the app entry point.
  3. render.Box creates a 64×32 background and centers its child.
  4. render.Text draws one line using a bundled pixel font.
  5. render.Root supplies the final widget tree to the encoder.

Validate the result

Inspect the WebP at its native 64×32 size and magnified. A browser preview is a development check, not a substitute for viewing the app on a physical panel.