realtime-ux

Installation
SKILL.md

Real-Time UX Patterns

LiveView makes real-time technically easy. The hard part is UX: making interactions feel instant, handling concurrent users gracefully, and degrading smoothly when connections fail. This skill covers the UX patterns, not the plumbing.

The Five UX Challenges of Real-Time

  1. Latency — The round trip to the server is perceptible. How do you make it feel instant?
  2. Presence — Multiple users are here. How do you show who, where, and what they're doing?
  3. Conflicts — Two users changed the same thing. Who wins? How does the loser know?
  4. Disconnection — The WebSocket dropped. What does the user see? What happens to their work?
  5. Loading — Data isn't here yet. What does the user see while waiting?

Core Principles

  • Server owns the truth — optimistic UI is a perception layer, not a state layer. The server always has the last word.
  • Acknowledge every action — users need immediate feedback, even if the server hasn't responded yet.
  • Degrade gracefully — disconnects happen. The UI should communicate state honestly, not freeze silently.
Related skills
Installs
1
First Seen
12 days ago