qmetrics.net

Flecs

Fast entity component system for C and C++

Flecs screenshot

Lightweight entity component system for games and simulations with C99 and C++17 APIs. Supports hierarchies, prefabs, relationships, queries, and multithreaded scheduling.

Overview

Flecs is a fast, lightweight entity component system for building games and simulations that may involve very large numbers of entities. It exposes a portable zero-dependency C99 API and a type-safe C++17 API that avoids STL containers in its core design.

An ECS organizes work around entities as unique object identifiers, components as data types attached to entities, and systems as functions that run over entities matching queries. Flecs emphasizes entity relationships, native hierarchies, and prefabs, plus a query language with joins and inheritance. Storage uses cache-friendly archetype and structure-of-arrays layouts aimed at high per-frame throughput.

Developers can write free functions with queries or register systems that run automatically on schedules. A lockless scheduler can spread game logic across CPU cores. Addons cover systems, prefabs, scripting, a query language, remote API access, reflection with JSON serialization, runtime components, and statistics for profiling.

Flecs builds quickly, runs in the browser with emscripten without code changes, and documents Flecs Hub modules for input, transforms, physics, graphics, and rendering integrations. Community language bindings exist for C#, Rust, Zig, Lua, Clojure, and Java.

Key features

  • C99 and C++17 APIs
  • Entity relationships support
  • Hierarchies and prefabs
  • Query language with joins
  • Multithreaded lockless scheduler
  • JSON reflection serializer
  • Flecs Explorer web UI
  • Archetype SoA storage

Use cases

  • Game engines and simulations
  • Large-scale entity gameplay logic
  • Browser games via emscripten
  • Scene graphs with hierarchies
  • ECS prototypes in C or C++

Tags

Similar software

Godot

Cross-platform 2D and 3D game engine

Godot Engine lets creators build 2D and 3D games from one editor and export to desktop, mobile, web, and console targets through publishers.

  • Unified 2D and 3D editor
  • Node and scene workflow
  • GDScript, C#, and C++ scripting
C++Web, Linux, macOS, WindowsDetails →
★ 121.4k⟳ todayMIT
Open Source Alternative to:Unity

Bevy

Rust game engine with ECS architecture

Bevy Engine is a data-driven Rust game engine for 2D and 3D work. It emphasizes modularity, parallel execution, and fast iteration while the project remains under active development.

  • Entity-component-system core
  • 2D and 3D renderers
  • Render graph pipelines
RustLinux, macOS, Windows, AndroidDetails →
★ 50.2k⟳ todayApache-2.0 · open core
Open Source Alternative to:Unity

PixiJS

HTML5 WebGL and WebGPU 2D graphics library

PixiJS is a browser library for fast 2D rendering with WebGPU or WebGL. It targets games, ads, apps, and interactive sites.

  • WebGPU and WebGL 2D rendering
  • Spritesheets and asset loader
  • Filters and custom shaders
TypeScriptWeb, CLIDetails →
★ 49k⟳ 4 days agoMIT

Phaser

HTML5 2D game framework with Canvas and WebGL

Phaser is a JavaScript and TypeScript framework for browser games on desktop and mobile, with scene APIs, physics, animations, and loaders. Games can target embed platforms or wrap for native stores via third-party tooling

  • Canvas and WebGL rendering
  • Scene-based game structure
  • Arcade and Matter.js physics
JavaScriptWebDetails →
★ 40.9k⟳ todayMIT

raylib

Minimal C library for games and graphical programs

raylib is a C99 graphics and game programming library with no mandatory external dependencies. It suits prototypes, tools, education, and embedded targets across desktop, mobile, and web.

  • Bundled dependencies in one library
  • OpenGL and software render paths
  • 2D, 3D, audio, and input modules
CLinux, macOS, Windows, AndroidDetails →
★ 35.9k⟳ yesterdayZlib

GDevelop

Cross-platform no-code game engine for 2D and 3D

GDevelop is no-code game development software for building 2D, 3D, and multiplayer games for mobile, desktop, and the web. It uses an event-based system, modular behaviors, and optional AI assistance.

  • No-code event-based game logic
  • 2D and 3D WebGL rendering
  • Modular attachable behaviors
JavaScriptWeb, Linux, macOS, WindowsDetails →
★ 29.6k⟳ todayMIT · open core
Game DevelopmentDesktop/CLI app
Open Source Alternative to:Unity