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>
β² Vercel
- Import project from GitHub
- Configure environment variables
- Deploy with zero configuration
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
π Try CODEEX AI Now β’ π Read the Docs β’ π¬ Join Discussion
.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>
β² Vercel
- Import project from GitHub
- Configure environment variables
- Deploy with zero configuration
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
π Try CODEEX AI Now β’ π Read the Docs β’ π¬ Join Discussion