@cazon/sdk
v1.1.6
Published
AI-powered error debugging SDK - Get instant, intelligent solutions to JavaScript errors with pattern matching and LLM analysis
Downloads
48
Maintainers
Readme
@cazon/sdk
AI-powered error debugging SDK for JavaScript/Node.js
Cazon is an intelligent error debugging service that provides instant, AI-powered solutions to your JavaScript errors.
Installation
npm install @cazon/sdkQuick Start
Basic Usage
const CazonClient = require('@cazon/sdk');
const cazon = new CazonClient({
apiKey: process.env.CAZON_API_KEY
});
// Get debugging suggestions for an error
const result = await cazon.suggest({
errorMessage: 'TypeError: Cannot read property "name" of undefined',
stack: error.stack,
metadata: { userId: '123', route: '/api/users' }
});
console.log(result.suggestion);Auto-Capture (Recommended)
Automatically capture all uncaught exceptions and unhandled rejections:
const { CazonAutoCapture } = require('@cazon/sdk/auto');
// Initialize once at application startup
new CazonAutoCapture({
apiKey: process.env.CAZON_API_KEY,
environment: process.env.NODE_ENV,
captureUncaughtExceptions: true,
captureUnhandledRejections: true
});
// Your application code...
// All errors will be automatically captured and analyzedCLI Usage
# Set your API key
export CAZON_API_KEY=your-key-here
# Debug an error directly from the command line
cazon "TypeError: Cannot read property 'name' of undefined"Documentation
For complete documentation, API reference, advanced usage, and examples, visit:
Getting an API Key
- Sign up at cazon.dev
- Create a new organization
- Generate an API key in your dashboard
- Add it to your environment:
CAZON_API_KEY=your-key
Support
- 📚 Documentation: cazon.dev/docs
- 📧 Email: [email protected]
License
MIT © Chris Quinn
