{"id":15642172,"url":"https://github.com/healeycodes/boids","last_synced_at":"2025-08-30T20:13:46.388Z","repository":{"id":57538478,"uuid":"281500690","full_name":"healeycodes/boids","owner":"healeycodes","description":"🦢  The boids flocking simulation in Wasm using Ebiten!","archived":false,"fork":false,"pushed_at":"2020-07-31T10:15:20.000Z","size":27249,"stargazers_count":63,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-30T09:55:55.467Z","etag":null,"topics":["boids","ebiten","flocking","go","go-game","go-wasm","wasm"],"latest_commit_sha":null,"homepage":"https://healeycodes.com/boids-flocking-simulation/","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/healeycodes.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}},"created_at":"2020-07-21T20:45:20.000Z","updated_at":"2024-12-04T17:16:14.000Z","dependencies_parsed_at":"2022-09-07T15:50:11.539Z","dependency_job_id":null,"html_url":"https://github.com/healeycodes/boids","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/healeycodes/boids","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fboids","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fboids/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fboids/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fboids/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/healeycodes","download_url":"https://codeload.github.com/healeycodes/boids/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fboids/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272900162,"owners_count":25012034,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["boids","ebiten","flocking","go","go-game","go-wasm","wasm"],"created_at":"2024-10-03T11:55:11.367Z","updated_at":"2025-08-30T20:13:46.367Z","avatar_url":"https://github.com/healeycodes.png","language":"Go","readme":"## Boids with Go and Ebiten\n\n\u003e My blog post: [Boids in WebAssembly Using Go](https://healeycodes.com/boids-flocking-simulation/)\n\n\u003cbr\u003e\n\n👉🏻 [Demo link](https://healeycodes.github.io/boids/) to the WASM version.\n\nI wrote this program, an implementation of Craig Reynolds' _Boids_, in order to learn more about deploying Go on the web, and to tackle a problem that escaped me when I was learning to code!\n\n\u003cbr\u003e\n\n![Animated GIF of a flocking simulation](https://github.com/healeycodes/boids/raw/master/dist/preview.gif)\n\n### Possible improvements\n\n- Field of vision support (boids shouldn't look behind 👀)\n- QuadTree optimization\n- Different `maxSpeed`/`maxForce` for each boid\n- Graphical interface for live-editing of values\n- Use a snapshot for each 'generation'\n- ..\n\n\u003cbr\u003e\n\n### Run 🦢\n\n```\ngo run main.go\n```\n\n### Build 🕊\n\n```\nGOOS=js GOARCH=wasm go build -o dist/boids.wasm github.com/healeycodes/boids\n```\n\nThis compiles the program into WebAssembly in the `dist` folder.\n\nThe simulation can be viewed in a web browser via `index.html`. To get this working locally, you may need to serve the files from a web server.\n\n\u003cbr\u003e\n\nLicense: MIT.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhealeycodes%2Fboids","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhealeycodes%2Fboids","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhealeycodes%2Fboids/lists"}