{"id":27309856,"url":"https://github.com/sachinkg-13/chess.com","last_synced_at":"2026-04-06T01:33:13.516Z","repository":{"id":254487954,"uuid":"846627227","full_name":"sachinkg-13/chess.com","owner":"sachinkg-13","description":"A real-time, multiplayer chess application built with React and Socket.IO that brings the classic game of chess to your browser with a modern, responsive interface.","archived":false,"fork":false,"pushed_at":"2025-12-04T13:40:22.000Z","size":3641,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T12:28:02.251Z","etag":null,"topics":["chess-js","express-js","node-js","reactjs","socket-io"],"latest_commit_sha":null,"homepage":"https://chess.sachinkumargupta.tech","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/sachinkg-13.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":"2024-08-23T15:55:46.000Z","updated_at":"2025-12-04T13:40:36.000Z","dependencies_parsed_at":"2025-03-19T20:39:20.895Z","dependency_job_id":"85f0d208-45a1-4d7e-9b71-95bdd5a40841","html_url":"https://github.com/sachinkg-13/chess.com","commit_stats":null,"previous_names":["sachinkumar-1309/chess.com","sachinkg-13/chess.com"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sachinkg-13/chess.com","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachinkg-13%2Fchess.com","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachinkg-13%2Fchess.com/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachinkg-13%2Fchess.com/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachinkg-13%2Fchess.com/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sachinkg-13","download_url":"https://codeload.github.com/sachinkg-13/chess.com/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachinkg-13%2Fchess.com/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31456658,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["chess-js","express-js","node-js","reactjs","socket-io"],"created_at":"2025-04-12T05:39:07.668Z","updated_at":"2026-04-06T01:33:13.510Z","avatar_url":"https://github.com/sachinkg-13.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ♟️ Chess Game\n\nA real-time, multiplayer chess application built with React and Socket.IO that brings the classic game of chess to your browser with a modern, responsive interface.\n\n![Chess Game](https://img.shields.io/badge/Game-Chess-brightgreen)\n![React](https://img.shields.io/badge/React-18.2.0-blue)\n![Socket.IO](https://img.shields.io/badge/Socket.IO-4.7.5-black)\n![License](https://img.shields.io/badge/license-MIT-green)\n\n## ✨ Features\n\n- **Real-time Multiplayer** - Play against opponents in real-time using WebSocket connections\n- **Chess Engine** - Powered by chess.js for accurate move validation and game logic\n- **Interactive Board** - Smooth drag-and-drop piece movement with visual feedback\n- **Timer System** - Built-in game clocks with countdown timers for each player\n- **Move History** - Complete move notation tracking with game replay capability\n- **Audio Feedback** - Sound effects for moves, captures, and game events\n- **Player Profiles** - Display player information and captured pieces\n- **Responsive Design** - Optimized for desktop and mobile devices using Tailwind CSS\n- **Game Controls** - Resign, abort, and rematch functionality\n- **Waiting Room** - Lobby system for matchmaking and game initialization\n\n## 🚀 Quick Start\n\n### Prerequisites\n\n- Node.js (v14 or higher)\n- npm or yarn package manager\n\n### Installation\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/sachinkg-13/chess.com.git\n   cd chess.com\n   ```\n\n2. **Install dependencies**\n   ```bash\n   npm install\n   ```\n\n3. **Start the development server**\n   ```bash\n   npm run dev\n   ```\n\n4. **Start the game server** (in a separate terminal)\n   ```bash\n   npm run server\n   ```\n\n5. **Open your browser**\n   \n   Navigate to `http://localhost:5173` to start playing!\n\n## 🎮 How to Play\n\n1. **Join a Game** - Click \"Start New Game\" from the home page\n2. **Wait for Opponent** - The first player gets white pieces, second player gets black\n3. **Make Your Move** - Drag and drop pieces or click to select and move\n4. **Watch the Clock** - Each player has 10 minutes on their clock\n5. **Win the Game** - Checkmate your opponent or force them to run out of time!\n\n## 🛠️ Tech Stack\n\n### Frontend\n- **React** - UI component library\n- **Vite** - Build tool and development server\n- **Tailwind CSS** - Utility-first CSS framework\n- **react-chessboard** - Interactive chess board component\n- **Lucide React** - Icon library\n\n### Backend\n- **Express.js** - Web server framework\n- **Socket.IO** - Real-time bidirectional communication\n- **chess.js** - Chess game logic and move validation\n\n## 📁 Project Structure\n\n```\nchess.com/\n├── public/              # Static assets\n│   ├── audios/         # Game sound effects\n│   └── js/             # Additional scripts\n├── src/\n│   ├── components/     # React components\n│   │   ├── Game/      # Game-specific components\n│   │   │   ├── Board.jsx\n│   │   │   ├── MoveHistory.jsx\n│   │   │   └── PlayerProfile.jsx\n│   │   ├── UI/        # Reusable UI components\n│   │   │   └── Modal.jsx\n│   │   ├── GameSidebar.jsx\n│   │   ├── HomePage.jsx\n│   │   └── WaitingRoom.jsx\n│   ├── hooks/         # Custom React hooks\n│   │   ├── useChessAudio.js\n│   │   └── useChessGame.js\n│   ├── App.jsx        # Main application component\n│   └── main.jsx       # Application entry point\n├── server.js          # Socket.IO game server\n└── package.json       # Project dependencies\n```\n\n## 🎯 Available Scripts\n\n| Command | Description |\n|---------|-------------|\n| `npm run dev` | Start Vite development server |\n| `npm run build` | Build for production |\n| `npm run preview` | Preview production build |\n| `npm run server` | Start game server |\n| `npm run lint` | Run ESLint |\n\n## 🔧 Configuration\n\n### Server Port\nThe game server runs on port 3000 by default. You can modify this in `server.js`:\n```javascript\nconst PORT = process.env.PORT || 3000;\n```\n\n### Game Time\nDefault game time is 10 minutes per player. Adjust in `App.jsx`:\n```javascript\nconst [whiteTime, setWhiteTime] = useState(600); // in seconds\nconst [blackTime, setBlackTime] = useState(600);\n```\n\n## 🎨 Customization\n\nThe project uses Tailwind CSS for styling. Customize the theme in `tailwind.config.js`:\n```javascript\nmodule.exports = {\n  theme: {\n    extend: {\n      // Add your custom colors, fonts, etc.\n    },\n  },\n}\n```\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/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## 📝 License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## 🙏 Acknowledgments\n\n- [chess.js](https://github.com/jhlywa/chess.js) - Chess game logic\n- [react-chessboard](https://github.com/Clariity/react-chessboard) - Chess board component\n- [Socket.IO](https://socket.io/) - Real-time communication\n- [Tailwind CSS](https://tailwindcss.com/) - Styling framework\n\n## 📧 Contact\n\nSachin KG - [@sachinkg-13](https://github.com/sachinkg-13)\n\nProject Link: [https://github.com/sachinkg-13/chess.com](https://github.com/sachinkg-13/chess.com)\n\n---\n\n\u003cdiv align=\"center\"\u003e\nMade with ♟️ and ⚡ by Sachin KG\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsachinkg-13%2Fchess.com","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsachinkg-13%2Fchess.com","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsachinkg-13%2Fchess.com/lists"}