{"id":21017880,"url":"https://github.com/bouvens/griffeath-machine","last_synced_at":"2025-06-14T00:03:09.040Z","repository":{"id":111456732,"uuid":"107795081","full_name":"bouvens/griffeath-machine","owner":"bouvens","description":"A Cyclic Cellular Automaton","archived":false,"fork":false,"pushed_at":"2024-03-08T17:10:37.000Z","size":7127,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-15T06:39:14.484Z","etag":null,"topics":["canvas","cellular-automata","cellular-automaton","cyclic-cellular-automation","javascript","react"],"latest_commit_sha":null,"homepage":"https://bouvens.github.io/griffeath-machine/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bouvens.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2017-10-21T16:12:03.000Z","updated_at":"2025-04-09T18:40:07.000Z","dependencies_parsed_at":"2024-11-19T10:37:04.620Z","dependency_job_id":null,"html_url":"https://github.com/bouvens/griffeath-machine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bouvens/griffeath-machine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouvens%2Fgriffeath-machine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouvens%2Fgriffeath-machine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouvens%2Fgriffeath-machine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouvens%2Fgriffeath-machine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bouvens","download_url":"https://codeload.github.com/bouvens/griffeath-machine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouvens%2Fgriffeath-machine/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259737911,"owners_count":22903869,"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","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":["canvas","cellular-automata","cellular-automaton","cyclic-cellular-automation","javascript","react"],"created_at":"2024-11-19T10:22:33.185Z","updated_at":"2025-06-14T00:03:09.018Z","avatar_url":"https://github.com/bouvens.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Griffeath’s Machine\n\n### [Demo](https://bouvens.github.io/griffeath-machine/)\n\n[![Example of a frame](https://github.com/bouvens/griffeath-machine/raw/master/img/griffeath-machine.png)](https://bouvens.github.io/griffeath-machine/)\n\nThis experiment is made with [state-control ![npm][npm-badge]][npm]\n\n[npm-badge]: https://img.shields.io/npm/v/state-control.png?style=flat-square\n[npm]: https://www.npmjs.org/package/state-control\n\n## What’s This?\n\nThis cyclic cellular automaton is a kind of automaton rule invented by David Griffeath and studied by several other researchers.\n\nYou can find more information and rules in [Wikipedia](https://en.wikipedia.org/wiki/Cyclic_cellular_automaton).\n\nRendering is made with high performance method `CanvasRenderingContext2D.putImageData()` with typed arrays and some bitwise magic inside React component [`\u003cCanvasField /\u003e`](https://github.com/bouvens/griffeath-machine/blob/master/src/components/optimized/CanvasField.jsx).\n\n## How It Works?\n\nOn every step [every cell changes](https://github.com/bouvens/griffeath-machine/blob/master/src/utils.js) its value to make it equal to a neighbor’s value if it has modular value one unit larger.\n\n## How to Run Locally\n\nRun in bash\n```bash\ngit clone git@github.com:bouvens/griffeath-machine.git\ncd griffeath-machine\nnpm install\nnpm start\n```\n\nAlso, there’s the script for local build\n```bash\nnpm run build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbouvens%2Fgriffeath-machine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbouvens%2Fgriffeath-machine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbouvens%2Fgriffeath-machine/lists"}