Functions
Write TypeScript that OmniLab compiles to WebAssembly and runs in a sandbox, either after an event or inside a business decision.
1 min read
Create a function, wire it to an event or a hook, then monitor it.
FunctionsAbout functionsThe two kinds, the lifecycle, and when to use a webhook.FunctionsCreate and build a functionCreate it, save a draft, and compile it to a running version.FunctionsPlatform event functionsReact after something happens, such as a reward won.FunctionsHook functionsRun inside an operation and decide whether it continues.FunctionsConfigure runtime and secretsTimeouts, memory, allowed hosts, config keys and secret bundles.FunctionsTest and monitor functionsRun test invocations, read the execution log, and diagnose failures.FunctionsFunction SDK referenceHandler exports, input and output shapes, SDK calls, hook contracts, error codes and every limit.