localtracker

https://github.com/sindresorhus/active-win-cli https://www.npmjs.com/package/iohook

Usage no npm install needed!

<script type="module">
  import localtracker from 'https://cdn.skypack.dev/localtracker';
</script>

README

uses

https://github.com/sindresorhus/active-win-cli https://www.npmjs.com/package/iohook

rules for detecting inactivity

every 5s, we will see if you have been active at all in the last 5 seconds. Any single mouse or keyboard activity will be treated as active.

if you have been inactive for more then 5 mins, your task will be paused?

test if it works

curl http://localhost:4448//tracker/start?actionId=1234abc