Every claim needs a runnable example.

The source tree pins Emilua and its plugins with mise. The plugins compile those components from their official release tags. Native prerequisites—especially Boost, Qt, and the compiler—come from your system or an isolated native package environment.

Verified tool combination

ComponentVersionRole
Emilua0.12.2Runtime, actor, process, and I/O APIs
Boost1.92.0Current Boost.Asio and support libraries
Easybox0.1.5Privilege dropping for subprocess actors
Emilua Qt binding1.2.3Qt Quick and sandbox-safe image result transfer
Qt6.5.3QML UI and native image decoding

Verification targets Linux on x86-64. The image helpers are unavailable on Windows. Do not infer support for another platform or architecture merely from this table.

Native prerequisites

Install a current C++ toolchain and the development packages required by Emilua and the selected plugins. The important requirements include:

Use current operating-system headers as well as current libraries. Older distribution sysroots may lack declarations for newer Linux mount APIs; that is a toolchain issue, not something the examples should patch around.

Install the pinned Emilua tools

Run these commands from the website source root. The included mise.toml declares the plugin repositories and versions.

mise install
mise exec -- emilua --version

The version output should identify Emilua 0.12.2 and Boost 1.92.0.

Run the demonstrations

mise run demo:pipe
mise run demo:network
mise run demo:gpg
mise run build:image
mise run demo:image

demo:image opens the Qt file dialog. The network example binds the first available loopback port in 8080–8090. The GPG example creates and removes a temporary GPG home.

Run every noninteractive check

mise run verify

This task runs the pipe, network, and GPG examples, builds the image decoder, and invokes its Meson tests. The tests decode assets/emilua.png in a separate process and reject a Lua source file presented as an image.

The image tests use Qt’s offscreen platform, so no desktop session is needed.

Source map

ExampleTrusted hostSandboxed or child code
Image decoderimage_decoder/src/init.luadecoder.lua
Network policynetwork_policy/init.luaplugin.lua
Pipe pluginpipe_plugin/init.luaplugin.lua
GPG subprocessgpg_subprocess/init.lua

Shared source loading and EOF handling live in examples/common/init.lua. The image demo’s native build is defined in meson.build.

Security boundary

These programs demonstrate mechanisms and policy structure. They are not a security audit of Emilua, Easybox, Kafel, Qt, or the example policies. Review the exact sandbox rules and current upstream limitations before adapting them to production.

← DemonstrationsStart the flagship case study →