Skip to content

Presence, comments and recording

Audience: people in a Live Model Session · ~8 min read · Prerequisites: Live collaboration

What it is

While a session is running, struktJS shows you who else is in the room and what they are doing. This is called presence: avatars, coloured cursors, pointer dots and small activity badges. On top of that you can attach comment threads to nodes and record the session to play it back later. Presence is live-only: it is never saved into the model and never recorded. Comments and recordings are described below.

When you'd use it

  • To find a colleague in a long model without asking "where are you?".
  • To discuss one specific node without editing it.
  • To keep a replayable history of a review or a teaching session.

What you see of each other

  1. Presence bar. A strip of round avatars (two-letter initials) at the top right appears as soon as someone else is in the room. Hover for the full name and what they are doing. A small mark shows the host, and a person who has been idle for 30 seconds, or whose tab is hidden, is greyed out.
  2. Click an avatar to jump to where that person's cursor is. Your own avatar is disabled.
  3. Cursors. Each peer's focused node is outlined in their colour with their name. A badge appears while they have a completion or intentions popup open, or after they run a command (shown as "Ran: ..." for a few seconds).
  4. Mouse pointers. Remote pointers are small dots in the peer's colour, including over diagrams (they follow the diagram's own coordinates, so they stay right if your zoom differs).
  5. Change flashes. When another peer changes a node, it flashes briefly in that peer's colour.
  6. Live typing. If two people have the same text cell focused, their keystrokes merge as they type.
  7. Dialog labels. If a peer has a dialog or the Settings page open, you see only a label such as "Settings", never the dialog itself.
  8. Show Participants… (Ctrl/Cmd+K, then C, P) lists everyone with their activity.

The off-screen peer indicator

When a peer's cursor is on a node that is scrolled out of view, a small badge sticks to the top or bottom edge of your editor: ↑ 2 means two peers are above you, ↓ 1 means one is below. Hover it to see their names. Click it to scroll the editor so the nearest of those peers comes back into view. It updates as you scroll or as they move. If several peers are off-screen on the same side they share one badge.

Comment threads

A comment thread is a short conversation attached to one node. It is for discussion only: comments never change the model.

  1. Click into the node you want to talk about (it must have the editor focus).
  2. Choose Tools > Collaboration > Add Comment (Ctrl/Cmd+K, then C, A; the command only works while the editor is the active tab).
  3. A small popover opens under the node with an Add a comment… field. Type and press Enter.
  4. Everyone in the session sees a badge such as ⫽2 (the number is the message count) at the node's top-right corner. Click a badge to open its thread. Messages appear live with the author's name in their colour.
  5. Press Escape, click elsewhere, or scroll to close the popover.

Opening Add Comment and closing without typing leaves nothing behind: a thread exists only once someone sends a message. A message can be up to 10,000 characters. There is no edit or delete for a sent message.

Comments are session-only

Comments are never saved into the model file and are gone when the session ends. Moving a commented node to a different parent detaches its thread from view. If you want to keep a discussion, record the session (below) or copy the text out.

Theme sync

A guest can choose to follow the host's dark/light mode with Toggle Sync Theme with Host (or the Sync theme with host setting). It is off by default, lasts only for the session, never changes your saved theme, and exchanges only "dark" or "light" (not an exact theme), so it works even if you and the host have different theme packs. It is a no-op for the host. Details are in Live collaboration.

Recording and playback

A recording captures the edits made to the shared model (and comment threads) during a session, so you can replay the model's history step by step. It is a plain .json file.

Record

  1. Join or host a session.
  2. Choose Tools > Collaboration > Start Recording Session. You get "Recording this collaboration session." The menu now shows Stop Recording Session… instead.
  3. Edit as usual. Other peers see a recording marker on your presence indicator.
  4. Choose Tools > Collaboration > Stop Recording Session…. A save dialog opens. If the save is cancelled or fails you are asked Save again or Discard recording, so nothing is lost silently.

Any participant can record, with nobody else's consent or setup. Leaving the session stops a running recording and offers to save it. A recording is capped at 50,000 steps or 32 MB; reaching either stops it automatically (and still offers to save what was captured). Typing within a cell is merged into steps of about 0.4 seconds, so playback is not one step per keystroke.

What a recording contains

A recording holds model edits and comments only. Cursors, pointers, idle state, dialogs and theme are not recorded. The edits include the content of the model at the time you started, so treat the file like the model itself when you share it.

Play back

  1. Choose Tools > Collaboration > Open Recording… (no session needed) and pick the .json file.
  2. An overlay titled Session Recording Playback opens with a scrubber, a ▶ Play / ⏸ Pause button and a counter like Step 12 / 80. Drag the scrubber to move through the changes; Play steps forward automatically and restarts from the beginning if you press it at the end.
  3. If the recording covers several files, a drop-down in the header picks which one to view.
  4. Close it with the × button, Escape, or a click on the dim backdrop.

Playback is a read-only reconstruction. It is never connected to your live model or session.

Every control

# Button / option What it does Shortcut Gotcha
1 Presence-bar avatar Jumps to that peer's cursor. none Your own avatar is disabled; the bar shows only with 2+ people.
2 Edge badge ↑ n / ↓ n Scrolls toward the nearest off-screen peer on that side. none One badge per side, not per peer.
3 Comment badge ⫽n Opens that node's thread. none Disappears if the node is moved to another parent.
4 Add Comment Opens a thread on the focused node. none Needs a focused node and an active editor.
5 Add a comment… field Sends a message on Enter. Enter Cannot be edited or deleted afterwards.
6 Start Recording Session Begins recording. none Hidden while recording.
7 Stop Recording Session… Ends recording and asks where to save. none Shown only while recording.
8 Open Recording… Opens a saved recording in the player. none Needs no session.
9 ▶ Play / ⏸ Pause Steps through changes automatically. none Restarts from the start if at the end.
10 Scrubber Jumps to any step. none Counter shows Step n / total.
11 Document drop-down Picks which recorded file to view. none Shown only if the recording has several.
12 × (Close) Closes the player. Escape A backdrop click also closes it.
13 Toggle Sync Theme with Host Follows the host's dark/light mode. none Guest only.
14 Show Participants… Lists everyone and their activity. Ctrl/⌘+K, C, P Host can hand over host duty here.