MedAssist TypeScript SDK
The MedAssist TypeScript SDK provides a complete solution for integrating medical AI chat functionality into your web applications. It includes all chatbot functionalities with a configurable UI layer that can be customized to match your application’s design.Installation
The SDK will be available on NPM soon:npm
yarn
Features
Core Functionality
- Session Management: Automatic session creation, token refresh, and lifecycle management
- WebSocket Integration: Real-time communication with MedAssist AI
- Multi-format Support: Text, audio, and file message handling
- Error Handling: Built-in retry logic and error recovery
- TypeScript Support: Full type definitions for enhanced developer experience
UI Components
- Configurable Chat Interface: Customizable chat UI that matches your app’s design
- Message Components: Pre-built components for different message types
- Audio Recording: Built-in voice message recording capabilities
- File Upload: Drag-and-drop file upload with progress indicators
- Typing Indicators: Real-time typing and processing status
- Theme Support: Light/dark mode and custom color schemes
Quick Start
Configuration Options
Basic Configuration
Theme Customization
UI Configuration
Usage Examples
Basic Chat Implementation
Custom UI Integration
Event Handling
Programmatic Message Sending
Advanced Features
Session Management
Custom Components
Integration with Existing UI
Coming Soon
- React Components: Pre-built React components for easy integration
- Vue.js Support: Vue 3 compatible components
- Angular Integration: Angular service and component library
- Mobile SDKs: React Native and Flutter SDK versions
- Advanced Analytics: Usage metrics and conversation insights