Create engaging quizzes in seconds using the power of AI!
AI Quiz Craft leverages Google's Gemini API to automatically generate customized quiz questions on any topic, delivering a seamless and intelligent quiz-building experience.
-
🔮 AI-Powered Quiz Generation
Instantly generate quiz questions using Google's Gemini API. -
🧩 Supports Multiple Formats
Choose between Multiple Choice and True/False questions. -
💻 Modern, Responsive UI
Sleek and mobile-friendly interface built for a great user experience. -
🛡️ TypeScript-First Codebase
Designed for reliability, scalability, and maintainability.
-
Enter a Prompt
Provide a topic or subject for your quiz. -
Generate Questions
The Gemini API processes the prompt and returns unique, relevant quiz questions and answers. -
Take the Quiz
Answer the questions and view your score instantly
- Vite + React
- TypeScript
- HTML & CSS
- Gemini API for quiz content generation
git clone https://github.com/codewithsimon/ai-quiz-craft.git
cd ai-quiz-craft
npm install
npm run devTo use the AI quiz generation feature, you’ll need a Gemini API key:
- Get your Gemini API key
- Add your API key to your environment variables or configuration file (see
.env.exampleif available):
GEMINI_API_KEY=your_gemini_api_key_here- Type a topic or question prompt.
- Click "Generate Quiz".
- Gemini will return a set of quiz questions.
- Answer the questions and get your score instantly!
Contributions are welcome!
Please open an issue or pull request to discuss any changes.
This project is licensed under the MIT License.
Open an issue or reach out to codewithsimon.
Let me know if you want to add demo links, screenshots, or more instructions!