Explain Like I'm X - Complex topics, simplified for any age.
ELI-X is an AI-powered web application that transforms complex topics into easy-to-understand explanations tailored to any age level or persona. Built with SvelteKit and powered by Google's Gemini AI, it offers multiple modes for learning and comparing explanations.
- Explain Mode: Get simple explanations for any topic at any age level (1-100)
- Versus Mode: Compare explanations side-by-side for two different age levels
- Persona Mode: Hear explanations from unique characters:
- 🪨 Caveman - Primitive, all-caps simplicity
- 💀 Gen Z - Brainrot slang and chaotic energy
- 🎭 Shakespeare - Flowery Early Modern English
- 👽 Conspiracy Theorist - Everything connects to "Them"
- 👨🍳 Gordon Ramsay - Aggressive culinary insults
- 💻 Programmer - Software engineering analogies
- Battle Mode: Watch personas debate from opposing viewpoints:
- 🤔 Philosopher vs 🔬 Scientist
- 👴 Boomer vs 🛹 Zoomer
- ☀️ Optimist vs 🌧️ Pessimist
- Light Mode: Clean, standard Material Design 3 light theme
- Dark Mode: Deep, rich dark theme for low-light environments
- AMOLED Mode: Pure black theme for OLED screens and battery saving
- System Sync: Automatically matches your device's preference
- Material Design 3: Modern, polished interface with M3 color tokens and typography
- Glassmorphism: Frosted glass navbar with backdrop blur
- Micro-interactions:
- Button press feedback (scale animations)
- Material ripple effects on all buttons
- Layered shadows for depth
- Staggered entrance animations
- Haptic Feedback: Subtle vibrations on mobile devices (where supported)
- Toast Notifications: Success/error feedback for all actions
- Responsive Design: Seamless experience from mobile (320px) to 4K displays
- Accessibility: Respects
prefers-reduced-motionand includes proper ARIA labels
Frontend: SvelteKit 5 (Svelte 5 with Runes)
Styling: Tailwind CSS + Custom M3 Tokens
AI Model: Google Gemini 2.5 Flash
Runtime: Node.js
- Node.js 18+
- Google Gemini API Key (Get one here)
# Clone the repository
git clone https://github.com/thenewlegend/ELIx.git
cd ELIx
# Install dependencies
npm install
# Create .env file
echo "GEMINI_API_KEY=your_api_key_here" > .env
# Start development server
npm run devVisit http://localhost:5173 to see the app in action!
# Create optimized build
npm run build
# Preview production build
npm run previewTopic: "Quantum Computing"
Age: 8
→ Gets child-friendly explanation with simple analogies
Topic: "Climate Change"
Age A: 10 | Age B: 40
→ Compares explanations side-by-side
Topic: "Blockchain"
Persona: Shakespeare
→ "Hark! A ledger distributed amongst the realm..."
Topic: "Social Media"
Philosopher vs Scientist
→ Two contrasting perspectives in debate format
GEMINI_API_KEY=your_gemini_api_key_hereEdit /src/routes/api/explain/+server.js to add or modify persona prompts:
case 'your_persona':
prompt = `Explain "${topic}" as [character description]...`;
break;- ✅ Chrome/Edge 90+
- ✅ Firefox 88+
- ✅ Safari 14+
- ✅ Mobile browsers (iOS Safari, Chrome Mobile)
Progressive Features:
- Haptic feedback: Mobile only (Vibration API)
- Backdrop blur: Modern browsers only
- Animations: Disabled if
prefers-reduced-motion: reduce
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
This project was built with significant assistance from AI tools:
- Google Gemini AI: Powers the core explanation generation using Gemini 2.5 Flash model
- Gemini CLI (Antigravity): AI-powered coding assistant that helped architect, implement, and polish the entire application
- Designed the Material Design 3 implementation
- Implemented responsive layouts and micro-interactions
- Created the persona system and battle mode
- Added UI polish features (toasts, ripples, haptics)
- Provided architectural guidance and best practices
Built with AI, for humans. 🤖❤️👨💻
Made with ❤️ using SvelteKit, Gemini AI, and Antigravity