/ Advanced / Diverse Plugins / MoonBit Modules

In Site mode, Steps, Preprocessors, and Transformers can be authored directly as native MoonBit libraries published to mooncakes.

CharacteristicMoonBit Native ModulesExternal CLI Plugins
ApplicabilitySite modeBook mode and Site mode
LanguageMoonBitAny language (Python, Node, Rust, etc.)
ExecutionIn-process native callsSubprocess stdin/stdout via JSON
PerformanceZero serialization overheadSubprocess spawning and JSON parsing
Error HandlingNative MoonBit raiseExit codes and stderr messages

Export composable functions with the Step signature:

pub fn use_callout_boxes(item : Item[String]) -> Item[String] raise {
  item.map_with_raise(text => {
    // Custom string transformation
    text
  })
}

Consumers install via moon add and plug the step into their site.mbtx pipeline using |>.