Webhook Widget
Menu Launch countdown

Example

Launch countdown

Five ways to display the same date.

timerstyles
Launch countdown
json
{
  "v": 1,
  "preferredFamily": "systemSmall",
  "refresh": 900,
  "accessibility": "Launch in 2 hours 40 minutes",
  "view": {
    "type": "vstack",
    "align": "leading",
    "spacing": 6,
    "padding": 14,
    "bg": "#241014",
    "children": [
      {
        "type": "hstack",
        "spacing": 4,
        "children": [
          {
            "type": "symbol",
            "name": "sparkles",
            "style": "caption2",
            "color": "#FF7A6B"
          },
          {
            "type": "text",
            "text": "LAUNCH",
            "style": "caption2",
            "weight": "bold",
            "color": "#FF7A6B"
          }
        ]
      },
      {
        "type": "timer",
        "until": "2026-08-11T11:20:00Z",
        "size": 26,
        "weight": "bold",
        "color": "white"
      },
      {"type": "divider"},
      {
        "type": "timer",
        "until": "2026-08-11T11:20:00Z",
        "style": "relative",
        "size": 12,
        "color": "#C99B95"
      },
      {
        "type": "timer",
        "until": "2026-08-11T11:20:00Z",
        "style": "offset",
        "size": 12,
        "color": "#C99B95"
      },
      {
        "type": "timer",
        "until": "2026-08-11T11:20:00Z",
        "style": "time",
        "size": 12,
        "color": "#C99B95"
      }
    ]
  }
}
This payload is for the small size. The larger sizes show the same payload with empty space around it. For a smaller size, the server sends a different payload.

How it works

A timer node takes one date and a style that sets the format. All five styles continue to update on the phone between fetches, so a countdown does not need a short refresh interval.

timer counts down in minutes and seconds. relative gives the distance in words. offset shows a signed duration: negative before the date and positive after it, as iOS does. date and time format the date itself.

Use from in place of until when the date is in the past. The renderer treats the two fields the same.

Put it on your Home Screen

We serve this example at the URL below. The server generates the timestamps at the time of each request. Add the URL as a hook in the app, and the widget works on your phone.

URL
https://webhookwidget.com/demo/countdown

Open the payload →

Next

Revenue, with a chart: A chart image alongside native text.
All examples