How wago-org/wago works
Wago is a pure-Go WebAssembly runtime that compiles Wasm to native code, exposed as both an embeddable Go API and a CLI. The CLI’s principal path is a user invoking wago to run a module; the manager dispatches runtime commands, and the runtime executes the module through the engine. Separate capabilities include project/plugin management, standalone compilation, profiling, and installation. The graph combines README-documented product flows with the sampled runtime, manager, installer, and profiling modules; unsampled internals are represented only at supported directory level.
Main entry points: wago.go Go Embedding API · plugin Project and Plugin Commands · runtime/main.go Runtime CLI · manager/main.go Manager CLI
Components 19
CLI and Install
- Manager CLI
cli/manager/main.go - Runtime CLI
cli/runtime/main.go - Installer
cli/installer/main.go
Wasm Runtime
- Native Wasm Engine
src/core/runtime/engine.go - Bounded Host Calls
src/core/runtime/engine_hostbounded.go - Guest Storage API
src/wago/guest_storage.go - Guest GC Allocation
src/wago/guest_storage_alloc.go - Go Embedding API
wago.go - Standalone Builds
cli/standalone
Plugins and Projects
- Project and Plugin Commands
cli/manager/commands/plugin - Plugin Review
cli/manager/internal/plugin/review.go - Plugin Registry Client
cli/manager/internal/registry/client.go
Profiling
- Workload Capture
internal/profcapture/capture.go - Profile Data
profile/samples.go - Profile Commands
internal/profilecmd/main.go
Release Management
- Managed Releases
internal/managedrelease/release.go
Other components
- User
- Go Application
- Release Service
Connections 19
- User → Manager CLI: runs commands
cli/manager/main.go - Manager CLI → Runtime CLI: dispatches runtime
cli/manager/main.go - User → Runtime CLI: runs modules
- Runtime CLI → Native Wasm Engine: executes Wasm
- Go Application → Go Embedding API: embeds runtime
- Go Embedding API → Native Wasm Engine: compiles and runs
- Go Embedding API → Bounded Host Calls: dispatches host calls
- Go Embedding API → Guest Storage API: borrows guest state
src/wago/guest_storage.go - Go Embedding API → Guest GC Allocation: allocates GC arrays
src/wago/guest_storage_alloc.go - User → Project and Plugin Commands: manages plugins
- Project and Plugin Commands → Plugin Review: reviews changes
- Project and Plugin Commands → Plugin Registry Client: uses registry
- User → Standalone Builds: builds executable
- User → Profile Commands: profiles workloads
internal/profilecmd/main.go - Profile Commands → Workload Capture: starts capture
internal/profilecmd/main.go - Workload Capture → Profile Data: exports profile data
internal/profcapture/capture.go - User → Installer: installs Wago
- Installer → Managed Releases: dispatches release
cli/installer/main.go - Managed Releases → Release Service: downloads releases