GamendWeb.StatsLive (gamend_web v1.0.1216)

Copy Markdown View Source

Public server activity page — the browser view of the /<resource>/stats endpoints.

Anonymous like the endpoints it mirrors, and gated by the same :public_stats flag, so turning stats off closes the page and the API together rather than leaving a second way in.

Rendered once on mount from Gamend.Analytics.snapshot/0 — the same cached composition the admin index and /api/v1/stats read, so every surface shows one set of numbers. Live-updating would mostly re-render identical values; a page reload is the refresh.