Koota ECS

Installation
SKILL.md

Koota ECS

Use Koota for data-oriented Entity Component System architecture with React bindings.

Technique

Define traits (components) with trait(), create a world, spawn entities with traits, and query entities in systems. Use useQuery to reactively render entities and useTraitEffect to respond to trait changes.

Key Concepts

  • trait() defines component schemas with default values
  • world.spawn() creates entities with traits
  • world.query() finds entities matching traits
  • useQuery() hook for reactive entity lists in React
  • useTraitEffect() for responding to trait changes without re-rendering
  • Systems are components that use useFrame to update entities

Usage

Related skills
Installs
GitHub Stars
29
First Seen