{"id":33264491,"url":"https://github.com/dnafication/quizcraft","last_synced_at":"2026-06-15T17:32:10.006Z","repository":{"id":321745485,"uuid":"1087048152","full_name":"dnafication/quizcraft","owner":"dnafication","description":"A TUI quiz app","archived":false,"fork":false,"pushed_at":"2025-11-04T06:49:14.000Z","size":168,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-17T05:19:25.606Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dnafication.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-31T09:49:36.000Z","updated_at":"2025-11-04T06:49:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dnafication/quizcraft","commit_stats":null,"previous_names":["dnafication/quizcraft"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dnafication/quizcraft","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnafication%2Fquizcraft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnafication%2Fquizcraft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnafication%2Fquizcraft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnafication%2Fquizcraft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnafication","download_url":"https://codeload.github.com/dnafication/quizcraft/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnafication%2Fquizcraft/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34374146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-11-17T05:04:41.655Z","updated_at":"2026-06-15T17:32:09.989Z","avatar_url":"https://github.com/dnafication.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QuizCraft 🎯\n\nA beautiful Terminal User Interface (TUI) quiz application that fetches questions from [quizapi.io](https://quizapi.io) and provides an interactive quiz experience.\n\n![screenshot of the application](image.png)\n\n## Features\n\n- 🎨 Beautiful, colorful terminal interface\n- 📚 Multiple categories to choose from\n- 🎚️ Three difficulty levels (Easy, Medium, Hard)\n- 📊 Real-time score tracking\n- 💡 Answer explanations\n- ⚡ Fast and responsive\n\n## Installation\n\n### Global Installation (Recommended)\n\nInstall QuizCraft globally via npm:\n\n```bash\nnpm install -g quizcraft\n```\n\n### Using npx (No Installation)\n\nRun QuizCraft without installing. You need to have the API key set up as described in the [Setup](#setup) section below.\n\n```bash\nnpx quizcraft\n```\n\n## Setup\n\nBefore using QuizCraft, you need an API key from [quizapi.io](https://quizapi.io) (free tier available):\n\n1. Get your free API key from [https://quizapi.io/clientarea/settings/token](https://quizapi.io/clientarea/settings/token)\n2. Create a `.env` file in your home directory or current directory:\n   ```bash\n   echo \"QUIZ_API_KEY=your_actual_api_key_here\" \u003e .env\n   ```\n3. Or set it as an environment variable:\n   ```bash\n   export QUIZ_API_KEY=your_actual_api_key_here\n   ```\n\n## Usage\n\nOnce you have your API key set up, run:\n\n```bash\nquizcraft\n```\n\nThen follow the interactive prompts!\n\n## How It Works\n\n1. **Start the application** - QuizCraft welcomes you and fetches available categories\n2. **Select a category** - Choose from various topics like Linux, DevOps, Programming, or select \"All Categories\"\n3. **Choose difficulty** - Pick Easy 🟢, Medium 🟡, Hard 🔴, or Mixed\n4. **Select question count** - Choose between 5, 10, 15, or 20 questions\n5. **Answer questions** - Use arrow keys to select your answer (A, B, C, D)\n6. **Get instant feedback** - See if you're correct and view explanations\n7. **View results** - See your final score with performance feedback\n8. **Play again** - Start a new quiz or exit\n\n## Development\n\n### Running from Source\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/dnafication/quizcraft.git\ncd quizcraft\n```\n\n2. Install dependencies:\n```bash\nnpm install\n```\n\n3. Set up your API key:\n```bash\ncp .env.example .env\n# Edit .env and add your API key\n```\n\n4. Run the application:\n```bash\nnpm start\n```\n\nOr use development mode with auto-reload:\n```bash\nnpm run dev\n```\n\n## Project Structure\n\n```\nquiz-cli/\n├── src/\n│   ├── index.js              # Entry point\n│   ├── api/\n│   │   └── quizApi.js        # API client for quizapi.io\n│   ├── ui/\n│   │   ├── menu.js           # Main menu interface\n│   │   ├── quiz.js           # Quiz display logic\n│   │   └── results.js        # Results display\n│   ├── utils/\n│   │   ├── config.js         # Configuration management\n│   │   └── helpers.js        # Helper functions\n│   └── constants.js          # Constants and enums\n├── .env.example              # Example environment variables\n├── .gitignore\n├── package.json\n├── PLAN.md                   # Detailed project plan\n└── README.md\n```\n\n## Technologies Used\n\n- **[@clack/prompts](https://github.com/natemoo-re/clack)** - Modern CLI prompts\n- **[chalk](https://github.com/chalk/chalk)** - Terminal string styling\n- **[axios](https://axios-http.com/)** - HTTP client\n- **[ora](https://github.com/sindresorhus/ora)** - Terminal spinner\n- **[dotenv](https://github.com/motdotla/dotenv)** - Environment variable management\n\n## API Information\n\nThis application uses the [quizapi.io](https://quizapi.io) API to fetch quiz questions. The API provides:\n\n- Multiple categories (Linux, DevOps, Programming, Docker, Kubernetes, and more)\n- Three difficulty levels (Easy, Medium, Hard)\n- Detailed explanations for answers\n- Multiple choice questions\n- Free tier available\n\n## Environment Variables\n\n- `QUIZ_API_KEY` - Your quizapi.io API key (required)\n- `DEBUG` - Set to `true` to enable debug logging (optional, default: `false`)\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'feat: add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## License\n\nISC\n\n## Acknowledgments\n\n- Quiz questions powered by [quizapi.io](https://quizapi.io)\n- UI inspired by modern CLI tools\n\n---\n\nMade with ❤️ and Node.js and Copilot CLI!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnafication%2Fquizcraft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnafication%2Fquizcraft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnafication%2Fquizcraft/lists"}