
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Headless Chromium-based web performance metrics collector and monitoring tool
Headless Chromium-based modular web performance metrics collector. And why phantomas? Well, because :)
npm install phantomas
This will install a recent version of Chromium supported by
puppeteermodule.
You can use phantomas Docker image:
docker pull macbre/phantomas:latest
Or you can fetch from GitHub's Containers registry
docker pull ghcr.io/macbre/phantomas:latest
You can get support for phantomas via xs:code.
const phantomas = require('phantomas'),
promise = phantomas('http://example.com/');
promise.
then(results => {
console.log('Metrics', results.getMetrics());
console.log('Offenders', results.getAllOffenders());
}).
catch(res => {
console.error(res);
});
// events handling
promise.on('recv', response => {
console.log('Response: %s %s [%s]', response.method, response.url, response.contentType);
});
// including the custom one emitted by phantomas modules
promise.on('domQuery', (type, query) => {
console.log('DOM query by %s - "%s"', type, query);
});
Or run ./examples/index.js.
To get the latest development version of phantomas (and install all required dependencies):
git clone git@github.com:macbre/phantomas.git
npm install
First you need to start a local nginx container that will serve static assets used by integration tests suite. Then simply run npm t:
./test/server-start.sh
npm t
All pull requests that are filed for this repository will have tests run via GitHub Actions.
Please refer to /Troubleshooting.md
window.writeor complex and duplicated CSS selectors (via analyze-css)All the contributors
phantomas comes as a CommonJS module (see API docs) that you can use in your nodejs projects.
You can also use it as a command line tool. Run phantomas -h for more details.
Please refer to
/docs/metrics.mdfile for a full, up-to-date list of all available modules and metrics that phantomas emits.
Introductions to phantomas and use cases:
Use grunt to automate daily dev tasks, including your's application web performance, via these great tools:
FAQs
Headless Chromium-based web performance metrics collector and monitoring tool
The npm package phantomas receives a total of 153 weekly downloads. As such, phantomas popularity was classified as not popular.
We found that phantomas demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.