{"id":42048678,"url":"https://github.com/shivanshkc/gravastar","last_synced_at":"2026-01-26T06:32:19.467Z","repository":{"id":318669736,"uuid":"1072249947","full_name":"shivanshkc/gravastar","owner":"shivanshkc","description":"Gravastar is a browser-based gravity game where players create “Dots” on a shared canvas visible to everyone around the world. Each Dot has mass and interacts through gravity, so a Dot created in Germany can influence one in Australia.","archived":false,"fork":false,"pushed_at":"2025-10-27T09:22:44.000Z","size":710,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-27T10:27:17.548Z","etag":null,"topics":["n-body-simulation","newtonian-gravity","real-time-communication","websocket"],"latest_commit_sha":null,"homepage":"https://gravastar.shivansh.io","language":"Go","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/shivanshkc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":null,"dco":null,"cla":null}},"created_at":"2025-10-08T13:13:06.000Z","updated_at":"2025-10-17T14:34:59.000Z","dependencies_parsed_at":"2025-10-08T15:29:06.720Z","dependency_job_id":"5801b941-46ca-4a54-a626-3f7b6f24f375","html_url":"https://github.com/shivanshkc/gravastar","commit_stats":null,"previous_names":["shivanshkc/gravastar"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/shivanshkc/gravastar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivanshkc%2Fgravastar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivanshkc%2Fgravastar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivanshkc%2Fgravastar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivanshkc%2Fgravastar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shivanshkc","download_url":"https://codeload.github.com/shivanshkc/gravastar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivanshkc%2Fgravastar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28768352,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T03:54:34.369Z","status":"ssl_error","status_checked_at":"2026-01-26T03:54:33.031Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["n-body-simulation","newtonian-gravity","real-time-communication","websocket"],"created_at":"2026-01-26T06:32:18.800Z","updated_at":"2026-01-26T06:32:19.457Z","avatar_url":"https://github.com/shivanshkc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gravastar\n\nGravastar is a browser-based gravity game where players create “Dots” on a shared canvas visible to everyone around the world.\nEach Dot has mass and interacts through gravity, so a Dot created in Germany can influence one in Australia.\n\nPlay online: https://gravastar.shivansh.io\n\n## Running it yourself\n\nWant to host your own instance? Here are two ways to do it.\n\n### Option 1: Docker (recommended)\n\nFirst, clone this repository and create your config file.\n\n```bash\ncp config/config.sample.json config/config.json\n```\nYou can edit `config/config.json` if you want to change settings, but the defaults work fine.\n\nBuild and run:\n```bash\ndocker build -f Containerfile -t gravastar:latest .\ndocker run -d -p 8080:8080 -v $(pwd)/config/config.json:/service/config/config.json gravastar:latest\n```\n\nOpen http://localhost:8080 and you should see the game!\n\n### Option 2: Go\n\nIf you have Go installed, you can run it directly:\n\nClone this repository and create your config file just as described in the Docker section above.\n\nBuild and run:\n```bash\ngo build -o bin/gravastar cmd/gravastar/main.go\n./bin/gravastar -config config/config.json\n```\n\nThen open http://localhost:8080\n\n## Chaos Management\n\nN-body simulations are chaotic, meaning tiny differences cause big changes over time.\nSo two browsers running the same simulation will drift apart pretty quickly.\n\nTo fix this, there's a master simulation running on the server.\nPlayers can hit the \"Sync\" button to reset their local simulation to match the server's state.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivanshkc%2Fgravastar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshivanshkc%2Fgravastar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivanshkc%2Fgravastar/lists"}