phantomas
Headless Chromium-based web performance metrics collector
...In-depth metrics such as: number of events bound via jQuery, calls to window.writeor complex and duplicated CSS selectors (via analyze-css). JSON as an output format. Easy integration with other nodejs projects via CommonJS module (see API docs). Metrics can be emitted from the JavaScript code of the page phantomas is run against (thanks to helper functions available in window.__phantomas). Device profiles allow phantomas to emulate mobile or tablet (by setting a proper user agent and viewport). phantomas comes as a CommonJS module that you can use in your nodejs projects. ...