
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.
@debugg-ai/react
Advanced tools
Debugg AI's Node sdk for enabling your personal AI QA engineer
DebuggAI super‑charges engineers with an AI‑powered custom QA Engineer personalized to every user that finds and fixes bugs while your app runs locally, in production, or in CI. DebuggAI's Agent works with you in the background to generate, run, and improve your test suites to ensure that every PR is ready to go. Stop waiting for problems to pop up and build robust code without the big headache of managing your tests.
Most AI coding tools focus on writing code. DebuggAI focuses on the other 50 % of an engineer’s life: getting it to run.

| Feature | Description |
|---|---|
| Inline Issue Highlighter | See issues in realtime in your IDE, with full stack traces and suggested fixes |
| AI Test Generator | Go from 0 to 100% test coverage for files with a single command |
| Test iteration | Run & Improve tests in the background while you code |
| Future Proof | Continually add new tests as new errors arise to ensure your code is future proof |
Install the extension
Create a project
Add the Node Logging SDK (using npm or yarn)
npm install @debugg-ai/node
# Or yarn
yarn add @debugg-ai/node
Initialize (one line):
Get the initialization code from the DebuggAI app

This package is a wrapper around @debugg-ai/browser, with added functionality related to React. All methods available in
@debugg-ai/browser can be imported from @debugg-ai/react.
To use this SDK, call DebuggAI.init(options) before you mount your React component.
import React from 'react';
import { createRoot } from 'react-dom/client';
import * as DebuggAI from '@debugg-ai/react';
DebuggAI.init({
dsn: '__DSN__',
hostName: 'your-host-name'
// ...
});
// ...
const container = document.getElementById(“app”);
const root = createRoot(container);
root.render(<App />);
// also works with hydrateRoot
// const domNode = document.getElementById('root');
// const root = hydrateRoot(domNode, reactNode);
// root.render(<App />);
Starting with React 19, the createRoot and hydrateRoot methods expose error hooks that can be used to capture errors
automatically. Use the DebuggAI.reactErrorHandler function to capture errors in the error hooks you are interested in.
const container = document.getElementById(“app”);
const root = createRoot(container, {
// Callback called when an error is thrown and not caught by an Error Boundary.
onUncaughtError: DebuggAI.reactErrorHandler((error, errorInfo) => {
console.warn('Uncaught error', error, errorInfo.componentStack);
}),
// Callback called when React catches an error in an Error Boundary.
onCaughtError: DebuggAI.reactErrorHandler(),
// Callback called when React automatically recovers from errors.
onRecoverableError: DebuggAI.reactErrorHandler(),
});
root.render(<App />);
If you want more finely grained control over error handling, we recommend only adding the onUncaughtError and
onRecoverableError hooks and using an ErrorBoundary component instead of the onCaughtError hook.
@debugg-ai/react exports an ErrorBoundary component that will automatically send Javascript errors from inside a
component tree to DebuggAI, and set a fallback UI.
app.js
import React from 'react';
import * as DebuggAI from '@debugg-ai/react';
function FallbackComponent() {
return <div>An error has occurred</div>;
}
class App extends React.Component {
render() {
return (
<DebuggAI.ErrorBoundary fallback={FallbackComponent} showDialog>
<OtherComponents />
</DebuggAI.ErrorBoundary>
);
}
}
export default App;
Trigger an error – head back to the IDE and watch DebuggAI suggest a fix ⚡
Full walkthrough ▶ docs.debugg.ai/getting-started
You can log in to your DebuggAI account directly in the extension, and then it will automatically connect to your project.
If you have any questions or need personalized support:
We're looking to expand the DebuggAI team!
If you're interested in joining the team or contributing to the project, please reach out to us at hello@debugg.ai.
We at Debugg AI want to thank the open-source community for their contributions. Particularly DebuggAI for the work on this SDK. DebuggAI is building the first fully AI QA Engineer that can automatically generate test suites and highlight issues in your app, but DebuggAI continues to be a great option for Application Monitoring. Use both for the best results!
FAQs
Debugg.ai SDK for React.js
We found that @debugg-ai/react 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.