workflow/runtime
The workflow/runtime package provides low-level access to the workflow runtime. Use it to resolve the World instance that backs storage, queuing, and streaming or to wire up workflow infrastructure in custom server environments.
Functions
getWorld()
Async: resolve the World instance for storage, queuing, and streaming backends.
World SDK
Low-level API for inspecting runs, steps, events, hooks, streams, and queues, plus metadata-only analytics with attribute search.
Infrastructure functions
These functions are primarily used by framework adapters and custom world setups, and are rarely needed in application code:
createWorld()
Create a World instance from environment configuration.
setWorld()
Override the cached World instance with a custom World.
getWorldHandlers()
Build-time-safe access to the World's queue handlers.
workflowEntrypoint()
Create the HTTP route handler that executes workflow runs.
healthCheck()
Check the health of a deployment's workflow infrastructure.