EduMagic uses advanced AI to create personalized lessons, interactive quizzes, and a unique Moroccan Darija companion to help you learn faster and smarter.
# ✨ EduMagic: The Future of AI Learning
EduMagic is a premium, state-of-the-art AI learning platform designed to transform any topic into a personalized, visual, and interactive journey. Built with a focus on speed, aesthetics, and hyper-resilient AI integrations, EduMagic provides a unique educational experience tailored to the user's level and language—including specialized support for **Moroccan Darija**.
---
## 🚀 Core Features
### 🧠 Guided Learning Journeys
Transform complex topics into 5-8 logical, easy-to-digest steps. Each lesson is generated using a combination of **GPT-4o** and **Gemini 3 Flash Preview**, ensuring high-quality pedagogical structure and accuracy.
### 🇲🇦 Darija Buddy
A unique integration for Moroccan learners. The "Darija Buddy" provides casual, "street-smart" explanations using Moroccan Darija (Arabizi or Arabic script), making learning feel like a conversation with a local friend.
### 🎨 Neural Visualization Pipeline
Every lesson step is paired with cinematic 3D digital art.
- **Midjourney ImagineCraft Integration**: High-fidelity AI art generated via RapidAPI.
- **Hyper-Resilient Polling**: Advanced backend logic that probes multiple MJ endpoints and polls for results to ensure images always manifest.
- **Lexica Art Fallback**: Secure and high-quality fallback system using Lexica Art search and Unsplash.
### 🎙️ Multi-Lingual Text-to-Speech (TTS)
Full audio support for lessons in English, French, and **Arabic**. Optimized for natural phonetics and browser-resilient voice loading.
### 🧪 Neural Lab & API Diagnostics
A dedicated suite for power users and developers to:
- Test and rotate API keys in real-time.
- Debug AI image generation pipelines (`/test-image`).
- Monitor key health and status (`/test-keys`).
---
## 🛠️ Technology Stack
- **Framework**: Next.js 15+ (App Router)
- **Language**: TypeScript (Strict mode)
- **Styling**: Tailwind CSS with Premium Glassmorphism & Framer Motion
- **Authentication**: Clerk (Standard OAuth & …