The Idle Detection API notifies developers when a user is idle, indicating such things as lack of interaction with the keyboard, mouse, screen, activation of a screensaver, locking of the screen, or moving to a different screen. A developer-defined threshold triggers the notification.
Applications which facilitate collaboration require more global signals about whether the user is idle than are provided by existing mechanisms that only consider a user's interaction with the application's own tab.
Docs: https://web.dev/idle-detection/ https://github.com/WICG/idle-detection/blob/main/mdn-drafts/QUICK-REFERENCE.md
Samples: https://web.dev/idle-detection/ https://github.com/WICG/idle-detection/blob/master/HOWTO.md https://reillyeon.github.io/scraps/idle.html
Explainers: https://github.com/WICG/idle-detection/blob/master/README.md