Miniplex ECS
Installation
SKILL.md
Miniplex ECS
Use Miniplex for minimalistic Entity Component System with TypeScript support.
Technique
Define an entity type with optional properties, create a world, and query entities based on their properties. Use miniplex-react for React bindings with the Entities component.
Key Concepts
- Entity type defines all possible components as optional properties
world.with('prop1', 'prop2')creates typed queriesworld.add()andworld.remove()for entity lifecycle<Entities in={query}>{Component}</Entities>renders entities reactively- Entity props are passed directly to child components