{"id":40898260,"url":"https://github.com/dannyfritz/flock","last_synced_at":"2026-01-22T02:28:13.170Z","repository":{"id":53540311,"uuid":"214348739","full_name":"dannyfritz/flock","owner":"dannyfritz","description":"🐦🐦🐦 A simple, but powerful ECS written in TypeScript.","archived":false,"fork":false,"pushed_at":"2025-12-30T18:06:20.000Z","size":6443,"stargazers_count":19,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-01-03T12:18:42.294Z","etag":null,"topics":["ecs","entity-component-system","entitycomponentsystem","gamedev","typescript"],"latest_commit_sha":null,"homepage":"https://dannyfritz.github.io/flock-ecs","language":"TypeScript","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/dannyfritz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2019-10-11T05:13:49.000Z","updated_at":"2025-12-09T13:34:27.000Z","dependencies_parsed_at":"2024-10-06T15:36:37.669Z","dependency_job_id":"192f117c-b095-4e8d-8e36-e5ccec6fd23f","html_url":"https://github.com/dannyfritz/flock","commit_stats":{"total_commits":29,"total_committers":1,"mean_commits":29.0,"dds":0.0,"last_synced_commit":"b52dccafb9d9920f629f5bcd125fd2a887f75415"},"previous_names":["dannyfritz/flock","dannyfritz/flock-ecs"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/dannyfritz/flock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dannyfritz%2Fflock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dannyfritz%2Fflock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dannyfritz%2Fflock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dannyfritz%2Fflock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dannyfritz","download_url":"https://codeload.github.com/dannyfritz/flock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dannyfritz%2Fflock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28651545,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"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":["ecs","entity-component-system","entitycomponentsystem","gamedev","typescript"],"created_at":"2026-01-22T02:28:12.641Z","updated_at":"2026-01-22T02:28:13.161Z","avatar_url":"https://github.com/dannyfritz.png","language":"TypeScript","readme":"![logo](logo.png)\n\n[![GitHub](https://img.shields.io/github/license/dannyfritz/flock-ecs?style=for-the-badge)](https://github.com/dannyfritz/flock-ecs/blob/master/LICENSE)\n[![npm badge](https://img.shields.io/npm/v/flock-ecs?style=for-the-badge)](https://www.npmjs.com/package/flock-ecs)\n\nAn entity component system (ECS) created with TypeScript in mind.\n\n## Features\n\n* No dependencies\n* Very good TypeScript typings\n* Simple, but powerful API\n* Designed for performance\n* Struct of Arrays for storing entity component values\n* Entities are queryable by:\n  * Component\n  * Absence of Component\n  * Added Entity\n  * Removed Entity\n* Systems can have 1 or more queries\n\n## [Roadmap](https://github.com/dannyfritz/flock-ecs/issues/1)\n\n## Install\n\n```sh\nnpm install flock-ecs\n```\n\n```ts\nconst flock = require(\"flock-ecs\");\n//or\nimport * as flock from \"flock-ecs\";\n```\n\n## Examples\n\n### [Simple](./examples/simple)\n\n```ts\nimport * as flock from 'flock-ecs';\n\nconst world = new flock.World();\n\nconst Position = new flock.Component(\n  () =\u003e ({\n    x: 0,\n    y: 0,\n  })\n);\nworld.registerComponent(Position);\n\nconst logSystem = new flock.System(\n  (entities) =\u003e {\n    entities.forEach(entity =\u003e {\n      const position = entity.getComponent(Position)!;\n      console.log(`{ x: ${position.value.x}, y: ${position.value.y} }`);\n    });\n  },\n  [ Position ],\n);\n\nfor (let i=0; i\u003c10; i++) {\n  const entity = world.createEntity();\n  entity.addComponent(Position, { x: Math.random() * 100, y: Math.random() * 100 });\n}\n\nlogSystem.run(world);\nworld.maintain();\n```\n\n### [Boids](./examples/boids)\n\n## [API Docs](https://dannyfritz.github.io/flock-ecs/)\n\n## Development\n\nThis repo uses Yarn workspaces, so make sure you're using yarn instead of npm.\n\nTo build the library in watch mode:\n\n```sh\nyarn workspace flock-ecs dev\n```\n\nAnd then to live build one of the examples, in another terminal:\n\n```sh\nyarn workspace boids start\n```\n\nTo run tests:\n\n```sh\nyarn test\n```\n\nTo run tests in watch mode:\n\n```sh\nyarn test:dev\n```\n\n## [Code of Conduct](./CODE_OF_CONDUCT.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdannyfritz%2Fflock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdannyfritz%2Fflock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdannyfritz%2Fflock/lists"}