Skip to content

bext-stack/bext-plugin-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bext-plugin-wasm

WASM plugin runtime for bext — wasmtime-based sandboxed host for untrusted plugin code.

Part of the bext stack.

[dependencies]
bext-plugin-wasm = "0.2"

What this crate is

bext-plugin-wasm is one of three sandbox hosts for bext-plugin-api. It runs plugins compiled to WebAssembly inside a wasmtime sandbox, with fuel budgets for CPU limits, memory caps, and a set of curated host functions.

Features

  • wasmtime runtime, memory-safe, no JIT escape.
  • Fuel budgets — bound per-request CPU time in instruction counts.
  • Host functions — KV store, durable queue, HTTP fetch (behind feature flag), signing, hashing.
  • Module caching — compile once per plugin, reuse across requests.

Feature flags

[dependencies]
bext-plugin-wasm = { version = "0.2", features = ["wasmtime-runtime", "http-client"] }
  • wasmtime-runtime — enable the full wasmtime engine (default off, because wasmtime is a heavy dep)
  • http-client — enable the http-fetch host function (ureq-based)

License

MIT.

See also

About

WASM plugin runtime for bext — mirror of crates/bext-plugin-wasm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages