> ## Documentation Index
> Fetch the complete documentation index at: https://docs.heyniblet.com/llms.txt
> Use this file to discover all available pages before exploring further.

# App patterns

> Use small, original patterns for clocks, API-backed frames, and animation.

## Local time

```starlark theme={null}
load("render.star", "render")
load("time.star", "time")

def main(config):
    timezone = config.get("timezone") or "UTC"
    now = time.now().in_location(timezone)
    return render.Root(
        child = render.Text(
            content = now.format("3:04 PM"),
            font = "6x13",
        ),
    )
```

## API-backed status

```starlark theme={null}
load("http.star", "http")
load("render.star", "render")

def main():
    response = http.get(
        "https://status.example.com/current.json",
        ttl_seconds = 300,
    )
    label = "offline"
    if response.status_code == 200:
        label = response.json().get("label", "unknown")
    return render.Root(child = render.Text(label))
```

## Two-frame blink

```starlark theme={null}
load("render.star", "render")

def main():
    return render.Root(
        delay = 500,
        child = render.Animation(
            children = [
                render.Text("12:34"),
                render.Text("12 34"),
            ],
        ),
    )
```

Use these as structural examples. Replace endpoints, wording, colors, and layout with assets and data you have permission to publish.
