All fixtures · From the Format page · format/81-static-live-and-still.dh.md
Source
---
title: "Static: the same parts live and still"
description: The same scene, terminal and file tree twice, live and then static (SPEC 4.1); print draws every part this way.
---
## Static: the same parts live and still
Any part that steps or moves can stand still. `static` on the fence draws the finished state, and `static=2` or `static="<step title>"` draws that step, with no player, no control row and no motion. Printing, a page with `static: true` in its front matter, a host option and the reader's "reduce motion" setting use the same option. The LLM view is the same for both.
### A scene
Live:
```animation layout=graph
person u "reader"
box web "web server"
cylinder db "database"
box log "access log"
@step The reader asks for a page.
u -> web "GET /"
@step The server reads the row it needs.
web -> db "SELECT"
@step The server writes the visit to its log.
web -> log "visit"
```
Static, the finished state:
```animation layout=graph static
person u "reader"
box web "web server"
cylinder db "database"
box log "access log"
@step The reader asks for a page.
u -> web "GET /"
@step The server reads the row it needs.
web -> db "SELECT"
@step The server writes the visit to its log.
web -> log "visit"
```
### A terminal
Live:
```terminal title="setup"
$ bun add durian-hypermedia
installed durian-hypermedia
$ bun test
301 pass, 0 fail
```
Static, every command typed:
```terminal title="setup" static
$ bun add durian-hypermedia
installed durian-hypermedia
$ bun test
301 pass, 0 fail
```
### A file tree
Live:
```filetree
@step The app starts with one file
app/
api.ts
@step A parser joins it
app/
api.ts
parse.ts (new)
```
Static, the step named "The app starts with one file":
```filetree static="The app starts with one file"
@step The app starts with one file
app/
api.ts
@step A parser joins it
app/
api.ts
parse.ts (new)
```
LLM view
---
title: "Static: the same parts live and still"
description: The same scene, terminal and file tree twice, live and then static (SPEC 4.1); print draws every part this way.
source: format/81-static-live-and-still.dh.md
---
<!-- Made by dh llm from the source; nobody edits this file. -->
## Static: the same parts live and still
Any part that steps or moves can stand still. `static` on the fence draws the finished state, and `static=2` or `static="<step title>"` draws that step, with no player, no control row and no motion. Printing, a page with `static: true` in its front matter, a host option and the reader's "reduce motion" setting use the same option. The LLM view is the same for both.
### A scene
Live:
Animation, 3 steps. Starts with: person u "reader"; box web "web server"; cylinder db "database"; box log "access log".
1. The reader asks for a page.
2. The server reads the row it needs.
3. The server writes the visit to its log.
Static, the finished state:
Animation, 3 steps. Starts with: person u "reader"; box web "web server"; cylinder db "database"; box log "access log".
1. The reader asks for a page.
2. The server reads the row it needs.
3. The server writes the visit to its log.
### A terminal
Live:
```terminal
$ bun add durian-hypermedia
installed durian-hypermedia
$ bun test
301 pass, 0 fail
```
Static, every command typed:
```terminal static=
$ bun add durian-hypermedia
installed durian-hypermedia
$ bun test
301 pass, 0 fail
```
### A file tree
Live:
```filetree
@step The app starts with one file
app/
api.ts
@step A parser joins it
app/
api.ts
parse.ts (new)
```
Static, the step named "The app starts with one file":
```filetree static=1
@step The app starts with one file
app/
api.ts
@step A parser joins it
app/
api.ts
parse.ts (new)
```Static: the same parts live and still
Any part that steps or moves can stand still. static on the fence draws the finished state, and static=2 or static="<step title>" draws that step, with no player, no control row and no motion. Printing, a page with static: true in its front matter, a host option and the reader's "reduce motion" setting use the same option. The LLM view is the same for both.
A scene
Live:
Animation, 3 steps. Starts with: person u "reader"; box web "web server"; cylinder db "database"; box log "access log". 1. The reader asks for a page. 2. The server reads the row it needs. 3. The server writes the visit to its log.
All steps (3)
Static, the finished state:
Animation, 3 steps. Starts with: person u "reader"; box web "web server"; cylinder db "database"; box log "access log". 1. The reader asks for a page. 2. The server reads the row it needs. 3. The server writes the visit to its log.
3 The server writes the visit to its log.
All steps (3)
- The reader asks for a page.
- The server reads the row it needs.
- The server writes the visit to its log.
A terminal
Live:
Static, every command typed:
A file tree
Live:
- api.ts
Static, the step named "The app starts with one file":
- api.ts