Skip to main content

Deployment Guide

Development Setup

For local development, ensure you're serving files over HTTPS or using localhost:

Local HTTPS Server

# Using Python (recommended for testing)
python -m http.server 8000 --bind localhost

# Using Node.js http-server
npx http-server -a localhost -p 8000

# Using VS Code Live Server extension
# Right-click HTML file → "Open with Live Server"

Production Deployment

HTTPS Requirements

  • Microphone Access: Requires HTTPS in production
  • AudioWorklet: Requires secure context for optimal audio processing
  • WebRTC: Enhanced features available over HTTPS

CDN Integration

The SDK scripts are served from our CDN for optimal performance:

<script src="https://sdk.hidoba.com/audio.js"></script>
<script src="https://sdk.hidoba.com/sdk.js"></script>
<script src="https://sdk.hidoba.com/history.js"></script>

Security Considerations

API Key Security
  • Never expose API keys in client-side code for production
  • Consider using a backend proxy for API calls
  • Implement rate limiting and usage monitoring
  • Rotate keys regularly

Performance Optimization

  • Preload Scripts: Use rel="preload" for faster loading
  • Connection Pooling: SDK handles WebSocket connection optimization
  • Error Handling: Implement comprehensive error handling for production
  • Monitoring: Set up logging for call success rates and error patterns