Infinite Canvas Guide

Wire your installed generation plugins, automation actions, and canvas-only nodes into one runnable workflow graph: drop nodes, wire ports, validate, run — previews light up the moment an upstream node finishes. A workflow is just a shareable JSON: if it drags onto a canvas, it reproduces on someone else's machine.

What the Infinite Canvas is

Infinite Canvas is VideoFree Studio’s application-level orchestrator: the image, video, speech, and post-production capabilities and actions you already use in the workspace can be dropped onto a canvas, wired into a graph, saved as a shareable JSON, and executed along the dependency graph. It targets stable product capabilities — it never exposes raw ComfyUI node IDs or model paths.

Three common misconceptions, settled first:

  • The canvas itself is a plugin app (infinite-canvas, shipped with the release, compatible with VideoFree Studio 2.0.1 through 2.x), not a built-in framework feature. Removing it leaves every generation capability intact.
  • It does not parse ComfyUI workflows, and it never modifies or imports other plugins’ code — it adapts existing capabilities and actions into nodes.
  • Execution currently follows the forward dependency graph sequentially: no parallel scheduling, real-time collaboration, or multi-ComfyUI dispatch.

Opening the canvas

  1. Start VideoFree Studio and open the Infinite Canvas app in the workspace.
  2. The left node panel has five groups, all collapsed by default, with search and drag-and-drop:
    • Basic nodes: grouped into inputs (text, number, boolean, JSON), media (image/video/audio loaders), data, flow control (LLM condition, count control), and output & preview (image/video/audio/data preview);
    • Agent nodes: one generic agent node whose behavior comes from its skill and role;
    • Generation plugins: every capability from your installed generation plugins appears automatically;
    • Post-processing plugins: resource-scoped actions (scope: resource) from post-processing plugins;
    • Canvas extensions: canvas-only node packages installed under plugins/canvas-nodes/; empty until you install one, and that never affects the other groups.
  3. Application plugins, project tools, and workspace-scoped business actions are deliberately excluded from the canvas — a design boundary, not a missing feature.
A newly installed or updated generation plugin needs zero canvas adapter code: restart the gateway and it appears under Generation plugins automatically.

Your first workflow

The fastest path is the bundled examples. In plugins/infinite-canvas/work/examples/ there are three complete, importable workflows: text-to-preview, JSON-to-preview, and condition-preview. Drag a single .json file onto the canvas — it creates a new browser draft without overwriting the current workflow.

Or build one by hand:

  1. Click “+” in the tab bar to create a draft.
  2. Drag a text input from Basic nodes → Inputs and type into the card — node cards show every declared parameter in full; there is no “more parameters” fold.
  3. Drag a data preview from Output & Preview.
  4. Drag from the text node’s output port to the preview’s input port: while dragging, compatible inputs glow green and incompatible ones red; releasing over empty space tells you so.
  5. Click Validate, then Run if nothing is red.

While running, a preview node reads its result the instant the upstream node completes — it does not wait for unrelated branches or the whole workflow.

Canvas operations

  • Pan / zoom: drag empty canvas to pan; wheel to zoom, or use the minus / plus buttons and the directly editable percentage box in the bottom-right (25%–200%, kept in sync with “fit canvas”).
  • Drop media straight in: dragging image, video, or audio files from your computer uploads them through the gateway and archives them into the current project library; nodes store project-relative asset handles, never browser temp paths. Only one workflow JSON per drop, never mixed with media files.
  • Project assets: the top Project assets button opens the framework resource picker; “Reference” in the asset manager adds an asset input node directly on the canvas.
  • Drafts: unsaved workflows and local edits to saved ones are staged per project in the browser (last 12 kept). Switching tabs needs no confirmation; the name is only requested on the first Save, which then writes into the project.
  • Top bar: save, JSON import/export, validate, run, stop — one row.

Ports and connections

Connections are decided by port declarations, never by guessing from node names. Fourteen port types exist: text, number, integer, boolean, json, upload, asset, image, video, audio, music, media, project, category.

  • Output ports connect to input ports only, and one port pair cannot be connected twice.
  • When an input declares accepts, source types must match it exactly; otherwise same-type and media/audio compatibility rules apply. Incompatible connections are rejected as you create them.
  • cardinality: one inputs keep a single incoming edge; many inputs assemble an array in connection order and check min_items / max_items.
  • No implicit type conversion. Text-to-JSON or field extraction requires an explicit conversion node.
  • Bad edges inside an imported JSON are not silently kept — pre-run validation rejects them and lists the problems.

Pre-run validation checks node/edge IDs, ports, types, semantics, item counts, required values, project asset ownership, capability availability, and JSON Schema parameter constraints. Failures open a clickable problem panel on the right; the offending node, port, or edge turns red, and clicking a problem jumps to it.

