A sophisticated AI assistant mobile app inspired by Iron Man's JARVIS, featuring voice recognition, text-to-speech, and integration with advanced AI providers like OpenAI and DeepSeek.
- Speech Recognition: Tap to speak and interact naturally
- Text-to-Speech: Jarvis responds with a sophisticated British accent
- Auto-send: Voice input automatically processes your requests
- Voice Visualizer: Real-time audio feedback during conversations
- Multiple AI Providers: Choose between Local, OpenAI GPT, or DeepSeek
- OpenAI GPT Support: GPT-3.5 Turbo, GPT-4, and GPT-4 Turbo models
- DeepSeek Integration: DeepSeek Chat and DeepSeek Coder models
- Google AI Integration: Gemini Pro and Gemini Pro Vision models
- OpenRouter Integration: Access to 100+ AI models through one API
- Fallback System: Automatically falls back to local responses if API fails
- Secure API Key Storage: Encrypted local storage for API credentials
- Progressive Web App (PWA): Install as a native app on any device
- Offline Support: Works without internet connection (local mode)
- iOS Safe Area: Full iPhone/iPad compatibility including notch support
- Haptic Feedback: Tactile responses for better user experience
- Touch Optimized: Large buttons and gesture-friendly interface
- Jarvis-themed Design: Cyan blue accent colors with dark theme
- Smooth Animations: Fluid transitions and micro-interactions
- Responsive Layout: Adapts to all screen sizes
- Status Indicators: Real-time connection and activity status
- Advanced Settings Panel: Comprehensive AI and audio configuration
- Conversational AI: Natural language processing and responses
- Context Awareness: Intelligent replies based on conversation history
- Time & Date: Current time and date information
- System Status: Battery, connection, and device information
- Professional Personality: British assistant personality like the original JARVIS
- Node.js 18+
- npm or yarn
- API keys for OpenAI, DeepSeek, or Google AI (optional)
-
Clone the repository
git clone https://github.com/inertz/jarvis.git cd jarvis -
Install dependencies
npm install
-
Start development server
npm run dev
-
Open in browser
http://localhost:5173
Free testing API from OpenAI Platform
- Get your API key from OpenAI Platform
- Open the app settings (gear icon)
- Select "OpenAI GPT" as your AI provider
- Enter your API key and choose your preferred model
- Enable the OpenAI integration
- Get your API key from DeepSeek Platform
- Open the app settings (gear icon)
- Select "DeepSeek" as your AI provider
- Enter your API key and choose your preferred model
- Enable the DeepSeek integration
- Get your API key from Google AI Studio
- Open the app settings (gear icon)
- Select "Google AI (Gemini)" as your AI provider
- Enter your API key and choose your preferred model
- Enable the Google AI integration
- Get your API key from OpenRouter
- Open the app settings (gear icon)
- Select "OpenRouter" as your AI provider
- Enter your API key and choose from 100+ available models
- Enable the OpenRouter integration
- Open the app in Safari
- Tap the Share button (square with arrow)
- Select "Add to Home Screen"
- Tap "Add"
- Open the app in Chrome
- Tap the menu (3 dots)
- Select "Add to Home Screen"
- Tap "Add"
- React 18 - Modern React with hooks and TypeScript
- TypeScript - Type-safe development
- Tailwind CSS - Utility-first styling
- Vite - Fast build tool and dev server
- PWA - Progressive Web App capabilities
- Web Speech API - Voice recognition and synthesis
- Lucide React - Beautiful icons
- OpenAI API - GPT models integration
- DeepSeek API - Advanced AI model integration
- Google AI API - Gemini models integration
- OpenRouter API - Access to 100+ AI models
jarvis-ai-assistant/
โโโ public/
โ โโโ manifest.json # PWA manifest
โ โโโ pwa-*.png # App icons
โ โโโ apple-touch-icon.png # iOS icon
โโโ src/
โ โโโ components/
โ โ โโโ SettingsPanel.tsx # AI configuration panel
โ โโโ services/
โ โ โโโ aiService.ts # AI provider integration
โ โโโ hooks/
โ โ โโโ useLocalStorage.ts # Local storage hook
โ โโโ types.ts # TypeScript definitions
โ โโโ App.tsx # Main application component
โ โโโ main.tsx # Application entry point
โ โโโ index.css # Global styles
โโโ index.html # HTML template
โโโ vite.config.ts # Vite configuration
โโโ tailwind.config.js # Tailwind CSS config
โโโ package.json # Dependencies and scripts
- "Hello Jarvis" - Greeting and introduction
- "What time is it?" - Current time
- "What's the date?" - Current date
- "How are you?" - System status
- "Help" - Available commands
- "Thank you" - Polite acknowledgment
- Local Mode: Basic responses, works offline
- OpenAI GPT: Advanced conversational AI with context awareness
- DeepSeek: Specialized AI with coding and reasoning capabilities
- Google AI: Powerful Gemini models with advanced reasoning
- OpenRouter: Access to Claude, GPT, Llama, Gemini, and 100+ other models
Type any message in the input field and press Enter or tap the send button.
- Provider Selection: Choose between Local, OpenAI, DeepSeek, Google AI, or OpenRouter
- API Key Management: Secure storage with show/hide functionality
- Model Selection: Choose specific models for each provider
- Fallback System: Automatic fallback to local responses
- Voice Output Toggle: Enable/disable text-to-speech
- British Accent: Automatic selection of British voice
- Adjustable Parameters: Speech rate, pitch, and volume
- Offline Functionality: Works without internet
- Custom App Icons: Professional Jarvis-themed icons
- Standalone Display: Full-screen app experience
- Auto-update: Automatic updates when available
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview
# Run linting
npm run lintThe app stores API keys securely in local storage. No environment variables are required for basic functionality.
- Chrome/Edge: Full support including all AI features
- Safari: Full support (iOS 14.3+) with PWA capabilities
- Firefox: Limited speech synthesis, full AI support
- Mobile browsers: Optimized experience with touch controls
- GPT-3.5 Turbo: ~$0.002 per 1K tokens
- GPT-4: ~$0.03 per 1K tokens
- GPT-4 Turbo: ~$0.01 per 1K tokens
- DeepSeek Chat: ~$0.0014 per 1K tokens
- DeepSeek Coder: ~$0.0014 per 1K tokens
- Gemini Pro: Free tier available, then ~$0.0005 per 1K tokens
- Gemini Pro Vision: ~$0.0025 per 1K tokens
- Claude 3.5 Sonnet: ~$0.003 per 1K tokens
- GPT-4o: ~$0.005 per 1K tokens
- Llama 3.1 405B: ~$0.003 per 1K tokens
- Many free models available
Note: Prices may vary. Check provider websites for current pricing.
- Build the project:
npm run build - Deploy the
distfolder to Netlify - Enable HTTPS for PWA features
- Connect your GitHub repository
- Vercel will auto-detect Vite configuration
- Deploy with zero configuration
- Install gh-pages:
npm install --save-dev gh-pages - Add deploy script to package.json
- Run:
npm run deploy
- API Key Encryption: Keys are stored securely in local storage
- No Server Storage: All data remains on your device
- HTTPS Required: PWA features require secure connection
- Privacy First: No data is sent to third parties except chosen AI providers
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'Add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Open a Pull Request
- Follow TypeScript best practices
- Use Tailwind CSS for styling
- Maintain mobile-first responsive design
- Test on multiple devices and browsers
- Keep accessibility in mind
- Test with different AI providers
This project is licensed under the MIT License - see the LICENSE file for details.
- Inspired by Marvel's Iron Man JARVIS AI
- Icons by Lucide
- Built with modern web technologies
- OpenAI for GPT model access
- DeepSeek for advanced AI capabilities
- Special thanks to the React and Vite communities
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: webmaster@inertz.org
- OpenAI GPT integration
- DeepSeek AI integration
- Google AI (Gemini) integration
- Advanced settings panel
- Secure API key storage
- OpenRouter integration (100+ models)
- Conversation history export
- Custom voice training
- Weather and news integration
- Calendar and reminder features
- Multi-language support
- Smart home integration
- Advanced conversation memory
- Claude AI integration
Made with โค๏ธ by inertz
โญ Star this repo โข ๐ Report Bug โข โจ Request Feature
