{"id":24316120,"url":"https://github.com/olzhasar/pyws-chess","last_synced_at":"2026-01-20T12:01:22.664Z","repository":{"id":258771290,"uuid":"854183126","full_name":"olzhasar/pyws-chess","owner":"olzhasar","description":"A real-time chess game built with asyncio, FastAPI and websockets","archived":false,"fork":false,"pushed_at":"2024-10-22T11:49:48.000Z","size":206,"stargazers_count":38,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-26T23:40:07.620Z","etag":null,"topics":["asyncio","chess","fastapi","python","websockets"],"latest_commit_sha":null,"homepage":"https://chess.olzhasar.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/olzhasar.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}},"created_at":"2024-09-08T15:43:29.000Z","updated_at":"2025-05-07T19:51:35.000Z","dependencies_parsed_at":"2024-10-21T21:24:06.582Z","dependency_job_id":null,"html_url":"https://github.com/olzhasar/pyws-chess","commit_stats":null,"previous_names":["olzhasar/pyws-chess"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/olzhasar/pyws-chess","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olzhasar%2Fpyws-chess","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olzhasar%2Fpyws-chess/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olzhasar%2Fpyws-chess/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olzhasar%2Fpyws-chess/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olzhasar","download_url":"https://codeload.github.com/olzhasar/pyws-chess/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olzhasar%2Fpyws-chess/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28603295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T10:46:13.255Z","status":"ssl_error","status_checked_at":"2026-01-20T10:42:51.865Z","response_time":117,"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":["asyncio","chess","fastapi","python","websockets"],"created_at":"2025-01-17T12:19:47.311Z","updated_at":"2026-01-20T12:01:22.622Z","avatar_url":"https://github.com/olzhasar.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# pyws-chess\n\nA simple online chess game via websockets.\n\nLive Demo:\n\n[https://chess.olzhasar.com](https://chess.olzhasar.com)\n\n![Preview](./preview.png)\n\n## Technologies\n\n- [asyncio](https://docs.python.org/3/library/asyncio.html)\n- [FastAPI](https://fastapi.tiangolo.com/) for the server\n- [msgspec](https://github.com/jcrist/msgspec) for message serialization\n- [WebSockets](https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API) for real-time communication\n- [python-chess](https://python-chess.readthedocs.io/en/latest/) for server-side chess logic\n- [chessboard.js](https://chessboardjs.com/) for client rendering\n- [chess.js](https://github.com/jhlywa/chess.js) for client-side chess logic\n- [Prometheus](https://prometheus.io/) and [prometheus-fastapi-instrumentator](https://github.com/trallnag/prometheus-fastapi-instrumentator)  for metrics\n\n## Features\n- Real-time chess game\n- Client and server-side move validation\n- Automatic matchmaking\n\n### Limitations\n- Reconnection is not supported\n\n## Running locally\n\n### Docker\n\n```bash\ndocker build -t pyws-chess .\ndocker run -p 8000:8000 pyws-chess\n```\n\n### Local installation\n\n#### Pre-requisites\n\n- [uv](https://github.com/astral-sh/uv)\n- Python 3.11+\n\n```bash\ncd src\nuv run uvicorn app.main:app\n```\n\nThe server will be running on `http://localhost:8000`.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folzhasar%2Fpyws-chess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folzhasar%2Fpyws-chess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folzhasar%2Fpyws-chess/lists"}