The generic agent node

The canvas exposes exactly one agent node; its behavior comes from skill + role & task:

  • Skills are chosen from the plugin’s nodes/agent/skills/. Bundled today: general task (turn inputs into text and structured results that flow onward) and visual review (a QC report on subject, composition, motion, continuity, defects, and text errors in generated media).
  • One Role & task text box states who the agent is and what it should do — no duplicate instruction/context/system-role fields.
  • LLM source, choose one: the platform system LLM by default (the UI then shows only skill, source, and the one text box; temperature, token caps, timeouts, and repair strategies are plugin presets), or custom API, which reveals an OpenAI-compatible URL, API key, and model name.
  • The agent exposes only text and structured results to the canvas. Images, video, and audio are read safely from current-project asset handles — at most 8 items and 20 MB total media; a missing or unsupported asset fails loudly, never silently.
By design, a custom API key is stored verbatim in the browser draft, the saved project workflow, and exported JSON (the input field is visually masked only). Treat workflow files like secret files, and strip keys before sharing publicly.

LLM condition and automatic retries

The LLM condition node takes two separate inputs: the original artifact (any type) and the judgment text (e.g. the review report’s conclusion). Judging always uses the system LLM; internally it emits only 0/1 with one format-repair attempt, while the UI shows just success/failure.

  • The success port passes the original artifact through with its type unchanged — image, video, audio, job, or JSON keeps flowing to matching downstream nodes; the judgment text never replaces the artifact.
  • The failure port can loop back (orange dashed edge) to any redo target, forming a review-and-retry cycle. Without a count control it retries until success or you click Stop — the plugin sets no hidden cap.
  • For a bound, wire the count control: failure → its trigger, continue → back to the redo target, end → forward to a preview, notification, or other failure handler. The max loop count counts retries only (not the first execution) and is stored explicitly in the workflow JSON.

Execution, failure, and stop

  • Data edges execute in topological order. Each node validates its resolved dynamic inputs before executing and verifies that every output used downstream exists with the right type afterwards.
  • On failure, scheduling stops: the node turns red, downstream nodes are marked skipped, and all completed results are kept for diagnosis. Re-running starts from the beginning.
  • Stop blocks further scheduling but cannot interrupt a single task already submitted to the model; the UI clearly shows it waiting for the current node.
  • Capability nodes always use prompt_processing: direct: finish director-style collaboration before entering the canvas — a run never pauses in an interactive Q&A state.
  • Size limits: at most 500 nodes, 2000 edges, and 2 MB of JSON per workflow.

Workflow JSON and sharing

The canonical carrier is a plain JSON document holding only stable IDs, port values, and coordinates — no translated strings, absolute paths, or run results:

{
  "schema_version": 1,
  "kind": "videofree.infinite-canvas",
  "id": "workflow-example1",
  "name": "Example workflow",
  "nodes": [{
    "id": "node-example1",
    "type": "videofree.capability.image.example.generate",
    "position": { "x": 120, "y": 160 },
    "config": {},
    "values": {}
  }],
  "edges": [{
    "id": "edge-example1",
    "kind": "data",
    "from": { "node": "node-example1", "port": "output" },
    "to": { "node": "node-example2", "port": "input" }
  }],
  "viewport": { "x": 0, "y": 0, "zoom": 1 }
}

Node type prefixes are stable: videofree.capability.<capability-id> (plugin capabilities), videofree.action.<action-id> (plugin actions), canvas.<package-id>.<node-id> (canvas-only nodes), videofree.agent.generic, and videofree.control.llm-condition / videofree.control.count.

  • Drag a single JSON onto the canvas to import it: schema, node/edge IDs, references, counts, and viewport are checked first, and a fresh workflow ID is assigned — your current workflow is never overwritten.
  • Workflows referencing missing plugins still load for viewing, but validation and execution stop with the missing nodes listed until those plugins are installed.
  • Save conflicts use optimistic concurrency (revision): if someone updated first, your browser draft is kept and you reload.
  • Saved workflows live in per-project runtime plugin data, never written back into the plugin source directory.
  • Exported JSON may contain a custom API key — remove it manually before sharing.

Acceptance checklist

After installing the canvas, confirm things work in this order:

  1. GET /api/v2/plugins lists the infinite-canvas app;
  2. GET /api/v2/capabilities?operation=generate and operation=postprocess return your installed plugins’ capabilities;
  3. The left panel’s Generation plugins / Post-processing plugins groups have content — Canvas extensions being empty is normal (no extension package installed);
  4. Drop in work/examples/01-text-to-preview.json — it validates and runs to a data preview;
  5. Save → export JSON → re-import: the workflow reproduces.

To turn your own condition logic, resource reads, or data transforms into canvas nodes, continue to the next guide, Canvas Node Development.