Template
Animated counter widget for MCP Apps
A few big numbers that count up from zero and slide in one after another. It is the widget for results worth celebrating, not for monitoring.
Uses GSAP
We just wrapped the first year of our mentoring program. Can you show the highlights?
Used show_milestones
The house design: black outline, butter yellow and a marker swipe under the title.
The data it takes
| Field | Type | What it is |
|---|---|---|
| kicker | string | |
| titlerequired | string | |
| itemsrequired | object[] | |
| └ labelrequired | string | |
| └ valuerequired | number | |
| └ decimals | integer | |
| └ suffix | string | Shown after the number, e.g. "%" or "k" |
| └ note | string |
Sample data
{
"kicker": "Sample data",
"title": "A year of training",
"items": [
{
"label": "People trained",
"value": 1240,
"note": "across 38 workshops"
},
{
"label": "Satisfaction",
"value": 9.4,
"decimals": 1,
"suffix": "/10"
},
{
"label": "Hours saved",
"value": 6,
"suffix": "h/week",
"note": "per person, from a survey"
}
]
}The tool that shows it
A widget made from this template is shown by one tool. The model reads its description to decide when to call it and fills the input schema with the data. This is the definition Widgetry exports:
{
"name": "show_milestones",
"title": "Milestones",
"description": "Celebrates a few headline numbers: each one counts up from zero with its label and an optional note. Use it for year-in-review summaries, launch results or any achievement worth celebrating.",
"inputSchema": {
"type": "object",
"required": [
"title",
"items"
],
"properties": {
"kicker": {
"type": "string"
},
"title": {
"type": "string"
},
"items": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": [
"label",
"value"
],
"properties": {
"label": {
"type": "string"
},
"value": {
"type": "number"
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 3
},
"suffix": {
"type": "string",
"description": "Shown after the number, e.g. \"%\" or \"k\""
},
"note": {
"type": "string"
}
}
}
}
}
}
}More templates
- BoardColumns of cards with labels, dates and people. Like a Trello board.
- Aurora cardA featured announcement with a headline, a figure and a button, dressed differently by each design.
- 3D globeA WebGL globe with three.js that spins on its own and can be dragged, with a dot per place.
- WeatherThe weather for a place with animated SVG icons and the coming hours; each design paints its own sky.
- Progress ringsGoals as SVG rings that fill up as they appear, with their percentage.
- Area chartA series over time as an SVG curve with a gradient fill that draws itself in.
- 3D carouselCards on a ring that spins in 3D with CSS perspective. Pauses on hover.
- CountdownDays, hours, minutes and seconds to an event, ticking live with a little jump.
- DonutParts of a whole with Chart.js: animates in and responds to the mouse.
- MetricsA row of key figures with their change against the previous period.
- Bar chartHorizontal bars with their values, in the order they arrive.
- TableRows and columns with a sticky header; the caller decides the columns.