Skip to content

Your first widget

Create a new script in Scriptable and paste the following:

// Add this script to a small Scriptable Home Screen widget.
const message = "Hello, world!"
const widget = new ListWidget()
widget.addText(message)
Script.setWidget(widget)
Script.complete()

Touch and hold your Home Screen, choose to add a widget, and select Scriptable. Add a small widget, edit it, and choose your script.

Explore ListWidget to add images and layout, WidgetText to style your text, and Request to fetch data.