{"id":29027000,"url":"https://github.com/krutarth-2004/chess","last_synced_at":"2026-04-11T19:03:54.690Z","repository":{"id":300754749,"uuid":"1007047334","full_name":"Krutarth-2004/Chess","owner":"Krutarth-2004","description":"A real-time multiplayer Chess game built with Node.js, Express, Socket.IO, and Chess.js. Supports drag-and-drop moves, move validation, board sync, player roles (White, Black, Spectator), pawn promotion, game restart, draw offers, and resign feature — all in a modern responsive UI.","archived":false,"fork":false,"pushed_at":"2025-06-23T12:04:40.000Z","size":2022,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-23T12:39:25.699Z","etag":null,"topics":["browser-game","chess","chessjs","draggable-ui","expressjs","javascript","multiplayer-game","nodejs","real-time","socket-io","tailwindcss","websocket"],"latest_commit_sha":null,"homepage":"https://chess-ca2j.onrender.com","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/Krutarth-2004.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}},"created_at":"2025-06-23T11:35:52.000Z","updated_at":"2025-06-23T12:04:44.000Z","dependencies_parsed_at":"2025-06-23T12:51:01.507Z","dependency_job_id":null,"html_url":"https://github.com/Krutarth-2004/Chess","commit_stats":null,"previous_names":["krutarth-2004/chess"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Krutarth-2004/Chess","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krutarth-2004%2FChess","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krutarth-2004%2FChess/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krutarth-2004%2FChess/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krutarth-2004%2FChess/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Krutarth-2004","download_url":"https://codeload.github.com/Krutarth-2004/Chess/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krutarth-2004%2FChess/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262010798,"owners_count":23244409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["browser-game","chess","chessjs","draggable-ui","expressjs","javascript","multiplayer-game","nodejs","real-time","socket-io","tailwindcss","websocket"],"created_at":"2025-06-26T06:01:49.799Z","updated_at":"2025-12-30T21:30:32.839Z","avatar_url":"https://github.com/Krutarth-2004.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ♟️ Real-Time Multiplayer Chess Game\n\nA real-time, multiplayer chess game built with **Node.js**, **Socket.IO**, and **Chess.js**. This project enables players to play chess online against each other in real time, featuring elegant UI, move validation, game controls like restart, draw, and resign, and dynamic board updates.\n\n---\n\n## 🚀 Features\n\n- ♞ Real-time gameplay with Socket.IO\n- ♜ Player roles: White, Black, and Spectator\n- ♟ Move validation via `chess.js`\n- 🔁 Restart game with confirmation\n- 🤝 Draw offer and acceptance flow\n- 🏳️ Resignation handling\n- ♛ Pawn promotion UI\n- 🌐 Spectator mode for extra connections\n- 🎨 Beautiful UI with Tailwind CSS\n- 📦 Fully modular, clean code structure\n\n---\n\n## 🧩 Tech Stack\n\n| Technology   | Purpose                        |\n|--------------|--------------------------------|\n| Node.js      | Backend runtime                |\n| Express.js   | Web framework                  |\n| Socket.IO    | Real-time WebSocket handling   |\n| Chess.js     | Chess rules and move validation |\n| EJS          | HTML Templating engine         |\n| Tailwind CSS | Responsive and modern styling  |\n\n---\n\n## 🛠️ Project Structure\n\n📦 chess-game/\n- public/\n- js/\n- chess.js # Frontend logic\n- views/\n- index.ejs # Main game page\n- index.js # Server entry point\n- package.json # Project metadata and dependencies\n\n---\n\n## 🔧 Installation \u0026 Run Locally\n\n1. **Clone the repository**\n```bash\ngit clone https://github.com/Krutarth-2004/Chess.git\ncd Chess\n```\n2. **Install dependencies**\n  ```bash\n  npm install\n  ```\n3. **Run the server**\n  ```bash\n  npm start\n  ```\n4. **Open in browser**\n  ```bash\n  http://localhost:5000\n  ```\n---\n\n## 🌐 How It Works\nThe server assigns players as White or Black.\n\nAdditional players become Spectators.\n\nMoves are validated server-side using chess.js.\n\nBoard state is synchronized in real time via Socket.IO.\n\nPlayers can offer a draw, resign, or restart the game.\n\n---\n\n## 🧠 Future Improvements\nUser authentication\n\nMatch history or leaderboard\n\nChat support\n\nInvite-based private rooms\n\nTimed games (countdown per move)\n\n---\n\n## 🙌 Credits\nInspired by real-time chess tutorials and customized for a clean, interactive multiplayer experience.\n\n---\n\n## 🙋‍♂️ Author\nKrutarth Kadia\n- 📧 krutarthkadia@gmail.com\n- 🐙 GitHub: @Krutarth-2004\n- 🔗 LinkedIn: https://www.linkedin.com/in/krutarth-kadia-76652931a/\n\n---\n\n## ⭐️ If you like this project...\nPlease consider giving it a ⭐ on GitHub! It helps others discover it 🙌\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrutarth-2004%2Fchess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrutarth-2004%2Fchess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrutarth-2004%2Fchess/lists"}