Next-Generation Multi-Provider AI Assistant
A powerful, intelligent AI assistant with smart routing, web search capabilities, and mobile-first design. Built with Next.js 14, featuring automatic fallback between AI providers and comprehensive document analysis.
🚀 Live Demo • 📖 Documentation • 🐛 Report Bug • 💡 Request Feature
|
|
- ✅ 100% Free Models - No paid API dependencies
- ⚡ Smart Caching - Optimized performance and reduced API calls
- 🛡️ Error Handling - Graceful degradation and user-friendly messages
- 🔒 Type Safety - Full TypeScript implementation
- 🧪 Testing Suite - Comprehensive test coverage
- 📱 Mobile-First - Responsive design for all screen sizes
🔥 Google Gemini Models (Free Tier: 15 req/min, 1500 req/day)
- Gemini 2.5 Flash - Latest model with enhanced performance and multimodal capabilities (1M context)
⚡ Groq Models (Free Tier: 14,400 req/day)
- Llama 3.1 70B - Most capable for complex reasoning (131K context)
- Llama 3.1 8B Instant - Lightning-fast conversations (131K context)
- Mixtral 8x7B - Excellent for code generation (32K context)
- Llama 3.2 90B - Advanced mathematical reasoning (131K context)
💡 All models are completely free with generous rate limits and automatic fallback between providers.
<ta``e>
iPhone/iPad
Safari → Share → "Add to Home Screen"
Edge → ... → "Install this site as an app"
</
1.# ✨ PWA Benefits
- ⚡ 10-15x faster repeat loads with intelligent caching
- 📶 Works offline with cached content and conversations
- 🎯 Fun experience without browser UI
- 🔄 Auto-updates in background
- ⌨️ App shortcuts for quick actionsudio.google.com/app/apikey)
- Node.js 18+
- npm or yarn
- Free accounts: Groq, Google AI Studio, [Firebase](https://console.firebase.google.
- Sign up at EmailJS 2.# Installation
# 1. Clone the repository
ne https://github.com/heoster/codeex-ai.git
cd codeex-ai
# 2. Install dependencies
npm install
# 3. Set up environment variables
cp .enple .env.local
# 4. Configure your API itHubee setuelow)
# 5. Run develoaticallyrver
npm run dev
# http://localhost:3000Google Geminired - FREE)
- Visit Google AI Studio
- Create a new API key
- Add to
.env.local: GOOGLE_API_Key_here
- Create project at [Firebase Console](https://console.firebase.google
- Enable Authentication and Firestore
- Add configuration to
.env.local
1. Sign up at [EmailJS](https://www.emailjs.
## reaPte email service and templates
3. Add credentto `.env.local`
</details>
- `/api/ai/search` - Web search with AI-powered answers
---
## 📊 Permance & Metrics
<div align="cer">
| Metric | Score | Status |
|--------|-------|--------|
| **HTTPS ouse Performance** | ication Excellent |
| **Content Stentful Paint** | <1.5s | ✅ Fast |
| **Time to Interactive** | <2.5s | ✅ sive |
| **Bundle Size** | <200KB | ✅ Optimized |
| **Mobile Performance** | 3G Ready |Mobile-First |
</div>
---
- Provider rate limits and quotas
- Smart felopment & Testing for reliability
##`bash
# Development
npm run dev # Start developmeserver
npm run build # Build el organuction
npm run start # Starty roduction server
# Testing
npm test # Run all tests
npm run test:watch # Watch moderation
- **Real-est:coverage # Coverage report
# Quality Asitatice
npm run lint # ESL
#pm run typecheck # TypeScript checking
--Multi-Format Support: Various document types
Endpoint
Description
Features
/api/ai/so
Problem solving
Math, coding, generations
/api/ai/search
Web search
AI-powered answers wces
/api/ai/summarizeymarization
Multiple styles and lengths
/api/ai/image-solver
Image analysis
Mathematical equation reco(5MB)
/api/ai/pdf-analyzer
Document analysis
PDFand Q&A (5MB)
- 🛡️ Server-Side API Keys - No sensitive data exposed to client
- 🔍 Input Validation - Comprehensive sanitizationtion
- 🔐 HTTPnly - Secure communication
- 🛡️ CSP Headers - Contentlightnity Policy for XSS protection
- 🔒 Pr AI](httpst - DuckDuckGo search integration
🌐 Netlify (Recostrong>
- Connect your GitHub repository to Netlify** - Production deployment
- *Set build command: `npm run build:ne- Andr
- Set publish directory: `.next-setup.md)** - EmailJS configuration
- Add environment variables from
.env.example
- Deploy automatically on every push
[
](https:/etlify.com/start/deploy?retory=https://github.com/heoster/codeex-ai
- PWA Deployment - Deploy PWA
- *etails>
We welcome contributions! Here's how you can help:
🛠️ Development Setup
- Fork the repository
- Clone your fork:
git clone https://github.com/yourusername/codeex-ai.git
- Create a feature branch:
git checkout -b feature/amazing-feature
- Install dependencies:
npm install
- Make your changes
- Add tests for new features
- Commit your changes:
git commit -m 'Add amazing feature'
- Push to the branch:
git push origin feature/amazing-feature
- Open a Pull Request
- 🐛 Bug fixes and improvements
- ✨ New AI model integrations
- 📱 Mobile experience enhancements
- 🧪 Test coverage improvements
- 📖 Documentation updates
- 🌐 Internationalization (i18n)
Category
Links
📱 PWA
Quick Start • Testing Guide • Deployment
🚀 Deployment
Netlify Guide • Environment Setup
🔧 Development
Contributing • API Reference • Testing
📞 Support
Issues • Discussions
This project is licensed under the MIT License - see the LICENSE file for details.
Built with ❤️ for the AI community
.env.local: GOOGLE_API_Key_here.env.local1. Sign up at [EmailJS](https://www.emailjs.
## reaPte email service and templates
3. Add credentto `.env.local`
</details>
- `/api/ai/search` - Web search with AI-powered answers
---
## 📊 Permance & Metrics
<div align="cer">
| Metric | Score | Status |
|--------|-------|--------|
| **HTTPS ouse Performance** | ication Excellent |
| **Content Stentful Paint** | <1.5s | ✅ Fast |
| **Time to Interactive** | <2.5s | ✅ sive |
| **Bundle Size** | <200KB | ✅ Optimized |
| **Mobile Performance** | 3G Ready |Mobile-First |
</div>
---
- Provider rate limits and quotas
- Smart felopment & Testing for reliability
##`bash
# Development
npm run dev # Start developmeserver
npm run build # Build el organuction
npm run start # Starty roduction server
# Testing
npm test # Run all tests
npm run test:watch # Watch moderation
- **Real-est:coverage # Coverage report
# Quality Asitatice
npm run lint # ESL
#pm run typecheck # TypeScript checking
| Endpoint | Description | Features |
|---|---|---|
/api/ai/so |
Problem solving | Math, coding, generations |
/api/ai/search |
Web search | AI-powered answers wces |
/api/ai/summarizeymarization |
Multiple styles and lengths | |
/api/ai/image-solver |
Image analysis | Mathematical equation reco(5MB) |
/api/ai/pdf-analyzer |
Document analysis | PDFand Q&A (5MB) |
🌐 Netlify (Recostrong>
- Connect your GitHub repository to Netlify** - Production deployment
- *Set build command: `npm run build:ne- Andr
- Set publish directory: `.next-setup.md)** - EmailJS configuration
- Add environment variables from
.env.example - Deploy automatically on every push
[](https:/etlify.com/start/deploy?retory=https://github.com/heoster/codeex-ai
- PWA Deployment - Deploy PWA
- *etails>
We welcome contributions! Here's how you can help:
🛠️ Development Setup
- Fork the repository
- Clone your fork:
git clone https://github.com/yourusername/codeex-ai.git - Create a feature branch:
git checkout -b feature/amazing-feature - Install dependencies:
npm install - Make your changes
- Add tests for new features
- Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
- 🐛 Bug fixes and improvements
- ✨ New AI model integrations
- 📱 Mobile experience enhancements
- 🧪 Test coverage improvements
- 📖 Documentation updates
- 🌐 Internationalization (i18n)
| Category | Links |
|---|---|
| 📱 PWA | Quick Start • Testing Guide • Deployment |
| 🚀 Deployment | Netlify Guide • Environment Setup |
| 🔧 Development | Contributing • API Reference • Testing |
| 📞 Support | Issues • Discussions |
This project is licensed under the MIT License - see the LICENSE file for details.
Built with ❤️ for the AI community