The "Duolingo for Everything," powered by Google Gemini AI.
Type any topic. Get a gamified, bite-sized lesson instantly.
Stop reading boring Wikipedia pages and massive ChatGPT walls of text. Duolearn instantly converts any concept in the universe into a fun, bite-sized learning experience. No prompts required—just type what you want to learn, and let the AI do the rest.
- Zero-Friction Onboarding: Type a topic, get a lesson. No complex prompt engineering required.
- The "Duolingo" Aesthetic: Tactile buttons, progress bars, and an encouraging Owl mascot (🦉) make learning fun.
- Micro-Learning UI: Concepts are broken down into short explanations, interactive flashcards, and multiple-choice quizzes.
- Gamified Progression: Earn 💎 Gems and build a 🔥 Streak as you learn. Your stats are saved locally!
- Social Bragging: Mastered a hard topic? One-click share your quiz score to Twitter to challenge your friends.
- Secure Backend: API requests are proxied through a Vercel Serverless Function to keep your Google Gemini API key strictly confidential.
git clone https://github.com/DevSidd2006/duolearn.git
cd duolearn
npm installBecause this app uses a Vercel Serverless Backend to protect your API keys, you need to configure your key correctly.
- Get a free Gemini API key from Google AI Studio.
- Create a
.envfile in the root directory:
# .env
GEMINI_API_KEY=your_actual_api_key_here(Notice: Do NOT use the REACT_APP_ prefix, as the key is consumed by the Vercel backend, not the React frontend).
We are continuously building to make Duolearn the ultimate micro-learning platform. Here is what's coming next:
- User Authentication: Sign up with Google/GitHub to save progress across devices.
- Database Integration: Move from
localStorageto a real database (Supabase/Firebase) to permanently store Gems, Streaks, and completed topics. - Lesson History: A dashboard showing all the concepts you've mastered.
- Spaced Repetition (SRS): An algorithm that automatically brings back flashcards from old topics right before you're about to forget them.
- Skill Trees: AI-generated curriculum paths (e.g., Search "Computer Science", and the AI builds a 20-step Duolingo-style skill tree).
- Audio Pronunciations: Text-to-speech integration for language or medical terminology.
- Leaderboards: Compete with friends to see who can earn the most XP/Gems in a week.
- Community Decks: Browse and play the most popular topics generated by other users.
- Multiplayer Quiz Battles: Challenge a friend to a real-time quiz on a specific topic.
- Frontend: React 18, CSS3, Framer Motion (Animations), Lucide (Icons)
- Backend: Vercel Serverless Functions (
api/generate.js) - AI: Google Generative AI (Gemini 2.5 Flash)
Want to help build the future of education? Contributions are welcome!
- Fork the Project
- 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
Built with ❤️ and 🦉