# Lock Screen widgets

Every Droplet.ai widget can also appear on the Lock Screen in three shapes: round (circular), wide (rectangular) and one line above the clock (inline). You choose what each shows with `lock`; the user picks the shape when they add it. Rules in [design.md](../references/design.md#6-lock-screen).

| Field | What it is |
|---|---|
| `lock.circular` | Block index for the round widget: a gauge, progress, metric, clock, countdown or text of 12 characters or fewer |
| `lock.rectangular` | Block index for the wide widget (default: the first block), shown as one line under the title |
| `lock.inline` | The line above the clock: about 20 characters fit (up to 40 are kept) |
| `lock.symbol` | SF Symbol for the inline line and for a round widget with nothing to show |

A widget always needs blocks: without any, the Home Screen shows "Waiting for your agent…". If the user wants it only on the Lock Screen, still give it a block or two.

## Round: a ring

```json
{
  "slug": "lock-water",
  "title": "Water",
  "symbol": "drop.fill",
  "accent": "#0A84FF",
  "blocks": [
    { "type": "gauge", "label": "Glasses", "value": 5, "max": 8, "text": "5/8" },
    { "type": "chart", "label": "This week", "style": "bar", "values": [8, 6, 7, 8, 5, 7, 5] }
  ],
  "lock": { "circular": 0, "inline": "Water 5 of 8" }
}
```

## Round: a second time zone

```json
{
  "slug": "lock-nyc",
  "title": "New York",
  "symbol": "globe.americas.fill",
  "blocks": [
    { "type": "clock", "label": "New York", "timezone": "America/New_York" },
    { "type": "clock", "label": "Riyadh", "timezone": "Asia/Riyadh" },
    { "type": "list", "title": "Kate's day", "items": [
      "Standup 9:30 (16:30)",
      "Lunch 12 to 1",
      "Offline after 6pm"
    ] }
  ],
  "lock": { "circular": 0, "inline": "New York" }
}
```

## Round: a countdown with a filling ring

```json
{
  "slug": "lock-launch",
  "title": "Launch",
  "symbol": "flag.checkered",
  "blocks": [
    { "type": "countdown", "label": "Launch", "to": "2027-03-15T09:00:00+03:00", "from": "2026-11-01T09:00:00+03:00" },
    { "type": "list", "title": "Before launch", "items": [
      "Press kit (Omar)",
      "Pricing page (Lina)",
      "Support macros (you)"
    ] }
  ],
  "sizes": { "small": [0], "medium": [0], "large": [0, 1] },
  "lock": { "circular": 0, "inline": "Launch day" }
}
```

## Round: short text

When there's no number, point `lock.circular` at a text of 12 characters or fewer:

```json
{
  "slug": "lock-wifi",
  "title": "Guest Wi-Fi",
  "symbol": "wifi",
  "blocks": [
    { "type": "text", "style": "title", "text": "Network: Home-Guest" },
    { "type": "text", "text": "Password: blue-cactus-42. Shared with guests until Sunday." },
    { "type": "text", "text": "Wi-Fi" },
    { "type": "list", "items": [
      "Guests: Omar and Lina",
      "Expires Sunday 23:00",
      "Your main network stays private"
    ] }
  ],
  "sizes": { "small": [0], "medium": [0, 1], "large": [0, 1, 3] },
  "lock": { "circular": 2, "rectangular": 1, "inline": "Guest Wi-Fi" }
}
```

The rectangular widget shows "Guest Wi-Fi" with "Password: blue-cactus-42" under it. Never put a password into an image URL (such as a QR code service): the URL goes to that service.

## Rectangular: a metric and a bar

```json
{
  "slug": "lock-steps",
  "title": "Steps",
  "symbol": "figure.walk",
  "accent": "#30D158",
  "blocks": [
    { "type": "metric", "label": "Steps", "value": "7,420" },
    { "type": "gauge", "label": "Goal", "value": 7420, "max": 10000, "text": "74%", "style": "bar" },
    { "type": "chart", "label": "This week", "style": "bar", "values": [6200, 8400, 7100, 9300, 5400, 8800, 7420] }
  ],
  "sizes": { "small": [0, 1], "medium": [0, 1], "large": [0, 1, 2] },
  "lock": { "circular": 0, "rectangular": 1, "inline": "7,420 steps" }
}
```

A gauge or a `timer` countdown on the rectangular widget also draws a bar or ticks live; other blocks are one line of text (a checklist shows "2 of 5 done · next item").

## Inline only matters as one line

`lock.inline` is static text. Keep times and counts out of it unless you update it when they change. About 20 characters fit next to the date; the checker notes anything over 28.

## What doesn't work on the Lock Screen

- Colours: iOS draws Lock Screen widgets in its own style, so meaning must be in words and numbers.
- Buttons and ticking. A tap opens the widget's `url`, or Droplet.ai. For a one-tap action there, the user can add your button with Droplet.ai's "Agent button" control.
- `private: true` hides the content while the phone is locked; `sensitive: true` hides one block.
