{"id":38799403,"url":"https://github.com/th0masb/hyperopic","last_synced_at":"2026-01-17T12:45:45.206Z","repository":{"id":37178818,"uuid":"168003437","full_name":"th0masb/hyperopic","owner":"th0masb","description":"Serverless chess engine deployed on AWS and playable via the Lichess website","archived":false,"fork":false,"pushed_at":"2025-06-15T14:39:17.000Z","size":7144,"stargazers_count":12,"open_issues_count":21,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-13T10:23:39.932Z","etag":null,"topics":["aws-lambda","bot","cdk","chess-engine","containers","docker","dynamodb","ecs","lambda","lichess","rust","serverless","typescript"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/th0masb.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":"2019-01-28T17:20:10.000Z","updated_at":"2025-09-10T15:17:55.000Z","dependencies_parsed_at":"2025-11-22T10:01:42.332Z","dependency_job_id":null,"html_url":"https://github.com/th0masb/hyperopic","commit_stats":null,"previous_names":["th0masb/hyperopic","th0masb/myopic"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/th0masb/hyperopic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th0masb%2Fhyperopic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th0masb%2Fhyperopic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th0masb%2Fhyperopic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th0masb%2Fhyperopic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/th0masb","download_url":"https://codeload.github.com/th0masb/hyperopic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th0masb%2Fhyperopic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28508567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T11:50:55.898Z","status":"ssl_error","status_checked_at":"2026-01-17T11:50:55.569Z","response_time":85,"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":["aws-lambda","bot","cdk","chess-engine","containers","docker","dynamodb","ecs","lambda","lichess","rust","serverless","typescript"],"created_at":"2026-01-17T12:45:45.089Z","updated_at":"2026-01-17T12:45:45.161Z","avatar_url":"https://github.com/th0masb.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hyperopic chess engine\n\n---\n\n![Logo](assets/hyperopic-256.png)\n\n### Overview\n\nThis repository contains a mixture of libraries and applications which combine\nto form an amateur chess engine which is playable by anyone around the world at\nany time via the best website for playing chess [lichess.org](lichess.org). All\nof the application code is written in [rust](rust-lang.org). The infrastructure\nis provided by AWS and provisioned programmatically using the typescript flavour\nof their [cloud development kit](https://aws.amazon.com/cdk/).\n\nThe main engine deployment is mostly serverless and uses a couple of lambda\nfunctions alongside a dynamodb table for opening moves. The first lambda tracks the\nprogress of a game and calls the second to compute our move when needed. The\nLichess API model is pull based and requires a process polling an event stream\nconstantly to detect and respond to challenges, so this is running on a tiny ECS\ncluster. The aim is to have 99.9% availability for accepting challenges subject to\nmax concurrent games limit on Lichess.\n\n---\n\n### Challenging the bot\n\nYou need an account on lichess.org which is completely free and just requires an\nemail address. To challenge Hyperopic to a game, visit its \n[profile page][1], select the \"Challenge to a game\" button (like in the screenshot \nbelow) and choose your game parameters.\n\n![Challenge how-to](assets/challenge.png)\n\nSome things to note about the parameters of the game:\n\n- Only the \"Standard\" variant is supported\n- You can only play \"Real time\" games against the bot, i.e. games with a clock,\n  to constrain the use of AWS resources to keep within the free tier\n- The minutes per side supported is 1–5 inclusive, and the increment supported\n  is 0–5 inclusive \n- A rate limit of 5 games per day per user is enforced\n\n[1]: https://lichess.org/@/Hyperopic\n\n---\n\n### Building the project\n\nCargo is used as the build tool, you will require a rustc version \u003e= 1.86.0. Hyperopic has a UCI compliant CLI interface\nwhich allows the bot to integrate with other existing applications. To build and test the project use the following \ncommands:\n\n```shell\n# Build all modules\ncargo build\n\n# Run all module tests\ncargo test\n\n# Build the UCI compliant CLi interface, the output binary will be at target/release/hyperopic-cli\ncargo build --bin hyperopic-cli --release\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fth0masb%2Fhyperopic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fth0masb%2Fhyperopic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fth0masb%2Fhyperopic/lists"}