@errio/sdk
v0.2.0
Published
Errio SDK — capture runtime errors and send to Errio for AI-powered remediation
Downloads
26
Maintainers
Readme
@errio/sdk
Capture runtime errors in Node.js apps and send them to Errio for AI-powered remediation.
Installation
npm install @errio/sdkQuick Start
import { initErrio } from '@errio/sdk';
initErrio({
apiKey: 'ak_your_api_key',
});
// That's it — uncaught exceptions and unhandled rejections are now captured automatically.Manual Capture
import { initErrio, captureError } from '@errio/sdk';
initErrio({ apiKey: 'ak_your_api_key' });
try {
riskyOperation();
} catch (error) {
captureError(error as Error);
}Configuration
| Option | Type | Default | Description |
|--------|------|---------|-------------|
| apiKey | string | required | API key with ak_ prefix |
| environment | string | — | Environment name (e.g., production) |
| serviceName | string | — | Service identifier (e.g., payment-service) |
Features
- Automatic capture of
uncaughtExceptionandunhandledRejection - Git auto-detection of repo, commit SHA, and branch
- Fingerprint deduplication — duplicate errors within 5 minutes are skipped
- Zero dependencies — uses only Node.js built-ins
- Safe by design — never crashes your app, never blocks the event loop
Requirements
Node.js >= 18.0.0
