Skip to content

GameHub is a free, open-source collection of classic browser games designed to bring nostalgia, fun, and learning together in one place. Built with modern web technologies and a focus on simplicity, GameHub offers smooth gameplay, responsive design, and clean code that makes it easy for developers to explore, learn, and contribute.

License

Notifications You must be signed in to change notification settings

kaifansariw/GameHub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ GameHub

HTML5 CSS3 JavaScript Tailwind CSS License: MIT GitHub Repo stars GitHub forks GitHub issues


๐Ÿงญ Table of Contents


๐Ÿ’ก About GameHub

GameHub is a free, open-source collection of classic browser games designed to bring nostalgia, fun, and learning together in one place. Built with modern web technologies and a focus on simplicity, GameHub offers smooth gameplay, responsive design, and clean code that makes it easy for developers to explore, learn, and contribute.

๐ŸŽฏ Our Mission

  • Nostalgia Meets Modern Web: Recreate beloved classic games using cutting-edge web technologies
  • Learn by Playing: Provide a codebase that's educational, well-documented, and beginner-friendly
  • Open Source First: Foster a welcoming community where developers can contribute and grow
  • Performance & Accessibility: Deliver fast, lightweight experiences that work seamlessly across all devices

๐ŸŒŸ Why GameHub?

In an era of complex game engines and heavy frameworks, GameHub proves that amazing gaming experiences can be built with vanilla JavaScript, thoughtful design, and attention to performance. Whether you're a student learning web development, a developer looking to contribute to open source, or simply someone who loves classic games, GameHub welcomes you.

๐Ÿš€ Future Vision

  • Expand the game library with community contributions
  • Add multiplayer capabilities for real-time competition
  • Implement achievement systems and global leaderboards
  • Create educational tutorials for each game's implementation
  • Build a thriving community of game developers and enthusiasts

๐Ÿš€ Demo


โœจ Features

  • 5 Classic Games: Tic Tac Toe, Snake, Simon Says, Memory Flip, Rock Paper Scissors
  • Fully Responsive: Optimized for desktop, tablet, and mobile
  • Modern Glassmorphism UI: Built using Tailwind CSS and DaisyUI
  • Fast & Lightweight: Pure vanilla JS, zero frameworks
  • Score Persistence: Progress saved in LocalStorage
  • Real-time Search: Instantly filter and find games
  • Smooth Animations: AOS.js and Animate.css integration

๐ŸŽฎ Games

Game Description Features
Rock Paper Scissors Classic hand game Win/loss stats, animations
2048 Game Tile sliding number puzzle Score tracking, smooth animations
Sudoku Puzzle Number placement puzzle Multiple difficulties, hints
Minesweeper Mine avoidance logic game Flagging cells, timer
Breakout Brick-breaking arcade game Paddle control, increasing difficulty
Balloon Popper Pop balloons before time runs out Timer-based gameplay, score system
Boom Runner Dodge bombs and survive Reflex-based controls, speed increase
Brick Breaker Break bricks using a paddle Power-ups, levels
Bubble Shooter Match and pop colored bubbles Aim mechanics, combo scoring
Candy Match Mania Match candies to score points Chain reactions, colorful UI
Code Unlock Crack codes using logic Pattern recognition, increasing difficulty
Color Grid Color-matching puzzle Visual logic, timed challenges
Dodge Square Avoid obstacles and survive Fast-paced movement, reflex testing
Firefly Flow Guide fireflies through patterns Precision control, calming visuals
Flappy Block Navigate obstacles by flapping Score tracking, increasing difficulty
Freeze Frame Stop motion at the right moment Timing-based gameplay
Fruit Slice Slice fruits with precision Swipe controls, combo points
Glow Chain Trigger glowing chain reactions Visual effects, chain mechanics
Glow Drops Tap glowing drops before disappearing Speed-based taps, score counter
Glow Tap Tap glowing circles in time Timing accuracy, reflex training
Gravity Flip Ball Flip gravity to move the ball Physics-based gameplay, level progression
Hangman Hero Guess the hidden words Vocabulary building, hint system
Jump Counter Jump to increase your score Score tracking, timing precision
Jump Tag Tag targets by jumping Movement accuracy, reflex-based
Logic Path Guide the ball using logic Puzzle-solving, progressive levels
Memory Blink Remember blinking patterns Memory training, increasing speed
Pattern Memory Remember and repeat patterns Sequence memory, difficulty scaling
Pipe Twister Rotate pipes to connect flows Logic rotation puzzles
Reaction Speed Test Test your reaction speed Tap-time measurement, instant feedback
Sand Draw Draw freely in virtual sand Relaxing UI, creative drawing
Sliding Puzzle Slide blocks to complete image Logical movement, image puzzles
Speed Tap Grid Tap targets quickly on a grid Reflex speed, time challenge
Symbol Swap Swap symbols to match rows Pattern logic, strategic thinking
Tap Counter Tap repeatedly to score Speed tracking, real-time counter
Tetris Classic falling block puzzle Line clearing, increasing speed
Tower of Hanoi Solve disk puzzle in minimum moves Algorithmic thinking, step counter
Typing Sprint Type words quickly to score Speed tracking, accuracy scoring
Vortex Jump Jump through twisting vortex paths Precision jumps, reaction timing
Word Chain Form chains of related words Vocabulary skills, word logic
Word Scramble Unscramble letters to form words Time-based challenges, hints
Typing Speed Test Measure typing speed and accuracy WPM tracking, clean UI

