{"id":61063,"library":"flecs","title":"Flecs","description":"A fast entity component system (ECS) for C & C++","status":"active","version":"4.1.4","language":"cpp","source_language":null,"source_url":null,"tags":["ecs","game-development","entity","component"],"install":[{"cmd":"vcpkg install flecs","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(flecs CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE flecs::flecs)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"flecs.h","correct":"#include <flecs.h>"}],"quickstart":{"code":"#include <flecs.h>\n#include <iostream>\n\nstruct Position { float x, y; };\nstruct Velocity { float x, y; };\n\nint main() {\n    flecs::world ecs;\n    ecs.system<Position, const Velocity>()\n        .each([](flecs::entity e, Position& p, const Velocity& v) {\n            p.x += v.x;\n            p.y += v.y;\n        });\n    auto e = ecs.entity()\n        .set<Position>({0, 0})\n        .set<Velocity>({1, 1});\n    ecs.progress();\n    const Position* p = e.get<Position>();\n    std::cout << p->x << \", \" << p->y << std::endl;\n    return 0;\n}","lang":"cpp","description":"Create an ECS world with a movement system"},"warnings":[],"env_vars":null,"search_vec":"'c':9,10 'compon':5,16 'develop':14 'ec':7,11 'entiti':4,15 'fast':3 'flec':1 'game':13 'game-develop':12 'system':6","created_at":"2026-06-17T04:37:18.496353+00:00","updated_at":"2026-06-17T04:37:18.496353+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}