Skip to main content

Plugin API

Extensible Plugin System for Trinity.

Module: src/vibeec/plugin/

Plugin Types​

TypeLoadingUse Case
comptime_import@importCore
wasm_runtimeWASMCommunity
native_ffi.so/.dylibPerformance

Creating a Plugin​

  1. Create plugin.vibee specification
  2. Implement required exports
  3. Build to WASM

Loading Plugins​

var loader = PluginLoader.init(allocator, &registry, .{});
const result = try loader.loadFromPath("plugin.wasm");

CLI Commands​

vibee plugin list          # List installed
vibee plugin install <url> # Install
vibee plugin init <name> # Create new