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

Use functions when OmniLab needs to run your logic rather than call out to your systems. You write a single TypeScript file, OmniLab compiles it to WebAssembly, and the platform runs it in a sandbox.

There are two kinds, and the difference is when they run:

Functions run inside OmniLab, webhooks call out to you

A webhook tells your infrastructure that something happened and waits for nothing. A function runs on OmniLab's infrastructure and, for one kind, can change the outcome of the operation that triggered it. If you only need a notification, use webhooks — they are simpler to operate.

Everything else

On this page