or3-workflow-vue

Vue 3 components for visual workflow editing with drag-and-drop canvas
1,736
Install
npm install or3-workflow-vue
Latest Version:0.1.6
Vue:3
License:MIT
Last Updated:Sep 13, 2026
Links: GitHub  ·  npm
Maintainer: saluana

or3-workflow-vue

Vue 3 components for visual workflow editing with drag-and-drop canvas. Build AI agent pipelines with an intuitive visual interface.

Installation

bun add or3-workflow-vue or3-workflow-core
# or
npm install or3-workflow-vue or3-workflow-core

Quick Start

<script setup lang="ts">
import { ref } from 'vue';
import {
    WorkflowCanvas,
    NodePalette,
    NodeInspector,
    useWorkflowEditor,
} from 'or3-workflow-vue';
import 'or3-workflow-vue/style.css';

// Create the editor instance
const editor = useWorkflowEditor();

// Load a workflow
editor.value?.load({
    meta: { version: '2.0.0', name: 'My Workflow' },
    nodes: [
        {
            id: 'start',
            type: 'start',
            position: { x: 100, y: 100 },
            data: { label: 'Start' },
        },
        {
            id: 'agent',
            type: 'agent',
            position: { x: 100, y: 250 },
            data: {
                label: 'Assistant',
                model: 'openai/gpt-4o',
                prompt: 'You are a helpful assistant.',
            },
        },
    ],
    edges: [{ id: 'e1', source: 'start', target: 'agent' }],
});
</script>

<template>
    <div class="workflow-app">
        <NodePalette />
        <WorkflowCanvas :editor="editor" />
        <NodeInspector :editor="editor" />
    </div>
</template>

<style>
.workflow-app {
    display: flex;
    height: 100vh;
}
</style>

Components

WorkflowCanvas

The main canvas component for displaying and editing workflows.

<WorkflowCanvas
    :editor="editor"
    @node-click="handleNodeClick"
    @edge-click="handleEdgeClick"
/>

NodePalette

Draggable palette of available node types.

<NodePalette />

NodeInspector

Property inspector for the selected node.

<NodeInspector :editor="editor" />

ValidationOverlay

Displays validation errors on the canvas.

<ValidationOverlay :editor="editor" />

Composables

useWorkflowEditor

Creates and manages the workflow editor instance.

import { useWorkflowEditor } from 'or3-workflow-vue';

const editor = useWorkflowEditor();

// Access the editor
editor.value?.load(workflowData);
editor.value?.addNode({ type: 'agent', position: { x: 200, y: 200 } });

useWorkflowExecution

Manages workflow execution state.

import { useWorkflowExecution } from 'or3-workflow-vue';

const { execute, isRunning, result, error } = useWorkflowExecution(editor);

await execute({
    input: 'Hello',
    apiKey: 'your-api-key',
});

useWorkflowStorage

Handles saving and loading workflows.

import { useWorkflowStorage } from 'or3-workflow-vue';

const { save, load, list, remove } = useWorkflowStorage();

await save(editor.value?.export());
const workflows = await list();

Styling

Import the required styles in your app:

// Required: workflow component styles
import 'or3-workflow-vue/style.css';

// Required: Vue Flow base styles
import '@vue-flow/core/dist/style.css';
import '@vue-flow/core/dist/theme-default.css';

Peer Dependencies

  • vue ^3.4.0
  • or3-workflow-core ^0.1.0

Related Packages

License

MIT

Related Packages

@docyai/agent-kit

Visual AI agent orchestration kit for Vue 3: a flow-editor canvas plus ready-mad...

498
thinking-orbs-vue3

Vue 3 port of the dotted thought-orb loading indicators for AI and agent UIs

1,087
@tnzi/ui-ai

Tnzi AI components - chat, agent visualization, and workflow builder for AI-powe...

371 1
vue-agent-fx

Vue 3 port of Libraries.dev: thinking orbs, border beam, voice glow and image lo...

209 0
gimc-ai-agent

GIMC 智能客服(Vue3版)

4,456

Version History

Version Released Vue License
0.1.6 ^3.4.0 MIT
0.1.5 ^3.4.0 MIT
0.1.4 ^3.4.0 MIT
0.1.3 ^3.4.0 MIT
0.1.2 ^3.4.0 MIT