
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.
@bug-catch/browser
Advanced tools
Catch all errors and log custom events within any website.
$ npm install --save @bug-catch/browser
Call Bugcatch as-soon-as-possible within your code.
bugcatch.init({
base_url: "https://example.com/bugcatch",
// Optional
release: "2.1.0",
// ^^^^^^^ --> process.env.npm_package_version
disableWebVitals: false,
disableError: false,
disableUnhandledRejection: false,
requiredVitals: [
// Uses perfume.js for web vitals,
// You have the option to add/remove unwanted vitals here
"cls",
"dataConsumption",
"fcp",
"fid",
"fp",
"lcp",
"navigationTiming",
"navigatorInformation",
"networkInformation",
"storageEstimate",
"tbt",
],
});
Thats it! - sit back and try not to panic as the bugs roll in!
You can also use the recordEvent method to record custom events with data attached (the data can be of any type and size).
bugcatch.recordEvent(name, data, userOptions);
// Crude Example,
// An event for users which stay on the page longer than 10 minutes
setTimeout(function () {
bugcatch.recordEvent(
"loyal_viewer",
{ timeOnPage: "10 minutes" },
{
base_url: "https://example.com/bugcatch",
release: "2.1.0",
}
);
}, 1000 * 60 * 10);
bugcatch makes use of the error and unhandledrejection event listeners to catch each error and its details.
// Listen to uncaught errors
window.addEventListener("error", onError);
// Listen to uncaught promises rejections
window.addEventListener("unhandledrejection", onError);
bugcatch also gathers web vitals data. This can play a very important role when squashing bugs, but also general optimisation.
FAQs
Catch all errors and log custom events within any website.
We found that @bug-catch/browser demonstrated a not healthy version release cadence and project activity because the last version was released 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.