This is your work, valued
Engineer.
react-activity-detector. Small package to help you check whether user is idle or active.