๐Ÿ› ๏ธ Tech Stack

  • Frontend: HTML5, CSS3, JavaScript
  • Styling: Tailwind CSS, DaisyUI
  • Animations: AOS.js, Animate.css
  • Icons: Font Awesome
  • Storage: LocalStorage API

๐Ÿ’ก Prerequisites

  • Modern web browser: Chrome, Firefox, Safari, or Edge

๐Ÿš€ Quick Start

Follow these steps to run the GameHub Django project locally:

1๏ธโƒฃ Clone the Repository

git clone https://github.com/kaifansariw/GameHub.git
cd GameHub

2๏ธโƒฃ Install Django

pip install django

3๏ธโƒฃ Navigate to the Project Folder

Move into the folder where manage.py is located:

cd gamehub_project

4๏ธโƒฃ Run the Development Server

python manage.py runserver

5๏ธโƒฃ Open in Browser

Visit:

http://127.0.0.1:8000/

Your GameHub website will now be live locally ๐ŸŽฎ๐Ÿš€


๐Ÿ“ Project Structure

GameHub/
โ”œโ”€โ”€ gamehub_project/
โ”‚   โ”œโ”€โ”€ accounts/                   # Authentication app
โ”‚   โ”‚   โ”œโ”€โ”€ migrations/
โ”‚   โ”‚   โ”œโ”€โ”€ admin.py
โ”‚   โ”‚   โ”œโ”€โ”€ apps.py
โ”‚   โ”‚   โ”œโ”€โ”€ models.py
โ”‚   โ”‚   โ”œโ”€โ”€ urls.py
โ”‚   โ”‚   โ””โ”€โ”€ views.py
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ gamehub_project/            # Core Django settings
โ”‚   โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”‚   โ”œโ”€โ”€ asgi.py
โ”‚   โ”‚   โ”œโ”€โ”€ settings.py
โ”‚   โ”‚   โ”œโ”€โ”€ urls.py
โ”‚   โ”‚   โ””โ”€โ”€ wsgi.py
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ static/                     # Static files (CSS, JS, Images)
โ”‚   โ”‚   โ”œโ”€โ”€ assets/                 # Game thumbnails & icons
โ”‚   โ”‚   โ”œโ”€โ”€ games/                  # HTML files for games
โ”‚   โ”‚   โ”œโ”€โ”€ scripts/                # All game logic JS files
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ snake.js
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ simon.js
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ rps.js
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ sudoku.js
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ memory.js
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ breakout.js
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ minesweeper.js
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ tic-tac-toe.js
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ audio-system.js
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ audio-ui.js
โ”‚   โ”‚   โ”œโ”€โ”€ main.js
โ”‚   โ”‚   โ”œโ”€โ”€ script1.js
โ”‚   โ”‚   โ””โ”€โ”€ style.css
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ staticfiles/                # Auto-generated (ignored in git)
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ templates/                  # Django HTML templates
โ”‚   โ”‚   โ”œโ”€โ”€ index.html              # Homepage
โ”‚   โ”‚   โ””โ”€โ”€ login.html              # Authentication page
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ db.sqlite3                  # Local database
โ”‚   โ””โ”€โ”€ manage.py
โ”‚
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ CODE_OF_CONDUCT.md
โ””โ”€โ”€ README.md

๐Ÿ“ธ Screenshots

Homepage image
Games Collection image

๐Ÿ”ง Adding New Games

  1. Add a new HTML file in static/games/
  2. Write the game's JS in static/scripts/
  3. Register your game in the games array in static/main.js:
{
    id: 'your-game',
    title: 'Your Game',
    description: 'Game description',
    image: 'path/to/image',
    file: 'games/your-game.html',
    category: 'arcade'
}

๐ŸŒŸ Contributing

We welcome contributions from developers of all skill levels! Whether you're fixing bugs, adding new games, improving documentation, or suggesting features, your input is valuable.

How to Contribute

  • Fork the repository
  • Create a new branch: git checkout -b feature/YourFeature
  • Commit & push:
    git commit -m "Add: YourFeature"
    git push origin feature/YourFeature
  • Open a Pull Request

Check out our Contributing Guidelines for more details!


๐Ÿ“ฑ Browser Support

Browser Supported
Chrome โœ…
Firefox โœ…
Safari โœ…
Edge โœ…
Mobile โœ…

๐Ÿ“„ License

Licensed under the MIT License.


๐Ÿ™ Acknowledgments


โœจ Contributors

Thanks to all the wonderful contributors ๐Ÿ’–

See full list of contributor contributions: Contribution Graph


โญ Star this repo โ€ข ๐Ÿ› Report Bug โ€ข โœจ Request Feature

Made with โค๏ธ by Kaif Ansari

About

GameHub is a free, open-source collection of classic browser games designed to bring nostalgia, fun, and learning together in one place. Built with modern web technologies and a focus on simplicity, GameHub offers smooth gameplay, responsive design, and clean code that makes it easy for developers to explore, learn, and contribute.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 17