# Opening hours: Diagram element for AI agents

> A day-by-day table; today gets the highlighter swipe and a scrawled note.

Canonical page: https://agentframes.ai/elements/bright/opening-hours/
Markdown: https://agentframes.ai/elements/bright/opening-hours.md

## Overview

- Name: Opening hours (`openingHours`), an element: one HyperFrames block per size
- Part of: the [Bright](https://agentframes.ai/packs/bright.md) pack (18 of 47). Available only through the All-access subscription.
- Category: Diagram
- Purpose: A day-by-day table; today gets the highlighter swipe and a scrawled note.
- Pack: [Bright](https://agentframes.ai/packs/bright.md), included in All-access (from $14/month billed annually ($168/year), or $19 monthly)
- Subscribe: POST https://agentframes.ai/api/checkout/subscribe with interval=month or interval=year (optional currency=USD|GBP|EUR|AUD|CAD; 303 redirect to Stripe checkout; a human pays there). Then download any pack with the subscriber key: https://agentframes.ai/account.md
- Aspects: 16:9 (native), 9:16 (native), 4:5 (native), 1:1 (native)
- Canvases: works on Cream (`cream`), Blush (`blush`), Night (`night`); avoid none
- Typical duration: 6.5s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/bright/opening-hours.mp4
- Poster: https://agentframes.ai/media/bright/opening-hours.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Bright pack. Add a `openingHours` beat to plan.json on a `cream` canvas with slots `line`, `rows`, `today` and `note` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `line` | string | line | {"type":"string","minLength":1,"maxLength":32,"pattern":"^[^\\n]*(\\n[^\\n]*){0,1}$"} | When _I'm free |
| `rows` | string | rows | {"type":"array","minItems":3,"maxItems":7,"items":{"type":"object","properties":{"day":{"type":"string","minLength":1,"maxLength":9},"hours":{"type":"string","minLength":1,"maxLength":16}},"required":["day","hours"]}} | [{"day":"Mon","hours":"9:00 – 17:00"},{"day":"Tue","hours":"9:00 – 17:00"},{"day":"Wed","hours":"9:00 – 19:00"},{"day":"Thu","hours":"9:00 – 17:00"},{"day":"Fri","hours":"9:00 – 15:00"},{"day":"Sat","hours":"By request"},{"day":"Sun","hours":"Closed"}] |
| `today` | number | today | {"type":"integer","minimum":0,"maximum":7} | 3 |
| `note` | string | note | {"type":"string","minLength":0,"maxLength":24} | late slot! |

## What your agent can change

Opening hours · role: Opening hours. A day-by-day table; today gets the highlighter swipe and a scrawled note.

Native 1920×1080, 6.5s at 30 fps. Service Ads (content type `service`). Use the matching aspect variant; never stretch another size.

### Mount
Copy every manifest file path→target, plus `af-bright-runtime`. Mount with a unique host id, `data-composition-id="af-bright-opening-hours-16x9"`, `data-composition-src="compositions/af-bright-opening-hours-16x9.html"` and `data-variable-values` (JSON object). The starter projects already contain everything; there, edit brand.json and business.json and run `npm run brand`.

### Slots (content)
- `line`: {"type":"string","minLength":1,"maxLength":32,"pattern":"^[^\\n]*(\\n[^\\n]*){0,1}$"}
- `rows`: JSON string; {"type":"array","minItems":3,"maxItems":7,"items":{"type":"object","properties":{"day":{"type":"string","minLength":1,"maxLength":9},"hours":{"type":"string","minLength":1,"maxLength":16}},"required":["day","hours"]}}
- `today`: {"type":"integer","minimum":0,"maximum":7}
- `note`: {"type":"string","minLength":0,"maxLength":24}

Headline syntax (caps slots such as `headline`, `line`, `tagline`, `name`): `\n` breaks a line; a line that starts with `*`, `_` or `~` sits on a primary, secondary or tertiary highlighter swipe. Scrawl notes (`note`, `eyebrow`, `deadline`) accept `\n` too. In `quote`, `*phrase*` gets the highlighter.

Images (`format: image`) are paths inside the project (`assets/people/me.png`) or inline base64. Portraits (`photo`) must be **cut-outs**: transparent PNG of the person from the waist or chest up, trimmed, at least 1200 px tall. Job photos (`before`, `after`) are JPG/WebP, at least 1200 px on the short side, shot from the same angle; they are cropped to fill. Client avatars are square. A missing file stops the block with "image not found: <path>".

### Style
`brandName` (1-24, the typeset name), `logo` (empty = typeset name, or an image path / base64), `primary` / `secondary` / `tertiary` (#RRGGBB highlighter colours), `canvas` (cream | blush | night). Text on a swipe picks white or near-black automatically for contrast.

### Limits and errors
Out-of-range input stops the block with a message on `data-bright-error` and in the console (for example "items has 5 items; supported: 3-4"). Copy that is within the character limits but still too wide for this size is refused ("does not fit the 16x9 layout"), never shrunk. The build has landed by 3.9s; the last 0.4 s is the outro.

Source: editable HTML + local GSAP and fonts. Deterministic (no randomness, no clock). See the pack LICENCE.md and NOTICE.

## FAQ

### What can my AI agent change in Opening hours?

Your agent fills the `line`, `rows`, `today` and `note` slots through the block's data-variable-values (or the starter project's variables). Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Bright look.

### Which aspect ratios does Opening hours support?

Opening hours is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 6.5s.

### How do I get Opening hours?

Opening hours is included in the Bright pack, which is part of the AgentFrames All-access subscription along with 46 other templates in this pack and every other pack on the store. You get the full source, the editing contracts and the agent instructions.

## More in Bright

- [Service list](https://agentframes.ai/elements/bright/service-list.md): 3-4 services, each with an icon disc that pops and draws itself, a bold title and one line of detail. Items land on cues.
- [Three-step process](https://agentframes.ai/elements/bright/process-steps.md): 2-4 numbered discs joined by a hand-drawn route: how a booking works, step by step on cues.
- [Areas I cover](https://agentframes.ai/elements/bright/area-covered.md): Your base pin with radiating rings and a base strap; the towns you cover pop in as pastel pills.
- [Questions answered](https://agentframes.ai/elements/bright/faq.md): 2-3 question cards land one by one with the answer rising under each (side by side in 16:9).

## Community

Coming soon.
