@kortyx/runtime
v0.10.3
Published
Runtime/orchestration wiring for Kortyx.
Maintainers
Readme
@kortyx/runtime
Graph execution, node registries, workflow registries, framework adapters, and runtime persistence for Kortyx.
Most application code should import these APIs from kortyx. Use @kortyx/runtime directly when you are wiring custom infrastructure or framework adapters.
Install
pnpm add @kortyx/runtimenpm install @kortyx/runtimeKey APIs
createInMemoryWorkflowRegistry(...)createFileWorkflowRegistry(...)registerNode(...)getRegisteredNode(...)createInMemoryFrameworkAdapter(...)createRedisFrameworkAdapter(...)createFrameworkAdapterFromEnv(...)
Persistence
Runtime persistence stores framework execution state such as pending interrupts and resume tokens. Business data should remain owned by your application.
import { createRedisFrameworkAdapter } from "@kortyx/runtime";
export const framework = createRedisFrameworkAdapter({
url: process.env.KORTYX_REDIS_URL,
});Documentation
License
Apache-2.0. See LICENSE.
