Drop a Mermaid block into any text node on a cnvs.app board and it renders as a proper diagram. Edit the source — the diagram re-renders for every connected collaborator in real time. No separate editor, no copy-paste from mermaid.live.
flowchart LR / graph TD — boxes, arrows, decisions.
sequenceDiagram — actor → actor messages, perfect for API and request flows.
classDiagram — OOP class boxes with attributes, methods, relationships.
stateDiagram-v2 — states + transitions, ideal for state machines.
erDiagram — entity-relationship modelling for databases.
gantt — project timelines with tasks and durations.
mindmap — hierarchical idea trees. Perfect for brainstorming.
journey — user experience step ratings.
timeline — chronological events.
gitGraph — branch / merge visualisation.
C4Context / C4Container — system-design diagrams.
pie — single-line declarations for share-of-X visuals.
```mermaid
flowchart LR
A[User] --> B{Logged in?}
B -- Yes --> C[Dashboard]
B -- No --> D[Login page]
```
Rule: one diagram per text node. The whole content must be a single fenced mermaid block.
get_board and propose updates.sequenceDiagram
participant Client
participant API
participant Worker
participant DB
Client->>API: POST /upload (file)
API->>Worker: enqueue(job_id)
API-->>Client: 202 Accepted
Worker->>DB: write status=processing
Worker->>DB: write status=done
Client->>API: GET /status/{job_id}
API-->>Client: { status: "done" }