What a scene says
A scene names the things on the screen, the ties between them, the form they stand in, which one is open and what is playing. It holds no code, markup, colour, position or timing. Send the next scene with the same ids and the stage moves there: what stays travels, what is new gathers out of the thing it belongs to, what is gone returns to it.
Kinds of thing
Every thing is one of ten kinds, and a kind is drawn one way wherever it appears.
person- Someone. A round face from
picture, or their initials. organization- A company, a team, a body. A solid plate with its name.
work- Something made: a video, a post, a paper, a page. Its
picturewith its name andsubunder it; withmediait plays in place. place- Somewhere to go: a site, an account, a room. A plate of words; with
pageit opens there in a new tab. product- Something an organization makes. A plate of words.
topic- What things are about. A plate of words.
figure- An amount, a count, a date: its name small and its
valueunder it. One that can be answered carriesask. proof- What makes a result checkable: a receipt, a digest. A plate with a seal; its facts are the digests, whole.
model- A solid. Its
pictureor three strokes in the field; opened, itsshapeis drawn and the person turns it. step- Something done: a stage of a program, a rule, a task. A squared plate with a mark for its
state.
Fields
A thing needs an id, a kind and a label. The rest says more when there is more to say.
id- Kept from scene to scene: it is what makes a change read as travel. No spaces.
of- The thing this one belongs to. It is on the screen only while that thing is open, and arrives out of it.
facts- Up to 24 lines known about it (
label,value); the first six are shown when it is open.tone: actmarks the one that can be acted on or is wrong. media- What plays in place:
{kind: video, provider: youtube, id}or{kind: post, provider: x, id}. An address is never a player. page- Its own page (https), opened in a new tab by the person; never loaded by the stage.
group, at, weight- What the forms stand things by: a group's name, when it happened, how much it counts (0 to 1).
ref- Where it is held: a graph, its entity there and the exact release it was read from.
value- What a figure reads, as a person should read it. When the next scene gives the same figure another value, light runs to it along what feeds it.
ask- What a figure asks of the person:
{kind: number | date | text | choice, now, unit, choices}. Answering is the actanswer; whoever said the scene says the next one. shape- The solid a model shows:
{kind: mesh, id, digest, unit}. The host gives the bytes by that name; bytes with another digest are refused. An address is never a shape. state- How a thing stands:
done,doing,waitingorwrong. Onlywrongtakes the host's highlight. A figure or a proof that iswaitingis drawn faint: what it was made from has been answered and it has not been worked out again. ties[].opens- The thing that makes a tie true (the post that named them). Pressing the tie opens it.
Forms
The form is how the things stand. Changing it moves every thing to its new place; nothing is drawn again.
ring- Everything together on two ovals, threads between tied things; organizations and topics stand in the middle, toward what they are tied to.
groups- One cluster for each
group, named above it; a thing with no group stands with its kind. timeline- Left to right by
at, newest at the right; things with no date stand apart below. rows- Ranked by
weight, heaviest first, each with its name andsubwritten beside it. flow- What feeds stands before what it feeds: a tie runs from a thing to the thing made from it. Left to right on a wide stage, down the page on a narrow one.
Acts
What a person does comes back as one of six acts. Each means the same on every screen.
open- Open a thing as a dossier. Opening a thing that belongs to another opens its owner and, when it can play, plays it.
close- Stop what is playing; with nothing playing, close what is open.
play- Play a thing's media in its platform's own player.
stop- Stop what is playing.
form- Stand the things in another form. Closes whatever is open.
answer- Answer what a thing asks. The answer stands on that thing, whatever was open closes, and everything its ties lead on to is
waitinguntil whoever said the scene says it again.
Players
A video or a post plays in its platform’s own player, named by provider and id. An address is never a player, and a host lets in only these origins.
youtube video- A video or a short, by its id. Shown from https://www.youtube-nocookie.com.
x post- A post, by its numeric id. Shown from https://platform.twitter.com.
Shapes
A model names its shape by the digest of its bytes. The host hands the stage those bytes; bytes that are not the ones named are not drawn. A shape is fetched and turned only when its model is on the screen.
mesh- Triangles, sixteen bits to a coordinate, gzipped. Drawn with flat faces and its edges; no picture is laid on it. Held as hopper.dynamic-ui.mesh.v1.
Made from
A scene need not be written by hand. The library makes one from what an engine or a graph already answered, and adds nothing to it.
from-run- A FactGraph run with its explanation, said as a flow: what was given, what each rule worked out, and the receipt.
from-program- A Graph Computer program and a run of it, said as a flow: what it was given, each step and how it stands, what came out, and the run's verification.
from-graph- A graph release or a Graph Query answer, said as things and ties, each thing carrying the graph, entity and release it was read from.
Limits
A scene holds at most 600 things and 2,000 ties, a thing at most 24 facts, and any run of words at most 400 characters. More than that is a question for a graph, not a screen.
Refusals
A scene is read whole or refused. A refusal is a code and where; nothing is repaired.
SCENE_NOT_VALID- A field has the wrong shape;
issuessays which. THING_TWICE- Two things have the same id.
OWNER_NOT_IN_SCENE- A thing is
ofsomething that is not in the scene. TIE_END_NOT_IN_SCENE- A tie's
from,tooropensis not in the scene. OPEN_NOT_IN_SCENEopennames a thing that is not in the scene.PLAYING_HAS_NO_MEDIAplayingnames a thing with nothing to play.ANSWER_NOT_A_CHOICE- A thing that asks for a choice stands answered with something that is not one of its choices.
A whole scene
Three things and one tie. The film belongs to the person, so it is on the screen only while they are open.
{
"schemaVersion": "hopper.dynamic-ui.scene.v1",
"id": "example.first-scene",
"say": "A studio, the person who runs it, and one thing they made.",
"form": {
"kind": "ring"
},
"things": [
{
"id": "person:ada",
"kind": "person",
"label": "Ada Example",
"sub": "Runs the studio",
"facts": [
{
"label": "Since",
"value": "2021"
}
]
},
{
"id": "org:studio",
"kind": "organization",
"label": "Example Studio",
"facts": [
{
"label": "Makes",
"value": "Short films"
}
]
},
{
"id": "work:first-film",
"kind": "work",
"of": "person:ada",
"label": "The first film",
"sub": "Four minutes",
"at": "2026-03-01T00:00:00.000Z"
}
],
"ties": [
{
"from": "person:ada",
"to": "org:studio",
"kind": "runs",
"label": "runs"
}
]
}Pressing the person sends this act back. The scene after it is the same scene with open set.
{
"act": "open",
"id": "person:ada"
}