How miroslavskycoder/xer works
XER is a C++/V8 runtime for running JavaScript-driven project flows, with an in-process native compilation path and multimedia/GPU integrations. The main workflow is a user launching a project through EngineBuilder, runtime configuration and JavaScript execution, then optional dynamic compilation or native multimedia work. The README also describes audio loading and DSP capabilities. Several subsystems are documented but their runtime wiring is not shown in the sampled source, so those links are omitted or marked unverified.
Main entry points: main.cc EngineBuilder · src Importable modules · audio_engine.cc Audio engine · v8_engine.cc V8 runtime
Components 21
Runtime execution
- EngineBuilder
src/main.cc - Runtime parameters
src/engine_params.h - V8 runtime
src/v8/v8_engine.cc - JS event pipeline
src/javascript/pipeline/pipeline_executor.cc
Compilation
- RuntimeLive compiler
src/compilerapi/runtime_live_core.cc - Compiler API
src/compilerapi/compiler_api.cc
I/O and modules
- Importable modules
src - Async I/O
src/async_io - Cache storage
src/cache/persistent_storage.cc
Media processing
- Audio source loader
src/audio/audio_core/audio_source_loader.cc - Audio engine
src/audio/audio_core/audio_engine.cc - Audio effects and DSP
src/audio/effects_rack/custom_effect_eq_engine.cc - FFmpeg bridge
src/wrapper/ffmpeg/ffmpeg_engine_bridge.cc - Skia bridge
src/wrapper/skia/skia_engine_bridge.cc - Image effects
src/image/effects/vfx/vfx_engine.cc - Video compositor
src/video/compositing_engine.cc - GPU bridges
src/wrapper/cuda/cuda_engine_bridge.cc
AI capabilities
- Stable Diffusion pipeline
src/content/ai/sd_base/generate/sd_pipeline.cc - Model training
src/content/ai/models_builder/training_core/train_engine.cc - ML data pipeline
src/content/ai/reader/core_loaders/reader_pipeline.cc
Other components
- Project user
Connections 16
- Project user → EngineBuilder: runs project
- EngineBuilder → V8 runtime: executes JavaScript
- EngineBuilder → Runtime parameters: configures runtime
- V8 runtime → Runtime parameters: reads settings
src/v8/v8_engine.cc - EngineBuilder → RuntimeLive compiler: compiles native code
- RuntimeLive compiler → Compiler API: uses compiler API
- JS event pipeline → Importable modules: publishes events
src/javascript/pipeline/pipeline_executor.cc - Importable modules → Async I/O: uses async I/O
src/async_io/dnn_backends/cudnn_convolution_engine.cc - Importable modules → Cache storage: uses cache
src/cache/persistent_storage.cc - Audio source loader → FFmpeg bridge: decodes audio
- Audio engine → Audio effects and DSP: processes audio
- Audio engine → Async I/O: uses async I/O
- Image effects → Skia bridge: applies filters
src/image/effects/vfx/vfx_engine.cc - Video compositor → Skia bridge: composites layers
src/video/compositing_engine.cc - Stable Diffusion pipeline → GPU bridges: dispatches GPU work
- Model training → ML data pipeline: uses training data