Description
phantomas is a web performance metrics collector and monitoring tool built on headless Chromium. It loads a page in a real browser and records performance metrics through a set of modules, where each metric is produced by its own module. The core acts as an event emitter, so modules can hook into the page load and collect things such as the number of events bound with jQuery, calls to window.write, or complex and duplicated CSS selectors, using analyze-css. Results come out as JSON, which makes it easy to feed into other tools. phantomas can be used as a command line tool or as a CommonJS module in Node.js projects, and it can emulate mobile and tablet devices by setting a user agent and viewport. Pages can also emit their own metrics through helper functions exposed to the page. It runs on Node.js 16 or newer and is available through npm, which installs a matching Chromium, or as a Docker image. The project is open source on GitHub, with a metrics document that lists every module.…
Highlights
- Headless Chromium performance metrics
- Modular metrics, each in its own module
- JSON output for other tools
- Command line tool and Node.js module
- Mobile and tablet device profiles
Ratings & Reviews
No ratings yet
Be the first to rate Phantomas.
People also visit
Phantomas FAQ
What is phantomas?
A headless Chromium based collector of web performance metrics, with a modular design.
What do I need?
Node.js 16 or newer. You can also use the Docker image.
How do I install it?
Through npm, which installs a supported Chromium, or by pulling the Docker image.
What is the output?
JSON, which you can process with other tools.
Can I use it in my own code?
Yes. It can be used as a CommonJS module in Node.js projects, as well as from the command line.
Is it free?
Yes. It is open source and the code is on GitHub.
What are the best Phantomas alternatives?
Popular alternatives to Phantomas include Request Metrics, Chrome Har Capturer and browserless.js.org. See all Phantomas alternatives








