{"id":48089483,"url":"https://github.com/integr-dev/castl3d-frontend","last_synced_at":"2026-04-04T15:28:49.715Z","repository":{"id":262330310,"uuid":"886910067","full_name":"integr-dev/castl3d-frontend","owner":"integr-dev","description":"Frontend for the Castl3d chess app.","archived":false,"fork":false,"pushed_at":"2024-11-19T06:51:36.000Z","size":76,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-30T21:32:19.086Z","etag":null,"topics":["chess","chess-bot","chess-engine","chess-game","chessboard"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/integr-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-11-11T20:36:40.000Z","updated_at":"2025-09-22T20:34:46.000Z","dependencies_parsed_at":"2024-11-11T21:34:17.518Z","dependency_job_id":"063aa9b5-973d-4dae-8b96-6ef386b0b4c1","html_url":"https://github.com/integr-dev/castl3d-frontend","commit_stats":null,"previous_names":["integr-0/castl3d-frontend","integr-dev/castl3d-frontend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/integr-dev/castl3d-frontend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integr-dev%2Fcastl3d-frontend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integr-dev%2Fcastl3d-frontend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integr-dev%2Fcastl3d-frontend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integr-dev%2Fcastl3d-frontend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/integr-dev","download_url":"https://codeload.github.com/integr-dev/castl3d-frontend/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integr-dev%2Fcastl3d-frontend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31403958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"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":["chess","chess-bot","chess-engine","chess-game","chessboard"],"created_at":"2026-04-04T15:28:38.439Z","updated_at":"2026-04-04T15:28:42.478Z","avatar_url":"https://github.com/integr-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Castl3d Chess\n\nThis project is a chess game frontend implemented using TypeScript and React. It features a live-updating chess board with a bot opponent that can be played at different difficulty levels.\n\n## Features\n\n- **Chess Moves**: Implements moves for all chess pieces (King, Queen, Bishop, Knight, Rook, Pawn).\n- **Live Updates**: Updates the board in real-time as the user moves the pieces.\n- **Live Preview**: Highlights the valid moves for each piece as the user selects them.\n- **Bot Opponent**: Selectable difficulty levels for the bot opponent synced to a backend server.\n\n## Technologies Used\n\n- **TypeScript**\n- **JavaScript**\n- **React**\n- **NPM**\n\n## Installation\n\n1. Clone the repository:\n    ```sh\n    git clone https://github.com/yourusername/chess-game.git\n    ```\n2. Navigate to the project directory:\n    ```sh\n    cd chess-game\n    ```\n3. Install the dependencies:\n    ```sh\n    npm install\n    ```\n\n## Usage\n\n1. Start the development server:\n    ```sh\n    npm run dev\n    ```\n2. Open your browser and navigate to `http://localhost:5173` to see the frontend.\n3. To run the backend server, navigate to the [Castl3d-Backend](https://github.com/Integr-0/Castl3d-Backend) directory and follow the instructions in the README.\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.\n\n## Using the board in your project\n\nTo use the board in your project, you can import the `ChessBoard` component from the `ChessBoard.tsx` file. The component takes the following props:\n- `backendSocketUrl`: The URL of the backend server running a Castl3d backend to connect to.\n- `botId`: The ID of the bot to play against.\n\n````tsx\n\u003cChessBoard backendSocketUrl={\"ws://yourapp.com/bot_socket\"} botId={currentBot}/\u003e\n````\n\nBackend runs on port 8080 by default. The bot ID can be obtained from the backend server. (see BotSelector.tsx for an example)\nIt also uses the `/bot_socket` endpoint by default.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintegr-dev%2Fcastl3d-frontend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintegr-dev%2Fcastl3d-frontend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintegr-dev%2Fcastl3d-frontend/lists"}