Skip to content

Presence Detection

Understand whether this browser session is currently available, away, idle, hidden, or offline — page-local signals, not multi-user presence.

Signals

SignalEvent / snapshot
Visiblepage:visible, snapshot.visibility
Hiddenpage:hidden
Activesession:active
Idlesession:idle
Offlineconnection:offline (advisory)

For the higher-level page-local facade, see createPresenceApi.

Playground

State Explorer

An ecosystem of independent, headless TypeScript libraries engineered for modern web development. Every package includes interactive playgrounds and documentation that evolves alongside the code.