ECS internals
Registry internals
How the C++ ECS registry is exposed to JavaScript through WebAssembly
This page is for contributors to the engine. To use the ECS in a game, see ECS.
The registry class is written in C++ and exposed to WebAssembly using Emscripten. That choice keeps the performance benefits of C++ for entity and component management while still making the code available to web applications.