{"id":21353621,"url":"https://github.com/pawantech12/trivia-game-using-reactjs","last_synced_at":"2026-04-30T19:32:23.626Z","repository":{"id":259876273,"uuid":"879700567","full_name":"pawantech12/trivia-game-using-reactjs","owner":"pawantech12","description":"Quiz Game: An interactive ReactJS quiz application that fetches dynamic questions from the Open Trivia Database API. Featuring a countdown timer, score tracking, and toast notifications, this game offers an engaging way for users to test their knowledge. Scores are saved locally, with duplicate entries prevented, ensuring a competitive leaderboard ","archived":false,"fork":false,"pushed_at":"2024-10-28T12:47:11.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T08:14:45.834Z","etag":null,"topics":["html","opentdb-api","reactjs","taiwlindcss","trivia-game"],"latest_commit_sha":null,"homepage":"https://trivia-game-using-reactjs.vercel.app","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/pawantech12.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}},"created_at":"2024-10-28T11:55:51.000Z","updated_at":"2024-10-28T12:49:27.000Z","dependencies_parsed_at":"2024-10-28T15:31:49.908Z","dependency_job_id":"6ab3d713-a055-4fd6-87ad-2c652a9a9c49","html_url":"https://github.com/pawantech12/trivia-game-using-reactjs","commit_stats":null,"previous_names":["pawantech12/trivia-game-using-reactjs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pawantech12/trivia-game-using-reactjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawantech12%2Ftrivia-game-using-reactjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawantech12%2Ftrivia-game-using-reactjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawantech12%2Ftrivia-game-using-reactjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawantech12%2Ftrivia-game-using-reactjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pawantech12","download_url":"https://codeload.github.com/pawantech12/trivia-game-using-reactjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawantech12%2Ftrivia-game-using-reactjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32475192,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["html","opentdb-api","reactjs","taiwlindcss","trivia-game"],"created_at":"2024-11-22T03:18:45.483Z","updated_at":"2026-04-30T19:32:23.613Z","avatar_url":"https://github.com/pawantech12.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quiz Game - ReactJS\n\nWelcome to the **Quiz Game** repository! This project is a dynamic, interactive quiz game built with ReactJS, providing users with challenging questions fetched from the Open Trivia Database API. With features like score tracking, a timer, and toast notifications, this game offers an engaging experience for players while allowing them to test their knowledge.\n\n\n## 🚀 Demo\n\nCheck out the live demo here: [Demo Link](https://trivia-game-using-reactjs.vercel.app/)\n\n## 📌 Features\n\n- **Dynamic Questions**: Fetches questions from the [Open Trivia Database API](https://opentdb.com/), based on the user-selected difficulty level.\n- **Timer Functionality**: Each question is time-bound, adding a challenging layer to the game.\n- **Score Saving \u0026 Leaderboard**: Stores the player’s high scores in local storage, sorted in descending order, and prevents saving duplicate scores.\n- **User Feedback with Toasts**: Provides toast notifications for actions like saving scores and handling errors.\n- **Responsive Design**: Built using Tailwind CSS to ensure a seamless experience across all device sizes.\n- **Back Navigation**: Easily return to the previous screen with a single click.\n\n\n## 🛠️ Tech Stack\n\n- **Frontend**: ReactJS, React Router, Tailwind CSS\n- **Utilities**: Axios (for API calls), React-Toastify (for toast notifications)\n- **API**: Open Trivia Database API\n\n\n## 📂 Project Structure\n\n```\n/src\n├── components\n│   ├── Game.js          # Core game component\n│   ├── Question.js      # Renders questions and answer choices\n│   ├── Timer.js         # Timer functionality for each question\n│   ├── Leaderboard.js   # Displays high scores\n│\n├── main.jsx             # Router and Toast configuration\n└── App.js               # Main app file\n```\n\n\n## 🚀 Getting Started\n\n### Prerequisites\n\n- Node.js and npm installed on your system.\n\n### Installation\n\n1. **Clone the repository**:\n\n   ```bash\n   git clone https://github.com/pawantech12/trivia-game-using-reactjs.git\n   cd trivia-game-using-reactjs\n   ```\n\n2. **Install dependencies**:\n\n   ```bash\n   npm install\n   ```\n\n3. **Run the app**:\n\n   ```bash\n   npm run dev\n   ```\n\n4. **Access the game** at `http://localhost:5173` in your browser.\n\n\n## 📖 Usage\n\n1. **Select Difficulty**: Users can choose the difficulty level for the quiz.\n2. **Answer Questions**: Each question has multiple choices. Select the correct answer within the time limit.\n3. **Save Score**: At the end of the game, save your score to see if you’ve made it to the leaderboard. Duplicate scores are restricted from being saved.\n4. **Leaderboard**: View the top 5 high scores, saved locally.\n\n## 📈 Future Enhancements\n\n- **Improved Question Types**: Include different question formats (e.g., true/false).\n- **Customizable Timer**: Allow users to set custom time limits for each question.\n- **Backend Integration**: Move the leaderboard to a backend database for shared score tracking across sessions.\n- **Enhanced UI**: Animations and design enhancements for a more engaging experience.\n\n\n## 🤝 Contributing\n\nContributions are welcome! Please follow these steps:\n\n1. Fork the repository.\n2. Create a new branch (`feature/YourFeature`).\n3. Commit your changes.\n4. Push to the branch.\n5. Create a pull request.\n\n## 📄 License\n\nThis project is licensed under the MIT License.\n\n## 👋 Contact\n\nFeel free to reach out if you have any questions or feedback!\n\n- **LinkedIn**: [Linkedin](https://www.linkedin.com/in/pawan-kumavat-11b105297/)\n- **Email**: pawankumavat042@gmail.com\n\nEnjoy playing the quiz game, and happy coding!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawantech12%2Ftrivia-game-using-reactjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpawantech12%2Ftrivia-game-using-reactjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawantech12%2Ftrivia-game-using-reactjs/lists"}