glio.js is a javascript library that detects if the mouse of a user leaves the viewport/document borders of your website and when this happens, trigger your callback.
Read More »
Trial.js is a simple library to monitor mouse position and predict user input.