Skip to content

wippyai/wasm-runtime

Repository files navigation

wasm-runtime

Pure Go WebAssembly Component Model runtime.

Features

  • Component Model with WIT type system and canonical ABI
  • WASI Preview 2 (filesystem, sockets, HTTP, clocks, random, CLI)
  • Pure Go asyncify transform for async host calls
  • WAT text format compiler (no external tools)
  • Built on wazero (zero dependencies runtime)

Usage

rt := runtime.New()
defer rt.Close(ctx)

mod, err := rt.LoadComponent(ctx, wasmBytes)
inst, err := mod.Instantiate(ctx)
defer inst.Close(ctx)

result, err := inst.Call(ctx, "greet", "World")

License

See LICENSE.


This component has been AI generated.

About

WASM Component runner

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages