TypologySienna Chen
InputLightweight

Multiplayer cursors

Other visitors’ cursors on the same page.

Seeing other visitors’ cursors moving on the same page, with their names. It turns a page into a shared room. Needs a server, so the site is no longer fully static.

Breaks when
needs a server; no longer static
Also called
presence, live cursors, Liveblocks, PartyKit

Prompts

Live cursors on a landing page
PartyKit room (or Liveblocks presence) broadcasting each visitor’s normalized pointer position at most 20 times per second, with a name and a color assigned on join. Render remote cursors as SVG pointers with a name tag, interpolated toward the latest sample with an exponential damp (9/s) so they glide instead of jumping; fade a cursor out after 5 s of silence. Cap the render to 24 cursors and show “+N more”. Never send positions while the tab is hidden.
Presence in a 3D scene
Each visitor is a small glowing marker in a shared Three.js scene, positioned where their pointer ray hits the floor plane; positions sync through a Yjs awareness field with a 50 ms throttle. Show a presence list with colors and idle state after 30 s. Explain awareness vs document state in Yjs.
Reactions that travel
Add ephemeral reactions: pressing a key spawns an emoji-free burst (particles in the visitor’s color) at their cursor for everyone in the room, sent as a single event, rendered locally with the cursor’s interpolated position. Rate-limit to 3 per second per client and explain why the server should enforce it too.

Related

Resources · 2

  • Liveblocksliveblockssite · demoJul 12, 2026
  • PartyKitpartykit_iosite · code · demoMay 20, 2026