Frontend Application Setup
Instrument your frontend application to capture browser logs, user interactions, and errors in the SF Veritas Console.
Supported Frameworks
| Framework | Package | Status |
|---|---|---|
| React | @sailfish-ai/recorder | Full Support |
| JavaScript (vanilla) | @sailfish-ai/recorder | Full Support |
| Vue, Angular, etc. | @sailfish-ai/recorder | Should work |
Choose Your Framework
- JavaScript/TypeScript - React and other JS frameworks
What Gets Captured
Frontend instrumentation captures:
- Browser Console: All
console.log,console.info,console.warn,console.errorcalls - JavaScript Errors: Uncaught exceptions and promise rejections
- User Interactions: Clicks, form submissions, navigation
- Network Requests: Fetch and XHR requests with timing
Requirements
Before instrumenting your frontend:
- Ensure the SF Veritas IDE Extension or Desktop App is installed and running
- Verify the local server is started
- Your frontend should be able to reach
localhost:6776(or your configured port)
Architecture
Quick Verification
After setup, verify instrumentation is working:
- Start your frontend development server
- Open your app in the browser
- Open the SF Veritas Console (in the Desktop App or VS Code)
- Trigger some console.log statements or errors
- You should see the logs appear in the Console panel