Skip to main content

Runtime overview

The browser runtime is delivered as an Emscripten UMD bundle (flora.js) plus a WASM binary (flora.wasm). The bundle exposes a global createFloraModule function, which resolves to a Flora module instance with:

  • ccall for calling exported native functions.
  • FS for interacting with the in-memory filesystem (MEMFS).
  • wasmMemory and typed views (HEAPU8, HEAP32, HEAPF32, HEAPU32) to read output buffers.
  • UTF8ToString to decode text outputs from pointers.

Next: Download the required libraries