SanderMertens/flecs is an open-source project on GitHub with 8.8k stars, written primarily in C. A fast entity component system (ECS) for C & C++
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Flecs is a fast and lightweight Entity Component System that lets you build games and simulations with millions of entities (join the Discord!). Here are some of the framework's highlights:
Fast and portable zero dependency C99 API
Modern type-safe C++17 API that doesn't use STL containers
First open source ECS with full support for Entity Relationships!
Fast native support for hierarchies and prefabs
Code base that builds in less than 5 seconds
Runs in the browser without modifications with emscripten
Cache friendly archetype/SoA storage that can process millions of entities every frame
Automatic component registration that works out of the box across shared libraries/DLLs
Write free functions with queries or run code automatically in systems
Run games on multiple CPU cores with a fast lockless scheduler
Verified on all major compilers and platforms with CI running more than 13000 tests
Integrated reflection framework with JSON serializer and support for runtime components
Unit annotations for components
Powerful query language with support for joins and inheritance
Statistics addon for profiling ECS performance
A web-based UI for monitoring & controlling your apps:
To support the project, give it a star 🌟 !
What is an Entity Component System?
ECS is a way of organizing code and data that lets you build games that are larger, more complex and are easier to extend. Something is called an ECS when it:
Has entities that uniquely identify objects in a game
Has components which are datatypes that can be added to entities
Has systems which are functions that run for all entities matching a component query
struct Position {
float x, y;
};
struct Velocity {
float x, y;
};
int main(int argc, char *argv[]) {
flecs::world ecs;
ecs.system<Position, const Velocity>()
.each([](Position& p, const Velocity& v) {
p.x += v.x;
p.y += v.y;
});
auto e = ecs.entity()
.insert([](Position& p, Velocity& v) {
p = {10, 20};
v = {1, 2};
});
while (ecs.progress()) { }
}
Projects using Flecs
If you have a project you'd like to share, let me know on Discord!
Tempest Rising
Territory Control 2
Polyzonia
Resistance is Brutal
Appulse
Rescue Ops: Wildfire
Age of Respair
FEAST
Gloam Vault
Antimatcher
Writ of Battle
Extermination Shock
The Forge
ECS survivors
8402
Tome Tumble Tournament
Sol Survivor
After Sun
Flecs Hub
Flecs Hub is a collection of repositories that show how Flecs can be used to build game systems like input handling, hierarchical transforms and rendering.
Module
Description
flecs.components.cglm
Component registration for cglm (math) types
flecs.components.input
Components that describe keyboard and mouse input
flecs.components.transform
Components that describe position, rotation and scale
flecs.components.physics
Components that describe physics and movement
flecs.components.geometry
Components that describe geometry
flecs.components.graphics
Components used for computer graphics
flecs.components.gui
Components used to describe GUI components
flecs.systems.transform
Hierarchical transforms for scene graphs
flecs.systems.physics
Systems for moving objects and collision detection
flecs.systems.sokol
Sokol-based renderer
flecs.game
Generic game systems, like a camera controller
Language bindings
The following language bindings have been developed with Flecs! Note that these are projects built and maintained by helpful community members, and may not always be up to date with the latest commit from master!
The most recent commit recorded on SanderMertens/flecs was 8 days ago, based on the GitHub push timestamp. The repository has 632 forks — one of the better signals of community interest.
How many stars does SanderMertens/flecs have?
SanderMertens/flecs has 8.8k GitHub stars — refresh the page for the live number, or check github.com/SanderMertens/flecs. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is SanderMertens/flecs open source?
TopGit's metadata for SanderMertens/flecs does not record a license. Most public repositories on GitHub ARE open source, but the exact terms vary — verify by opening the LICENSE file directly.
What is SanderMertens/flecs?
SanderMertens/flecs (SanderMertens/flecs) is a C project on GitHub. From the project's own README: A fast entity component system (ECS) for C & C++
What language is SanderMertens/flecs written in?
SanderMertens/flecs is written primarily in C. GitHub's language field is based on the largest share of bytes in the default branch.
Where do I read more about SanderMertens/flecs?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/SanderMertens/flecs is the definitive source.
Read full README in the tab above.
Want a second opinion on flecs?
Ask an AI that can read this page — one click and you get its take on flecs.