Skip to content

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.

License

Notifications You must be signed in to change notification settings

Heoster/codeex-v3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

27 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– CODEEX AI v2.0

Next-Generation Multi-Provider AI Assistant

License: MIT Next.js TypeScript Tailwind CSS PWA Ready

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


✨ Features

🧠 AI Capabilities

  • Multi-Provider Support - Groq + Google Gemini with smart routing
  • Intelligent Fallback - Seamless switching when models are unavailable
  • Web Search Integration - Real-time search with AI-powered synthesis
  • Document Analysis - PDF processing and intelligent Q&A (5MB limit)
  • Image Problem Solving - Mathematical equation recognition (5MB limit)
  • Voice Synthesis - Text-to-speech with multiple voice options

🎨 User Experience

  • Enhanced Mobile Selector - Search, swipe-to-dismiss, category filtering
  • Real-time Chat - Instant AI responses with typing indicators
  • Model Selection - Choose specific AI models or use auto-routing
  • Dark/Light Theme - Automatic theme switching
  • Progressive Web App - Install as native app on any device
  • Offline Support - Works without internet connection

πŸ”§ Technical Excellence

  • βœ… 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

�️ Tiech Stack

Category Technologies
Frontend Next.js TypeScript React
Styling Tailwind CSS Radix UI
AI/ML Groq Google AI
Backend Firebase Netlify
Testing Vitest Testing Library

πŸ€– AI Models & Providers

πŸ”₯ 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.


πŸ“± Progressive Web App (PWA)

πŸš€ Insll CODEEX AI as a Native App

<ta``e>

iOS
iPhone/iPad
Safari β†’ Share β†’ "Add to Home Screen" Android WindowsWindows
Edge β†’ ... β†’ "Install this site as an app"

</

Groq (Required - FREE)

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)

πŸš€ Quick Start

Prerequisites

  1. 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:3000

πŸ”‘ API Keys Setup

Google Geminired - FREE)
  1. Visit Google AI Studio
  2. Create a new API key
  3. Add to .env.local: GOOGLE_API_Key_here

Fiase (Required - FREE)

  1. Create project at [Firebase Console](https://console.firebase.google
  2. Enable Authentication and Firestore
  3. Add configuration to .env.local

EmailJS (Optional -

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

πŸ“š API Endpoints

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)

οΏ½ Seccurity & Privacy

  • πŸ›‘οΈ Server-Side API Keys - No sensitive data exposed to client
  • πŸ” Input Validation - Comprehensive sanitizationtion

**cRate Limitinsilt-in protection against abuse

  • πŸ” HTTPnly - Secure communication
  • πŸ›‘οΈ CSP Headers - Contentlightnity Policy for XSS protection
  • πŸ”’ Pr AI](httpst - DuckDuckGo search integration

πŸš€ Deployment

🌐 Netlify (Recostrong>
  1. Connect your GitHub repository to Netlify** - Production deployment
  • *Set build command: `npm run build:ne- Andr
  1. Set publish directory: `.next-setup.md)** - EmailJS configuration
  2. Add environment variables from .env.example
  3. Deploy automatically on every push

[Deploy estNetlify](https:/etlify.com/start/deploy?retory=https://github.com/heoster/codeex-ai

β–² Vercel
  1. Import project from GitHub
  2. Configure environment variables
  3. Deploy with zero configuration

Deploy with Vercel


🀝 Contributing

We welcome contributions! Here's how you can help:

πŸ› οΈ Development Setup
  1. Fork the repository
  2. Clone your fork: git clone https://github.com/yourusername/codeex-ai.git
  3. Create a feature branch: git checkout -b feature/amazing-feature
  4. Install dependencies: npm install
  5. Make your changes
  6. Add tests for new features
  7. Commit your changes: git commit -m 'Add amazing feature'
  8. Push to the branch: git push origin feature/amazing-feature
  9. Open a Pull Request

🎯 Areas for Contribution

  • πŸ› Bug fixes and improvements
  • ✨ New AI model integrations
  • πŸ“± Mobile experience enhancements
  • πŸ§ͺ Test coverage improvements
  • πŸ“– Documentation updates
  • 🌐 Internationalization (i18n)

πŸ“– Documentation

Category Links
πŸ“± PWA Quick Start β€’ Testing Guide β€’ Deployment
πŸš€ Deployment Netlify Guide β€’ Environment Setup
πŸ”§ Development Contributing β€’ API Reference β€’ Testing
πŸ“ž Support Issues β€’ Discussions

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ™ Acknowledgments

Special thanks to the amazing open-source community:

Groq Google AI Next.js Tailwind CSS


🌟 Star this repo if you find it helpful!

GitHub stars GitHub forks

Built with ❀️ for the AI community

πŸš€ Try CODEEX AI Now β€’ πŸ“– Read the Docs β€’ πŸ’¬ Join Discussion

About

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.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published