# `Macaw.Frame.TextForms.Sequence`
[🔗](https://github.com/dcoai/macaw_frame/blob/v0.1.0/lib/macaw/frame/text_forms/sequence.ex#L1)

The `sequenceDiagram` text form (spec/02 §11.3, spec/13 §7.3): a sequence diagram
written as mermaid writes one, read into a design whose `sequence` step lays its
participants across and its events down (`Macaw.Frame.TextForms`).

    sequenceDiagram
      participant C as Client
      actor U
      C->>+API: GET /orders
      API-->>-C: 200
      C-)U: notify
      Note over C,API: cached

- **A participant** is `participant Id` or `actor Id`, with `as Label`; one named only
  by a message is a participant labeled by its id. They are lanes in order of first
  appearance.
- **A message** is `From<arrow>To: text`, the arrow `->>` (`sync`), `-->>` (`reply`) or
  `-)` (`async`); a `+` before `To` opens an activation on it, a `-` closes the
  sender's.
- **A note** is `Note left of Id: text`, `Note right of Id: text` or
  `Note over Id[,Id]: text`.

Rows: `nodes` (`id`, `label`, `shape` `actor` or `rect`); `messages` (`from`, `to`,
`label`, `kind` (`sync`, `reply`, `async`, `note`, `note_left`, `note_right`),
`activate`, `deactivate`) in order, one an event. Faults, every one at once:
`{:expected, :message}`, `{:expected, :participant}`. `print/1` writes the participants,
then the events.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
