# Ralith/hecs

A handy ECS

Repository: https://github.com/Ralith/hecs
Canonical: https://ross.abutalabs.com/products/hecs
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: hacktoberfest, ecs-paradigm
Last push: 2026-08-20T05:01:49+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 35, longevity 100
- inputs: {"age_days": 2460, "days_push": 13, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1361, forks 105 (observed 2026-08-28T04:04:30.064652+00:00)

## What it is
hecs is a fast, minimalist entity-component-system (ECS) library for Rust that provides a World of entities queried from regular code without imposing a framework or System abstraction. It stores components in dense, contiguous arrays for cache-friendly linear traversals.

## Use cases
- build a game with an entity-component-system architecture in Rust
- manage large collections of entities with loosely-coupled component data
- query entities by component types with fast cache-friendly iteration
- add new behaviors to existing objects without refactoring class hierarchies
- use a lightweight ECS inside an existing engine or application

## When to choose
- you want a minimal, ergonomic ECS library rather than a full game framework
- you need high-performance, cache-friendly component iteration
- you prefer organizing your own systems in plain Rust code
- you want near-zero boilerplate when defining components

## When to avoid
- you need a full game engine with rendering, audio, and asset management built in
- you want scheduler features, system dependency graphs, or parallel system execution out of the box
- you need archetype-level reflection or serialization tooling beyond the basics

## Facets
- artifact type: library
- maturity: stable
- function: game-engine, simulation
- domain: simulation, developer-tools
- platform: rust, cross-platform
- tags: ecs, entity-component-system, data-oriented-design, no-std-friendly, game-development

## Member repositories
- Ralith/hecs (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:30.064652+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:41:33.878394+00:00, confidence not recorded.
  - readme: https://github.com/Ralith/hecs (fetched 2026-08-28T04:04:30.064652+00:00, sha d45950892f2b)
  - registry_crates: https://crates.io/api/v1/crates/hecs (fetched 2026-08-29T11:59:12.322114+00:00, sha 15fc80a22ff2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
