@bugoracle/browser
v0.1.2
Published
BugOracle Browser SDK with Replay
Downloads
13
Maintainers
Readme
@bugoracle/browser
The official Browser SDK for BugOracle, an AI-powered observability and error analysis platform.
Features
- Session Replay: Built-in support for recording and replaying user sessions.
- Error Tracking: Automatically captures JavaScript errors and unhandled rejections.
- Network Capture: Trace fetch and XHR requests.
- Console Monitoring: Captures console logs, warnings, and errors.
- User Identification: Associate errors with specific users.
Installation
npm install @bugoracle/browserQuick Start
Initialize BugOracle in your application's entry point:
import { BugOracle } from "@bugoracle/browser";
BugOracle.init({
projectId: "your-project-id",
apiKey: "your-api-key", // Use public key for browser
debug: true,
});Configuration
| Option | Type | Description |
| ------------- | -------- | ----------------------------------------------------------------- |
| projectId | string | Required. Your project ID. |
| apiKey | string | Your BugOracle API key. |
| endpoint | string | Custom ingest endpoint (default: https://ingest.bugoracle.com). |
| release | string | Your application version/release. |
| environment | string | e.g., 'production', 'staging'. |
| replay | object | Replay settings (enabled by default). |
| network | object | Network capture settings (enabled by default). |
User Identification
BugOracle.setUser({
id: "user-123",
email: "[email protected]",
name: "Jane Doe",
});License
MIT
