puppeteer

A high-level API to control headless Chrome over the DevTools Protocol

lighthouse

Automated auditing, performance metrics, and best practices for the web.