- TypeScript 67.6%
- JavaScript 32.3%
| apps | ||
| docs | ||
| packages/contracts | ||
| .gitignore | ||
| AGENTS.md | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.base.json | ||
AI Video Studio
Automatic generation now supports validated shot planning, existing-node workflow setup, optional visual review with bounded corrections, representative previews, assembled silent films, and configurable OpenAI-compatible text APIs (including DeepSeek-compatible reasoning). Start with Settings → Generation, then Set up video workflow in an empty project. All node controls remain adjustable.
See Generation system for setup, API options, defaults, architecture, compatibility, diagnostics, and honest quality limits. This is also the starting reference for future generation-system work.
Minimal Electron + React + Vite + Material UI foundation, using strict TypeScript and npm workspaces.
Run
Requires Node.js 22.16 or newer and npm 10 or newer.
npm install
npm run dev
Development starts Vite on 127.0.0.1:5178, waits for it, and opens Electron. Renderer edits update through Vite. After changing Electron main/preload or shared contracts, stop and restart npm run dev to rebuild them. Stop development with Ctrl+C.
npm run build
npm start
This opens the production build in Electron. It does not create an installer.
Structure
apps/desktop: Node.js/Electron main process and sandboxed preload. This is the initial backend; there is no separate HTTP server.apps/web: React renderer, Material UI theme, and Vite configuration. No renderer Node.js access.packages/contracts: shared public types and runtime validation for the small desktop API.
The renderer reads application metadata and a local system inventory through specific typed preload methods. Main validates the sender and arguments; the renderer validates the result. Browser-only preview clearly identifies unavailable desktop features.
Model file management, API text model configuration, and project management are implemented. Text, storyboard and supported local video inference are integrated into project workflows. Application packaging is not implemented yet. Future AI integrations must support local and remote provider boundaries as described in AGENTS.md.
Projects
Projects supports creating, editing, and deleting projects with a required title (up to 120 characters) and an icon. Choose from a searchable selection of existing MUI icons or use Randomize. Delete requires confirmation. Projects are metadata only; they do not open a workspace or run AI operations yet.
Project records persist in <repository>/data/projects.json using serialized atomic writes. Keep this file with the app when moving it. Invalid saved data causes a startup error rather than being silently replaced. Titles and icon identifiers are validated in the main process and project lists are checked by the renderer.
Validate
npm run typecheck
npm test
npm run build
npm run smoke
Tests use Node's built-in runner and focus on malformed data crossing the IPC boundary. npm run smoke builds and briefly opens a real Electron window with a temporary profile to check the production renderer, preload IPC, connection status, and renderer isolation. Manually check layout, resizing, and renderer hot reload when changing the desktop foundation. No lint tool is configured yet.
Settings → System shows CPU, RAM, graphics adapters and embedded runtime versions, with guidance for text, image and video workloads. Refresh updates the local snapshot. GPU details depend on Chromium and driver reporting; dedicated VRAM, compute backends, disk capacity and installed AI runtimes are not probed. No external requests or model downloads are made.
Downloadable image and video presets
AI Models → Model presets (#/models/local) is the main image/video management surface. Download a complete bundle, then select the installed image model in a Storyboard node. The app installs its pinned portable ComfyUI runtime when needed, downloads every required weight, verifies exact byte sizes and SHA-256 checksums, and assigns VAE/text encoder components automatically. Publisher revisions are pinned in packages/contracts/src/model-presets.ts; the renderer cannot supply download URLs or filesystem paths.
- SDXL 1.0: complete checkpoint for initial references, standalone frames and previous-frame img2img.
- FLUX.1 Kontext dev: reference editing with FP8 diffusion weights, full precision T5, CLIP-L and VAE. Its non-commercial license needs review for commercial projects.
- Qwen Image Edit 2509: full BF16 diffusion weights with matching encoder and VAE, prioritizing quality over download size. This is a large bundle requiring substantial memory.
- Wan 2.2 TI2V 5B: script + opening-frame video generation. Wan 2.1 T2V 1.3B remains download-only because it cannot condition on storyboard images.
- Wan 2.1 VACE 1.3B / 14B: complete reference-to-video bundles with pinned diffusion weights, UMT5 encoder and Wan 2.1 VAE. Use shot prompts from the script together with storyboard reference images; 1.3B targets 480p exploration, while 14B supports 480p/720p with much higher memory needs. Publisher usage documents text plus image references. References guide appearance rather than guaranteeing the first frame. Wan 2.2 5B instead supports a storyboard image as the opening frame; Wan 2.1 T2V 1.3B accepts text only. Preset cards label these differences. Wan 2.2 5B and both VACE presets can be selected in Generate Video nodes.
Kontext and Qwen editing presets automatically include SDXL when no supported initial-frame checkpoint exists. Shared components are verified and reused. Downloads show per-file progress/ETA and cancellation in Tasks. Catalog publication happens only after the whole bundle succeeds. Failure/cancellation removes files staged by that operation, preserving existing models; retry starts over rather than resuming partial files. An independently completed runtime installation remains installed. No project content is transmitted for downloads. License, storage and memory information appear before download. Windows x64 is required by the bundled runtime; NVIDIA mode is the default and CPU mode remains configurable in Tools.
After installation, Model settings exposes sampling steps, guidance, model-specific prompt instructions and supported negative prompts, with Reset defaults. Sampling defaults apply automatically unless Use model sampling defaults is disabled, in which case node steps/guidance apply. Prompt instructions always apply, including to the optional prompt-writing text model. Diffusion models receive prompt conditioning rather than chat system messages. FLUX uses CFG 1 with separate guidance conditioning and does not support negative prompts. Settings persist in the existing model catalog and participate in storyboard resume revisions. Settings → Generation links to these controls and runtime configuration.
The Advanced file library (#/models/files) preserves existing imports and manual component editing. API text models remain at #/models/api. Downloaded image presets use the same model picker and execution adapters as imported models. Current automated coverage uses mocked downloads/inference and includes checksum failures, HTTP failures, unsafe redirects, cancellation, bundle rollback, component assignments, and prompt/sampling application. Live model inference quality and hardware fit require actual GPU validation.
Model Index
The Model Index sidebar page (#/model-index) is a curated listing of 14 models for text, images, video and audio. Search covers names, publishers, use cases and setup notes; category filters and search live in the URL, with Back/Forward restoring filter navigation. The listing is bundled and works offline. Model-card links open publisher pages on Hugging Face in your browser; the desktop API accepts only known recommendation IDs. Entries with supported bundles link to AI Models for downloading.
Each entry explains what to try it for, its runtime and setup considerations. Sources were reviewed on 19 October 2026. Recommendations are editorial suggestions, not confirmation that every model has been tested with the bundled tools. Curated entries are maintained in packages/contracts/src/model-recommendations.ts; there is no background catalog fetch. Downloads are explicit actions in AI Models.
Portable third-party tools
The first integration is llama.cpp b11721, with official Windows x64 CPU and CUDA 13.4 builds. They share one Tools card with compact build tabs, status on each tab, and a single set of Download and install, Verify, Start, Stop, Cancel and Delete controls for the selected build. Build selection is URL-backed, including Back/Forward. Both builds can be installed together; only one can run at a time. Delete confirms the specific build and preserves the other. No model loading or inference is implemented.
CPU files remain in <repository>/data/tools/llama-cpp/<version>/; CUDA files live alongside them in <version>-cuda/. Paths are relative to the desktop build rather than the working directory or AppData. Move the repository together with data to retain tools. The root must be writable; packaged distribution paths remain future work.
Downloads use pinned SHA-256 checksums, size limits, a 30 minute deadline and allowlisted HTTPS release redirects. The CUDA build downloads both its executable archive and its pinned companion CUDA libraries (about 552 MB combined); no system CUDA toolkit is required. A compatible NVIDIA driver is required. Extraction and runtime-file hashing run in a worker with bounded streaming expansion. All archives must verify and extract before a complete build is atomically published; a failed companion download preserves the prior install. Existing CPU installations remain readable without migration. Manual tool startup checks archive and entry-point presence without reading large archive contents; node execution skips this inspection. Full verification compares runtime files against the checksum-verified archive only through the explicit Verify action. Running a node does not repeat tool integrity verification. Installed status indicates a discovered installation, not a completed integrity check for the current session. Adjacent application data is preserved on deletion. Interrupted downloads and extraction staging are cleaned on restart. Operations appear in Tasks and remain active across renderer navigation.
Start launches an app-owned, hidden llama-server bound to 127.0.0.1:18789 with a fresh private API key, an app-owned model directory, model autoload disabled and the web UI disabled. CUDA startup first runs the installed executable with --list-devices, requires a CUDA device and displays the detected GPU. CUDA launches with GPU layers enabled; CPU uses zero GPU layers. Startup checks authenticated readiness before reporting Running. GPU detection does not claim model inference has been tested. Parent model/provider environment settings are excluded. Stop and application shutdown terminate the owned process; unexpected exits are reported. A port conflict produces a startup failure. There is no autostart, remote fallback or model download.
Run the optional live lifecycle check after building with node apps/desktop/check-llama.cjs for CPU, or node apps/desktop/check-llama.cjs --cuda for both builds. It downloads and executes the pinned release in temporary repository storage, checks restart verification, GPU detection, start/stop, cross-build exclusion and independent deletion, then removes the test installations. Routine tests use fixtures and need no network or models.
ComfyUI is also available in Tools using the official Windows x64 portable release v0.42.1. Choose Download and install (about 1.9 GiB), then Start and Open ComfyUI to open its interface in your browser. Python and PyTorch are included; no system Python or 7-Zip installation is needed. Models are not included. Storyboard nodes automatically start the installed tool and submit image generation jobs.
The ComfyUI card has persisted processing mode (NVIDIA by default, or CPU) and local port (8188 by default) controls. Stop the tool before changing settings, then save before starting. NVIDIA failures do not silently switch to CPU. The server binds only to 127.0.0.1, browser auto-launch and remote API nodes are disabled, and startup checks /system_stats before reporting Running. ComfyUI has its own port and owned Python process; model execution stops it before switching to another model or tool. Stop and application shutdown terminate its process tree. Use Stop only when you are ready to interrupt any ComfyUI jobs.
Execution allows one active model across tools: switches stop the old process before starting the next, including ComfyUI and llama.cpp. Completed, failed and cancelled runs release their model/tool automatically. Tool installation remains explicit.
ComfyUI runtimes and verified archives live in data/tools/comfyui/v0.42.1-portable/runtime/. Models, custom nodes, inputs, outputs, temporary files and user workflows use data/tools/comfyui/user-data/ via ComfyUI's base-directory option. Deleting or reinstalling the managed runtime preserves this separate data folder and data/tools/comfyui/settings.json. Place models under the appropriate user-data/models/ subdirectory. Keep user content in this data folder rather than modifying the managed runtime.
Downloads pin upstream SHA-256 digests for ComfyUI and the official 7-Zip 26.04 standalone extractor. Extraction preflights paths, links, entry count, required runtime files and expanded size; verification compares installed file sizes and CRCs against the hash-verified archive in a worker. Installation uses staging and atomic promotion, preserving an existing runtime on failed downloads. The portable download is approximately 2 GB; allow additional space for extraction, retained archives, and staging during reinstalls (up to 16 GiB expanded per archive). Routine tests cover settings persistence and validation, safe archive listings, nested-file tamper detection, and preservation of user data on removal. Electron smoke validation covers the ComfyUI card, desktop IPC, tool navigation and narrow-window layout. A real 7zr fixture also passed install, restart verification, tamper detection, reinstall and data-preserving removal. Full upstream installation, ComfyUI server startup and GPU generation remain unverified.
Model management
AI Models has separate URL-backed Local files and API models tabs. Local files has an Import drop zone, search and category filter. Drop files or choose them using the native picker; a single-file review keeps the simple name/category/copy-or-move flow, with optional component settings under Components and required files. Choose a folder of weights to collect up to 32 GGUF/safetensors files, including nested component folders. Folder traversal is bounded and rejects symbolic links. Other folder contents, including Diffusers configuration and tokenizer files, are not imported; full Diffusers pipeline-folder import is not supported. Details, component editing and removal use dialogs. This screen never loads a model or starts a runtime.
Each managed file can be a model/checkpoint, a shared VAE, or a shared text encoder. Multi-file review suggests roles from filenames for user confirmation, lets you choose a primary model, and assigns VAE/encoder slots from the batch or existing library. Auxiliary-only batches are also supported. Requirements profiles describe an explicitly reviewed complete single file, diffusion weights plus VAE and one/two encoders, or unknown requirements. These are file checklists, not architecture detection or runtime compatibility guarantees. Missing assignments are allowed and shown as missing so incomplete models can be organized and completed later. Edit components updates names, roles, requirements and assignments without recopying files. These choices belong to each model rather than global Settings.
Shared components are referenced by managed file ID and can serve multiple models. Batch import copies and SHA-256 verifies every new file before publishing all records and relationships in one catalog update; identical auxiliary files with the same role reuse an existing copy. Failure or cancellation before publication removes that batch's staged copies and keeps originals and the prior catalog. Batch imports always copy; the explicit Move option remains available for single files. A primary model already in the library must be edited instead of silently reconfigured during duplicate import. A referenced component cannot be removed or assigned a conflicting role until its users are updated. Removing a model preserves all of its referenced components. Auxiliary files are excluded from text workflow model selection and rejected by the text execution boundary. Storyboard execution supports complete SD/SDXL checkpoints through ComfyUI; diffusion-only component workflows and automatic dependency downloads remain future work.
The scanner recognizes little-endian GGUF v2/v3 and safetensors by content, not the filename. Metadata parsing runs in a worker with a 32 MiB header limit, 128 MiB worker heap and 30 second deadline per file. Category suggestions use architecture and tensor names; unknown purposes require user review and can use Other. A diffusion checkpoint cannot reliably identify every supported workflow from its weights, so categories and requirements are editable during import. Pickle/PyTorch checkpoints, ONNX and other containers are not supported yet; no model code is executed. Shards are not assembled. This inspection is not a full runtime compatibility or tensor integrity check. See the GGUF specification and safetensors format.
Imports run through Tasks and remain active during navigation. Files live in <repository>/data/models/<category>/<UUID>/model.<format>, with an atomic versioned catalog.json. Import streams a copy, checks SHA-256 by rereading it, rejects duplicate content, and preserves the source by default. The explicit Move checkbox removes the source only after verification and catalog publication. Changed sources fail safely. Cancellation before publication removes the incomplete copy; restart does not resume work. Reviews are temporary and require rescanning after an application restart. A force quit can leave an unregistered partial file; automatic orphan cleanup is not implemented. Removing a local record deletes only its managed file and preserves any external original. Failures are visible in Tasks. Keep the repository's data directory with the app when moving it.
API models use an OpenAI-compatible base URL and optional credential. Enter these in the API editor, click Test connection & fetch models, then choose an ID from the searchable Available model picker. A blank display name is filled from the selection. Discovery uses the OpenAI model-list format: an explicit GET <base URL>/models request with optional bearer authentication. No prompts or generation requests are sent. A successful list tests connectivity and model-list access; it does not prove text-generation capabilities. Lists can include non-text models, so choose a text model. Saving itself makes no network request. An existing saved selection can still be edited without fetching again; changing endpoint or credentials clears fetched choices and requires discovery again.
Connection tests appear in Tasks and can be cancelled there. They have a 15 second timeout, a 2 MiB response limit, a 10,000 model limit and no automatic retries or redirects. Empty lists, authentication errors, rate limits, malformed responses and transport failures are shown in the editor with expandable sanitized details. Inputs remain available after failure. Response bodies and raw transport errors are omitted from diagnostics to protect credentials. Tests use mock responses; no paid provider is needed.
These are text-only configurations using the openai-text adapter discriminator; future image/video adapters can extend that boundary independently. Localhost HTTP and remote HTTPS are accepted. Credentials use Electron safeStorage encryption in the main process and are never returned by catalog IPC. Blank keys reuse the saved key for the same base URL; when testing another endpoint, explicitly enter a replacement key or choose Clear saved API key. Discovery does not change stored credentials. OS-encrypted credentials may need re-entry after moving to another Windows account or computer. No remote fallback or model autoload is performed.
Routine model tests use small generated binary fixtures, exercising parsing, safe imports/moves, changed sources, duplicates, restart, removal, endpoint validation and credential redaction without real models or network calls.
Background tasks
Tasks (#/tasks) shows application-wide work, current activity, measured progress and estimated time remaining for the current step. Tool install, verification and removal operations use the same backend runner that future generation services can call. Work belongs to the backend, so navigating or reloading the renderer does not cancel it. CPU-heavy generation must still run in a worker or child process; an async runner alone does not make synchronous work nonblocking.
A global indicator links to active work from other pages. Cancellation is cooperative and remains visible until cleanup finishes. Steps without a known total use an indeterminate bar and unavailable ETA. Estimates appear after one second of measured progress and disappear when updates stall. The task list refreshes every 750 ms without overlapping requests.
History retains the latest 100 finished tasks plus all active tasks in <repository>/data/tasks/history.json (ignored by Git). Task creation and final states are saved immediately; progress checkpoints are batched every 500 ms. Writes are serialized and replace the history file atomically. On startup, saved running or cancelling tasks become interrupted, retaining their last activity and progress. Quitting aborts unfinished work and records it as interrupted; explicit user cancellation remains cancelled. Work does not automatically resume. Invalid or unsupported history is preserved and reported as a startup error. Only one application instance can own the portable history. No demo tasks are added. Future services register backend tasks with TaskManager.start, report their current step and work units, and respect the supplied abort signal. The renderer can only read tasks and request cancellation; it cannot submit arbitrary work or commands.
Project workflows
Open a project from Home or Projects to edit its linear workflow. The left catalogue contains Text input, Describe Problem, and Generate Script; adding a node appends it to the sequence. Select a step to edit it in the right panel, move it up/down, or remove it with confirmation. On smaller windows, the editor moves below the sequence.
Text input holds source text. Describe Problem expands a brief idea into a complete description with context and relevant detail. Each AI step selects a local GGUF text/multimodal model or configured OpenAI-compatible API text model, marked with a Local/API chip, and can store additional guidance. Multimodal models are used for text only. Storyboard nodes use a separate ComfyUI image adapter for supported safetensors checkpoints.
Generate Script creates a visual-only script targeting 120 seconds, with model-selected story beats and a desired clip length of 20 seconds by default. The node editor saves total duration (15–600 seconds), desired clip length (1–30 seconds), pacing, aspect ratio, visual style, tone, audience, and on-screen text preferences per node. Desired clip length is flexible guidance: clips may be shorter or longer to suit the story, with a 30-second ceiling. Settings are included in the effective system prompt even when using a custom prompt; the prompt editor edits only the base prompt and additional guidance. Existing nodes inherit defaults. Changing settings marks affected results outdated while preserving their history. The prompt requests a continuity guide, consecutive timestamps, visual action, camera direction, transitions, standalone generation prompts, optional editing overlays, and a timing check. No narration, dialogue, music, or sound effects are planned. The application normalizes generated timestamps and recalculates the timing check from declared clip durations before saving. A warning identifies any total that differs from the requested duration; content and clip durations are preserved. Timing remains a planning schedule rather than a claim about a video model. Its result reader formats script headings and labeled sections, highlighting generation prompts while preserving plain text for copying.
AI nodes inherit their node-type system prompt from packages/contracts/src/prompts.ts. Describe Problem defaults to a finished, self-contained description in the input language, using plain, concrete paragraphs without follow-up questions, invented facts, generic filler, or unsolicited implementation plans. Edit prompt opens a per-node dialog for the system prompt and optional additional guidance; Cancel discards dialog edits, Apply prompt updates the workflow draft, and Use default prompt restores inheritance when applied. Other nodes are unaffected. Save the workflow or run the node to persist changes. Existing guidance is preserved. Prompt edits mark affected output as outdated, while history is retained; newly generated results store the exact effective system prompt used.
Run node saves the workflow and executes only the selected AI node. If the preceding node is Text input, its text is used directly. If it is an AI node, choose one of its saved outputs in Saved input result (latest by default). With no saved input, run the preceding node or use Run through node first. Older inputs can be selected explicitly; outdated input is marked in the editor, and its fingerprint is carried forward so the new output is not incorrectly marked current. The saved output records the input result ID. The backend resolves that ID from this project's saved history and checks that it belongs to the immediately preceding node. Earlier models never start during a single-node run.
Run through node saves the workflow and executes the sequence from the beginning through the selected node, passing each result to the next step. A Text input replaces the current input. Earlier AI steps run again on each invocation, including API calls; there is no automatic retry or implicit result reuse in this mode. Both modes save each completed AI step immediately in the project, including its output, timestamp, run ID, model ID, input, and guidance. Reruns append result versions without deleting earlier output. Earlier completed steps remain saved if a later step fails or is cancelled. Editing or reordering steps marks affected results as outdated without deleting them. A notice appears when the sequence uses API models: only step text and guidance are sent, with credentials resolved in the backend. Runtime errors never include credentials or raw provider response bodies.
One application-wide coordinator permits one run and one selected model session. It retains the same model between consecutive steps and runs. Switching models unloads the previous model before loading another. Selecting an API model releases the local model while leaving runtime servers idle; the app cannot unload or stop servers managed by an external API provider. Future image adapters must use this same coordinator. An unsupported model fails explicitly without a local-to-remote fallback.
Local execution automatically launches an installed llama.cpp build with the managed model file: CUDA is preferred when installed, otherwise CPU. Install builds in Tools first; execution does not download runtimes or models. A CUDA startup failure is reported without automatically switching to CPU. The server binds to loopback with a per-process API key, one slot and an 8,192-token context. Model files are checked for presence and safe managed paths without rehashing before loading; server readiness has a three-minute deadline. Generation uses a five-minute deadline and at most 4,096 output tokens. Generation and runtime defaults are in apps/desktop/src/models/generation.ts and apps/desktop/src/tools/manager.ts.
Progress and cancellation are available in the editor and Tasks. Cancelling or failing generation releases its local model before accepting another run. Cancel aborts remote HTTP requests but cannot guarantee the provider has stopped computation or billing. Completed runs keep the model ready for reuse and unload it after five idle minutes. Unload model releases it immediately. Model changes/removal and tool operations are blocked when they conflict with execution. App shutdown cancels work and stops owned processes.
Use View result on any AI node to open a dedicated reader with node selection, Previous/Next navigation, copy, and word/character counts. Text nodes offer View text. Runs open this viewer automatically, with progress, cancellation, and errors available there. The sequence shows current output previews. Result version opens earlier saved outputs and marks outdated versions. Saved results in the project header also includes removed nodes. Reviewing history never starts a runtime or contacts a model provider, and works after restarting the app. The selected result version is URL-backed for Back/Forward navigation. Existing projects gain empty history automatically. If saving an output fails, execution stops and the viewer retains that unsaved output in memory so it can be copied.
Use Save workflow to persist changes to data/projects.json. Existing projects load with empty workflows, and title/icon updates preserve their nodes. Unsaved edits are retained in session storage while navigating within the app; save to disk before closing. The selected project and node are URL-backed for Back/Forward navigation.
Embedded model thumbnails: new imports preserve PNG, JPEG, WebP or GIF base64 data URLs from modelspec.thumbnail or thumbnail metadata (up to 4 MiB). The library, details and import reviews use consistent 112 × 112 frames with a gradient fallback for absent or broken images. External thumbnail URLs are not loaded. Existing imports recover embedded thumbnails automatically from managed files after the window opens. Progress and failures appear in Tasks. Successful scans, including models without thumbnails, are remembered; cancellation or unavailable files can retry on the next launch. Recovery updates catalog metadata only and keeps model files, names and component assignments intact.
Storyboards
Add Storyboard immediately after Generate Script. In AI Models, configure an SD/SDXL safetensors model as a Complete checkpoint / single file; architecture metadata must identify Stable Diffusion, SD1/2 or SDXL. The library shows a storyboard capability property. Split safetensors FLUX.1 Kontext and Qwen-Image-Edit models also have dedicated adapters (setup below). Other architectures and remote image APIs have no storyboard adapter. Install ComfyUI in Tools; execution starts it automatically: Studio registers its managed model folder using an extra model paths configuration, without copying weights.
Select the configured image model in the node. Optionally choose a local/API text model to write one opening-frame image prompt per clip; all prompts are prepared before switching to the image model. An API text model receives the script continuity guide, relevant clip, style, prompt and guidance. No remote image fallback occurs. Without a text model, the still-frame instructions, script guide and clip are sent directly to the image model. Shared style, ratio, seed, sampling steps, prompt guidance, and reference denoise are saved per node. The ratio initially follows the latest script node; keep it consistent with your intended video output.
Test first clip generates the first opening frame. Full storyboard / resume uses the same saved script input and reuses matching completed images, including that test frame. Changing the script input, prompt, model or settings starts a new version; change the base seed to request a fresh variation. Run through node reruns earlier steps, so use the saved input and Full storyboard to retain the tested script. Scripts must use the default ## Clip 01 | 00:00–00:05 | 5 seconds | Title format with consecutive numbers, gap-free timing and 1–30 second durations. Storyboard rebuilds timestamps from declared durations when model-written timestamps overflow, overlap or move backwards, and shows a correction notice. Missing clip numbers, malformed headings and durations outside 1–30 seconds still fail before rendering. Saved source scripts remain unchanged.
For SD/SDXL, continuity can use shared text/style only or condition each image on the preceding clip's image through VAE encoding and partial denoise. This adapter supports previous-image conditioning; it does not guarantee identity consistency. Lower reference denoise retains more appearance and composition; use text-only conditioning for substantial scene changes. This uses ComfyUI's standard CheckpointLoaderSimple, CLIPTextEncode, KSampler, VAE and image nodes, following the upstream node definitions.
The model index distinguishes previous-image img2img from dedicated image-plus-text reference editing, and separately marks Studio integration. FLUX.1 Kontext dev, original Qwen-Image-Edit and Qwen-Image-Edit-2509 (Plus) have executable Studio adapters.
Each completed image is checkpointed into its run's result. Cancellation/failure keeps earlier clips available for review and resume. The result gallery provides PNG downloads plus the exact image prompt and original video clip. Saved frames retain clip number, title, start/duration, frame ratio and seed, full clip action/camera/transition text, reference-clip lineage, and input-result provenance for a later image-to-video node. Images are embedded in project JSON for portability; large storyboards increase project size and load/save costs. Video generation itself is not implemented by this node. ComfyUI requests have a ten-minute per-clip deadline, cancellation, no automatic rendering retries, and PNG/response validation. Keep the app-owned ComfyUI queue dedicated to Studio while executing a storyboard, as cancellation interrupts its active inference.
Editing storyboard model setup
Configure Required files and Storyboard adapter in AI Models (during import or when editing an existing model):
| Adapter | Required files | Assignments |
|---|---|---|
| FLUX.1 Kontext dev | Diffusion + VAE + two text encoders | Primary: Kontext dev weights; VAE: FLUX ae; encoder 1: CLIP-L; encoder 2: T5-XXL |
| Qwen-Image-Edit (original) | Diffusion + VAE + one text encoder | Primary: original editing weights; VAE: Qwen Image VAE; encoder: matching Qwen2.5-VL |
| Qwen-Image-Edit 2509 (Plus) | Diffusion + VAE + one text encoder | Primary: 2509 editing weights; VAE: Qwen Image VAE; encoder: matching Qwen2.5-VL |
Use managed safetensors components. GGUF editing components, LoRAs and Lightning/distilled variants are not implemented by these adapters. Explicit adapter selection works even when architecture metadata is missing; choose it only for matching weights. Node execution trusts the imported primary model and assigned component files without checking file presence or repeating SHA-256 verification before starting ComfyUI. The managed folder is registered under checkpoints, diffusion_models, text_encoders and vae without copying weights. Invalid component roles and unsupported runtime nodes fail before inference is queued; missing or corrupt files are reported by the runtime. No component downloads or remote fallbacks occur.
Editing adapters automatically generate the initial reference from the opening clip and continuity guide using a supported SD/SDXL text-to-image checkpoint. Select Initial reference model in the node; if exactly one supported checkpoint is available it is chosen automatically. With multiple checkpoints, select one explicitly. No PNG upload is required. An existing PNG remains an optional override (up to 12 MiB). The first editing clip uses the generated reference plus its text prompt. Condition on previous clip image carries each generated frame into the next clip; Initial reference for every clip keeps using the starting image. Generated references are saved in result history before editing starts and are reused by test/full runs and retries. The gallery includes the reference image and its exact prompt. Uploaded overrides are stored in the workflow and affect result versioning. Reference sampling steps and guidance are adjustable independently from editing settings (defaults: 24 steps, guidance 7). The generator is unloaded before the editing model starts. Initial-reference use and previous-clip lineage are retained in saved frames. Resume also checks the adapter and recorded model/component hashes; changing dependencies creates a fresh run while retaining earlier history. An optional prompt text model receives descriptive script context, not the reference image bytes.
Selecting Kontext initializes 20 steps and guidance 2.5; selecting Qwen initializes 20 steps and guidance 4. These remain adjustable in Image settings. Kontext uses ReferenceLatent and FluxGuidance with sampler CFG 1; Qwen uses image-aware positive/negative text encoding, flow shift 3 and CFG normalization. Both use full denoise, rather than the SDXL partial-denoise slider, so reference information guides a new frame. These are single-reference workflows; Qwen Plus multi-reference input is not exposed yet. Identity/style retention is model-dependent and not guaranteed. The graphs follow the official Kontext workflow and Qwen editing workflow; required node interfaces were checked against the pinned ComfyUI v0.42.1 release.
Imported safetensors files are checked for complete-checkpoint versus diffusion-only tensor layouts. Existing imports receive this metadata on startup without changing their saved component assignments. Complete SD/SDXL checkpoints can run even when the older setup was unreviewed. The library and node picker distinguish supported models needing setup from unsupported families; recognized split editing models remain selectable and explain missing components. The component editor suggests the detected adapter/profile, and the node picker refreshes after metadata recovery or component changes.
Runtime idle behavior
Completed sequences keep their selected model loaded for reuse. A model switch releases the previous model before starting the next; five minutes without execution also releases it. ComfyUI uses its /free endpoint so its server stays running after model release. llama.cpp runs in router mode and releases model workers through /models/unload, keeping its server available. Execution waits for the worker to report loaded before generating, and for unloaded before switching models; accepting a load request alone does not mean the worker is ready. Cancellation and errors release the active session before another run can start. Node loading trusts managed model and tool files without rehashing weights or inspecting the runtime installation. Runtime load failures are surfaced normally; use the Models/Tools page checks when diagnosing files.
Storyboard results show intermediate ComfyUI image previews in the result viewer when the sampler emits them. Preview streaming is optional; final images are still retrieved through history polling. Previews are temporary and are not saved as completed frames.
Silent video clips and text overlays
Add Generate Video immediately after Storyboard. Choose an installed Wan 2.2 5B, VACE 1.3B or VACE 14B bundle and a saved storyboard input version. The node uses that result's original script and matching clean frames; it refuses missing or mismatched frames. Wan 2.2 anchors the opening frame, while VACE uses the image as an appearance reference. Unsupported video models are not offered as execution choices.
Choose a clip and Generate short preview to render 1–2 seconds at reduced resolution (512×288 landscape, transposed for portrait, 288×288 square) with independently adjustable preview steps. Previews are saved as separate draft results and never reused as completed full clips. Then Render selected full clip, or All clips / resume. Completed clips are checkpointed immediately; rerunning with the same workflow, input result and model revision skips them. Cancellation interrupts inference, stops the owned worker on failure and preserves completed media. Live sampling previews and per-segment activity appear in the result viewer.
Full clips preserve the script's planned 1–30-second duration. They are generated in adjustable 1–5-second segments, carrying the last clean frame into the next segment, then trimmed and composed at 24 fps (Wan 2.2) or 16 fps (VACE). VACE reference latents are removed before decoding. Segment boundaries can show motion or identity drift; previews do not predict final quality. 480p is the default; 720p increases memory use. Wan 2.2 uses 1280×704 for landscape 720p due to its dimension alignment. Model sampling defaults override full-render steps/guidance when enabled; preview steps always come from the video node.
Script settings offer Explain through on-screen text for visual-only informational videos. Each clip's On-screen text is exact text displayed for the whole clip, or None. Default script prompts request short messages (at most 120 characters); rendering accepts up to 240. Storyboard and motion prompts exclude overlay lettering and reserve a safe area. The storyboard viewer can preview the overlay without modifying the source image used for conditioning. Existing custom node prompts remain unchanged; choose Use default prompt to adopt the updated defaults.
Video-node settings persist overlay enablement, top/bottom placement and size. The app composites readable white Segoe UI text over a dark backing after diffusion, using the pinned runtime's PyAV/Pillow in a separate process. Outputs are silent H.264 MP4s stored under data/video and referenced by validated media IDs; video bytes and filesystem paths do not cross IPC. The private media protocol supports seeking, and Save clip uses a native save dialog. Temporary segment files and run-owned ComfyUI inputs/outputs are cleaned after completion/failure. Optional text prompt models receive shot text; only an explicitly chosen API text model sends that text remotely. Images and video stay local.
Validation: npm test, npm run typecheck, npm run build, and npm run smoke. The optional node apps/desktop/video-native-smoke.mjs <portable-python.exe> exercises the installed ComfyUI video nodes with synthetic frames, exact-duration H.264 composition and burned-in Unicode text, without model inference or GPU requirements. Full AI video inference and visual quality require downloaded weights and hardware validation.