Skip to content

Liatir API bridge

The Liatir object passed to .main(...) is the Node plugin bridge. It connects the plugin process to the running Liatir desktop app through local IPC.

Python plugins get the same bridge on their handler context as ctx.liatir, using snake_case method names (e.g. ctx.liatir.jobs.list(), ctx.liatir.deps.check(...), ctx.liatir.invoke(...)). It covers the same areas below except the typed bio helpers (align/qc/variants), which Python reaches through ctx.liatir.invoke. WASM plugins are sandboxed and do not have API bridge access.

Available areas

AreaUse it for
JobsSpawn, wait for, stream, and inspect Liatir jobs.
DepsCheck whether command-line binaries are available.
Desktop fsScoped Liatir storage.
Desktop app infoApp and OS information.
Invoke methodLow-level IPC escape hatch.