# Stack: Compounding: Stat & chart element for AI agents

> Small things compounding. Labelled blocks drop one by one onto a growing stack while a counter ticks up (x1, x2 …); the figure rides the top of the stack and celebrates at the end.

Canonical page: https://agentframes.ai/elements/archetype/stack-compound/
Markdown: https://agentframes.ai/elements/archetype/stack-compound.md

## Overview

- Name: Stack: Compounding (`stackCompound`), an element: one HyperFrames block per size
- Part of: the [Archetype](https://agentframes.ai/packs/archetype.md) pack (46 of 50). Available only through the All-access subscription.
- Category: Stat & chart
- Purpose: Small things compounding. Labelled blocks drop one by one onto a growing stack while a counter ticks up (x1, x2 …); the figure rides the top of the stack and celebrates at the end.
- Pack: [Archetype](https://agentframes.ai/packs/archetype.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 none; avoid none
- Typical duration: 6.5s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/archetype/stack-compound.mp4
- Poster: https://agentframes.ai/media/archetype/stack-compound.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Archetype pack. Add a `stackCompound` beat to plan.json on a `k` canvas with slots `title`, `items` and `caption` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `title` | string | title | {"type":"string","minLength":1,"maxLength":44} | One day at a *time* |
| `items` | string | items | JSON string. {"type":"array","minItems":2,"maxItems":6,"items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":16}},"required":["label"]}} | [{"label":"Day 1"},{"label":"Day 2"},{"label":"Day 3"},{"label":"Day 4"},{"label":"Day 5"}] |
| `caption` | string | caption | {"type":"string","minLength":1,"maxLength":48} |  |

## What your agent can change

**Stack: Compounding**. Native 1920×1080, 6.5s at 30fps.

Small things compounding. Labelled blocks drop one by one onto a growing stack while a counter ticks up (x1, x2 …); the figure rides the top of the stack and celebrates at the end.

**Motion.** Plinth emerges; figure lands; each block drops onto the stack (overshoot) and the figure hops up onto it; the counter steps; at the end the figure raises its arms; caption follows.
**Why it moves.** change: compounding is height that keeps adding.

### Mount

Copy every manifest file into your project (plus `af-archetype-runtime`). Mount with a unique host id, `data-composition-id="af-archetype-stack-compound-16x9"`,
`data-composition-src="compositions/af-archetype-stack-compound-16x9.html"`, `data-duration="6.5"` and `data-variable-values`.
Use the variant whose size matches your project (16x9, 9x16, 4x5, 1x1): each is laid out natively, never scaled.

### Content slots

Nested slots are JSON strings. Every slot is checked against `constraints.json` and measured against the layout before anything
draws; the block stops with a message naming the slot and the fix (it never truncates or shrinks text).

- `title`: {"type":"string","minLength":1,"maxLength":44}
- `items` (required): {"type":"array","minItems":2,"maxItems":6,"items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":16}},"required":["label"]}}
- `caption`: {"type":"string","minLength":1,"maxLength":48}


Style: `colourway` (void, abyss, dusk), `accent` (optional hex for the tip colour), `footer`, `enter` / `exit` (dark or cut).

### Timing

6.5s. Everything has landed by 3.9s (60%), then the scene holds for reading (figures keep a small idle, ripples
spread, text stays still). It fades up out of black and closes to black over the last 0.5 s.

### Example

```json
{
  "title": "One day at a *time*",
  "items": "[{\"label\":\"Day 1\"},{\"label\":\"Day 2\"},{\"label\":\"Day 3\"},{\"label\":\"Day 4\"},{\"label\":\"Day 5\"}]",
  "caption": ""
}
```

## FAQ

### What can my AI agent change in Stack: Compounding?

Your agent fills the `title`, `items` and `caption` 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 Archetype look.

### Which aspect ratios does Stack: Compounding support?

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

### How do I get Stack: Compounding?

Stack: Compounding is included in the Archetype pack, which is part of the AgentFrames All-access subscription along with 49 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 Archetype

- [Bar Chart: The Towers](https://agentframes.ai/elements/archetype/bar-towers.md): Two to six values as lattice towers rising out of the water (the waterline is zero). Values count up with the tower heights; labels sit on the water; the highlighted tower gets a red tip and a figure lands on top of it and raises its arms.
- [Big Stat: One Tower](https://agentframes.ai/elements/archetype/big-stat-tower.md): One number that matters. A lattice tower shoots up out of the water while the number counts up in big spaced caps beside it; the label fades up and a figure lands on top of the tower.
- [Percent: The Crowd](https://agentframes.ai/elements/archetype/percent-crowd.md): A share of people. A crowd of small figures (100 in 16:9, 100 in the tall sizes) fades up, then n% of them light in the tip colour row by row from the bottom while the percentage counts up.
- [Line Chart: The Handrail](https://agentframes.ai/elements/archetype/line-handrail.md): A trend over three to seven points. A handrail on posts rises and falls across the water (zero at the waterline); a figure walks along it as it draws, and each value ticks on above its post; labels sit on the water.

## Community

Coming soon.
