API Reference kettlecorn v#0.1.0

Copy Markdown View Source

Modules

Run untrusted Elixir and Erlang code on the server inside a WebAssembly sandbox.

Packages a compiled Mix application and its dependencies for the guest.

A strict decoder for terms produced by the (untrusted) guest VM.

Installs the native runtime for this platform from a GitHub release.

A guest reference or port. Carries no usable data on the host.

A process inside a guest VM.

Finds a platform runtime containing the native launcher, WebAssembly emulators and guest file system.

A runtime's manifest.json, as Kettlecorn.Runtime.load/1 reads it for a runtime with this library's protocol version.

Validated VM options: limits, grants, guest code and runtime. Kettlecorn.Sandbox.Instance creates the VM's private directory and its launcher command line.

One VM's private directory, and the launcher command line that runs the VM on it.

A guest struct represented as data: its module and fields.

One sandboxed BEAM instance running in Wasmtime.

Mix Tasks

Compiles the current project and packages it, with its dependencies, for the guest (see Kettlecorn.Cook).

Evaluates Elixir code, or Erlang with --erlang, in a fresh sandboxed VM and prints the result.

Downloads and verifies the platform-specific runtime for this library version, including its native launcher. Python and a separate Wasmtime installation are not required.

Runs the installed runtime's kettlecorn-run with the supplied arguments.