{"id":35149133,"url":"https://github.com/dkj/polypongon","last_synced_at":"2026-03-08T01:18:02.452Z","repository":{"id":328731200,"uuid":"1116362637","full_name":"dkj/polypongon","owner":"dkj","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-08T18:21:51.000Z","size":1096,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-09T00:32:20.676Z","etag":null,"topics":["ai-generated-code","arcade-game","game","multiplayer","pong","pong-game","pwa-app"],"latest_commit_sha":null,"homepage":"https://polypongon.uk","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dkj.png","metadata":{"files":{"readme":"README_INSTANCE_AFFINITY.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,"notice":null,"maintainers":null,"copyright":null,"agents":"Agents.md","dco":null,"cla":null}},"created_at":"2025-12-14T17:58:41.000Z","updated_at":"2026-02-08T18:14:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dkj/polypongon","commit_stats":null,"previous_names":["dkj/polypong"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/dkj/polypongon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkj%2Fpolypongon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkj%2Fpolypongon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkj%2Fpolypongon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkj%2Fpolypongon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkj","download_url":"https://codeload.github.com/dkj/polypongon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkj%2Fpolypongon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30240586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T00:58:18.660Z","status":"ssl_error","status_checked_at":"2026-03-08T00:55:48.608Z","response_time":53,"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":["ai-generated-code","arcade-game","game","multiplayer","pong","pong-game","pwa-app"],"created_at":"2025-12-28T14:53:30.274Z","updated_at":"2026-03-08T01:18:02.443Z","avatar_url":"https://github.com/dkj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 🚀 Fly.io Instance Affinity\n\nPolypongon implements **instance-specific routing** to ensure all players in a multiplayer room connect to the same Fly.io machine, guaranteeing consistent game state.\n\n### How It Works\n\nWhen you create a room, the instance ID is encoded in the shareable URL:\n```\nhttps://polypongon.fly.dev/?room=XY4Z\u0026instance=abc123\n```\n\nWhen anyone joins using this URL:\n1. Their browser connects with the instance parameter\n2. Fly's proxy routes the WebSocket to the correct instance using `fly-replay`\n3. All players see the same game state\n\n### Benefits\n\n✅ **Reliable Multiplayer** - No split-brain scenarios  \n✅ **Seamless Sharing** - URLs work across all devices  \n✅ **Automatic Routing** - Fly handles instance redirection  \n✅ **Local Development** - Works on localhost without changes\n\n### Development\n\nThe instance affinity works automatically:\n- **On Fly.io**: Instance routing is enforced\n- **Locally**: Works normally without enforcement (instance = \"local\")\n\nSee [`FLY_INSTANCE_AFFINITY.md`](./FLY_INSTANCE_AFFINITY.md) for technical details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkj%2Fpolypongon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkj%2Fpolypongon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkj%2Fpolypongon/lists"}