{"id":19104217,"url":"https://github.com/centau/ecr","last_synced_at":"2025-04-18T19:33:03.031Z","repository":{"id":63358939,"uuid":"565134714","full_name":"centau/ecr","owner":"centau","description":"A sparse-set based ECS library for Luau.","archived":false,"fork":false,"pushed_at":"2025-03-28T20:05:01.000Z","size":467,"stargazers_count":52,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T21:22:20.966Z","etag":null,"topics":["ecs","entity-component-system","game-development","library","luau","roblox"],"latest_commit_sha":null,"homepage":"https://centau.github.io/ecr/","language":"Luau","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/centau.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-11-12T12:57:59.000Z","updated_at":"2025-03-28T20:05:13.000Z","dependencies_parsed_at":"2023-02-14T20:31:44.244Z","dependency_job_id":"8031ca41-8d02-403a-9f7c-666e7e8cf09d","html_url":"https://github.com/centau/ecr","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centau%2Fecr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centau%2Fecr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centau%2Fecr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centau%2Fecr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/centau","download_url":"https://codeload.github.com/centau/ecr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249536316,"owners_count":21287578,"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":["ecs","entity-component-system","game-development","library","luau","roblox"],"created_at":"2024-11-09T04:00:58.556Z","updated_at":"2025-04-18T19:33:03.022Z","avatar_url":"https://github.com/centau.png","language":"Luau","funding_links":[],"categories":["Libraries"],"sub_categories":["Entity Component System"],"readme":"\u003cbr\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"docs/public/logo.svg\" width=\"400\" /\u003e\n\u003c/div\u003e\n\n\u003cbr\u003e\n\n#\n\n\u003cbr\u003e\n\n### ⚠️ This library is in early stages of development with breaking changes being made often.\n\nECR is a Luau ECS library.\n\n- A library and not a framework\n- Uses typechecking.\n- Sparse-set based storage that can support perfect SoA.\n- Carefully optimized memory usage and performance.\n- Signals for detecting changes to components.\n\n## Getting started\n\nRead the [crash course](https://centau.github.io/ecr/tut/crash-course) for a\nbrief introduction to the library.\n\n## Code sample\n\n```lua\nlocal ecr = require(ecr)\n\n-- define components\nlocal Position = ecr.component() :: Vector3\nlocal Velocity = ecr.component() :: Vector3\n\n-- define a system\nlocal function update_physics(world: ecr.Registry, dt: number)\n    for id, pos, vel in world:view(Position, Velocity) do\n        world:set(id, Position, pos + vel*dt)\n    end\nend\n\n-- instantiate the world\nlocal world = ecr.registry()\n\n-- create entities and assign components\nfor i = 1, 10 do\n    local id = world:create()\n    world:set(id, Position, Vector3.new(i, 1, 1))\n    world:set(id, Velocity, Vector3.new(10, 0, 0))\nend\n\n-- run system\nupdate_physics(world, 1/60)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcentau%2Fecr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcentau%2Fecr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcentau%2Fecr/lists"}