Ever wanted to test your knowledge without leaving your terminal? Meet QuizCraft, a beautiful Terminal User Interface (TUI) quiz application that brings interactive quizzes right to your command line!
Why QuizCraft?
As developers, we spend most of our time in the terminal. Whether you're waiting for a build to complete, taking a quick break, or just want to learn something new, QuizCraft lets you challenge yourself without switching contexts.
Features
- π¨ Beautiful Interface: Colorful and intuitive TUI powered by @clack/prompts
- π Multiple Categories: Linux, DevOps, Docker, Kubernetes, Programming, and more
- ποΈ Difficulty Levels: Choose between Easy, Medium, or Hard questions
- π‘ Instant Feedback: Get explanations for each answer
- π Score Tracking: See your performance with detailed results
- β‘ Lightning Fast: No browser needed, runs entirely in your terminal
Quick Start
Getting started is super simple:
1. Get Your API Key
First, grab a free API key from quizapi.io
And set it as env variable:
export QUIZ_API_KEY=your_api_key_here
2. Install QuizCraft
npm install -g quizcraft
and start playing:
quizcraft
Or run it without installing:
npx quizcraft
That's it! Follow the interactive prompts to:
- Select a category
- Choose difficulty level
- Pick number of questions
- Start answering!
Tech Stack
QuizCraft is built with modern Node.js tools:
- @clack/prompts: For beautiful CLI prompts
- chalk: Terminal string styling
- axios: HTTP requests to quizapi.io
- dotenv: Environment configuration
Contributing
QuizCraft is open source! Check it out on GitHub and feel free to:
- Report bugs
- Suggest features
- Submit pull requests
- Star the repo β
What's Next?
Some ideas for future enhancements:
- π Local leaderboard
- β±οΈ Timed quizzes
- π Progress tracking over time
- π¨ Custom themes
- π More quiz sources
- π Detailed analytics
Try It Now!
Don't just read about it, try it yourself:
npx quizcraft
Happy quizzing! π―

Top comments (0)