World
SafiApp already creates a world for you — most apps only need safi_app_world(). Use safi_ecs_create directly when you want to build a headless world (tests, tooling).
Functions
safi_ecs_create
Calls ecs_init() and registers every stock SafiEngine component (SafiTransform, SafiCamera, SafiMeshRenderer, SafiName, SafiSpin, SafiTime, SafiInput). The returned pointer is owned by the caller.
safi_ecs_destroy
Frees everything. Safe to call with NULL.
SAFI_COMPONENT
Readability alias — use this in application code so it's obvious you're registering a SafiEngine component rather than a raw flecs one.