typescript · hud

h.u.d.

Mark and thread an element—pinpoint context

Try right here:

Press c then click or drag open a box to start a thread—or click this button to

With no agent wired this page runs hud locally: threads stay in this browser and the panel below plays the agent. Served by hud's server, the panel's link button goes local only, sending nothing to the server and taking nothing from it, and back shows the server's threads again.

Click a card or a pin to open that thread in hud's panel; selecting one there lights its card. Press c to pin a point or a box on an element and add a thread; a dashed coin marks it here until it is sent or cancelled. A thread whose element is gone is moved onto the nearest live one under its heading.

Thread

A thread is one state machine, kept on the server and sent to every page (with no server, in the browser). While it is open it also records whose move it is: the owner has spoken and it is waiting on the agent, the agent has answered and it is yours, or the agent has posted a status. The agent's turn runs read, then one or more statuses, then a reply or a resolve, which clears the status; the owner speaking meanwhile leaves it standing. Read receipts go both ways: a comment the owner posts enters the queue as queued until an agent reads it, and the agent's answer stays unread until the owner does; each then turns read. The owner speaking on a resolved thread reopens it, queued for the agent.