{"id":22837032,"url":"https://github.com/mineinabyss/geary","last_synced_at":"2026-04-08T06:02:15.345Z","repository":{"id":37464964,"uuid":"306093350","full_name":"MineInAbyss/geary","owner":"MineInAbyss","description":"ECS framework made for Kotlin","archived":false,"fork":false,"pushed_at":"2026-04-01T02:13:31.000Z","size":2458,"stargazers_count":62,"open_issues_count":8,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-04-01T04:52:05.399Z","etag":null,"topics":["ecs","entity-component-system","gamedev","minecraft"],"latest_commit_sha":null,"homepage":"https://docs.mineinabyss.com/geary/","language":"Kotlin","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/MineInAbyss.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":".github/CODEOWNERS","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":"2020-10-21T17:05:13.000Z","updated_at":"2026-03-10T00:14:18.000Z","dependencies_parsed_at":"2024-02-25T23:24:48.757Z","dependency_job_id":"ad33471c-feb3-4741-af14-39837b7ff3be","html_url":"https://github.com/MineInAbyss/geary","commit_stats":null,"previous_names":[],"tags_count":106,"template":false,"template_full_name":null,"purl":"pkg:github/MineInAbyss/geary","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MineInAbyss%2Fgeary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MineInAbyss%2Fgeary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MineInAbyss%2Fgeary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MineInAbyss%2Fgeary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MineInAbyss","download_url":"https://codeload.github.com/MineInAbyss/geary/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MineInAbyss%2Fgeary/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31542384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"online","status_checked_at":"2026-04-08T02:00:06.127Z","response_time":54,"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","gamedev","minecraft"],"created_at":"2024-12-12T23:15:25.770Z","updated_at":"2026-04-08T06:02:15.307Z","avatar_url":"https://github.com/MineInAbyss.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Geary\n[![Package](https://img.shields.io/maven-metadata/v?metadataUrl=https://repo.mineinabyss.com/releases/com/mineinabyss/geary-core/maven-metadata.xml\u0026color=light_green)](https://repo.mineinabyss.com/#/releases/com/mineinabyss/geary-core)\n[![Package](https://img.shields.io/maven-metadata/v?metadataUrl=https://repo.mineinabyss.com/snapshots/com/mineinabyss/geary-core/maven-metadata.xml\u0026label=prerelease)](https://repo.mineinabyss.com/#/snapshots/com/mineinabyss/geary-core)\n[![Wiki](https://img.shields.io/badge/-Project%20Wiki-blueviolet?logo=Wikipedia\u0026labelColor=gray)](https://docs.mineinabyss.com/geary)\n[![Contribute](https://shields.io/badge/Contribute-e57be5?logo=github%20sponsors\u0026style=flat\u0026logoColor=white)](https://docs.mineinabyss.com/contribute)\n\u003c/div\u003e\n\n## Overview\n\nGeary is an Entity Component System (ECS) written in Kotlin. The engine design is inspired by [flecs](https://github.com/SanderMertens/flecs). Core parts of the engine like system iteration and entity creation are quite optimized, the main exception being our observer system. We use Geary internally for our Minecraft plugins, see [geary-papermc](https://github.com/MineInAbyss/geary-papermc) for more info.\n\n## Features\n- Archetype based engine optimized for many entities with similar components\n- Type safe systems, queries, and event listeners\n- Null safe component access\n- Flecs-style entity relationships `alice.addRelation\u003cFriendsWith\u003e(bob)`\n- Observers for listening to component changes and custom events\n- Prefabs that reuse components across entities\n- Persistent components and loading prefabs from files thanks to [kotlinx.serialization](https://github.com/Kotlin/kotlinx.serialization/)\n- Addon system to use only what you need\n\n## Usage\n\nRead our [Quickstart guide](https://docs.mineinabyss.com/geary/quickstart/) to see Geary in action, here's an excerpt, a simple velocity system:\n\n\n```kotlin\ndata class Position(var x: Double, var y: Double)\ndata class Velocity(var x: Double, var y: Double)\n\nfun Geary.updatePositionSystem() = system(query\u003cPosition, Velocity\u003e())\n    .every(interval = 20.milliseconds)\n    .exec { (position, velocity) -\u003e\n        // We can access our components like regular variables!\n        position.x += velocity.x\n        position.y += velocity.y\n    }\n\n\nfun main() {\n    // Set up geary\n    geary(ArchetypeEngineModule) {\n        // example engine configuration\n        install(Prefabs)\n    }\n\n    val posSystem = geary.updatePositionSystem()\n\n    // Create an entity the system can run on\n    entity {\n        setAll(Position(0.0, 0.0), Velocity(1.0, 0.0))\n    }\n    \n    posSystem.tick() // exec just this system\n    geary.engine.tick() // exec all registered repeating systems, interval used to calculate every n ticks to run\n    \n    val positions: List\u003cPosition\u003e = posSystem.map { (pos) -\u003e pos }\n}\n\n```\n\n### Gradle\n```kotlin\nrepositories {\n    maven(\"https://repo.mineinabyss.com/releases\")\n}\n\ndependencies {\n    val gearyVersion = \"x.y.z\"\n    implementation(\"com.mineinabyss:geary-core:$gearyVersion\")\n    implementation(\"com.mineinabyss:geary-\u003caddon-name\u003e:$gearyVersion\")\n}\n```\n\n### Version catalog entries\n\n```toml\n[versions]\ngeary = \"x.y.z\"\n\n[libraries]\ngeary-core = { module = \"com.mineinabyss:geary-autoscan\", version.ref = \"geary\" }\ngeary-actions = { module = \"com.mineinabyss:geary-actions\", version.ref = \"geary\" }\ngeary-autoscan = { module = \"com.mineinabyss:geary-autoscan\", version.ref = \"geary\" }\ngeary-prefabs = { module = \"com.mineinabyss:geary-prefabs\", version.ref = \"geary\" }\ngeary-serialization = { module = \"com.mineinabyss:geary-serialization\", version.ref = \"geary\" } \ngeary-uuid = { module = \"com.mineinabyss:geary-uuid\", version.ref = \"geary\" } \n```\n\n## Roadmap\n\nAs the project matures, our primary goal is to make it useful to more people. Here are a handful of features we hope to achieve:\n- Multiplatform support, with js, jvm, and native targets\n- Publish numbers for benchmarks and cover more parts of the engine with them\n- Relation queries, ex. entities with a parent that has X component.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmineinabyss%2Fgeary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmineinabyss%2Fgeary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmineinabyss%2Fgeary/lists"}