Sandboxed image decoder
Native parsing without general file access. A Qt decoder runs in a separate Easybox process. The host supplies one read-only file and accepts a validated framebuffer in return.
These examples show complete host-and-worker programs, not isolated API fragments. Each one states the resources a component receives, the operations the host mediates, and the result that the test verifies.
Start with the image decoder, then explore dynamic network mediation, minimal pipe capabilities, and ordinary subprocess orchestration.
Native parsing without general file access. A Qt decoder runs in a separate Easybox process. The host supplies one read-only file and accepts a validated framebuffer in return.
Policy follows application intent. A supervisor permits resolution of localhost and a connection to the resulting loopback address and selected port. A request for example.com:80 is rejected.
Two capabilities are enough. A plugin lowercases text received on one pipe and writes the result to another. Its Lua source is explicitly packaged without giving it the host filesystem.
Processes and fibers share one program. GPG encrypts and decrypts an in-memory message through pipes. The host uses concurrent fibers for streaming and asserts the round-trip result.
The source tree pins the Emilua tools with mise. Run mise run verify for all noninteractive examples and the image decoder’s positive and negative tests.
The approach was previously demonstrated in the July 2025 talk Emilua Demo: Actor Model and Sandboxes. The programs on this site are newly written and independently verified rather than copies presented as current without testing.