The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Runs on their way look the same everywhere: Library, Canvas and the other studios
Adarshc6567af19b53
diff --git a/src/components/ads/creative-grid.tsx b/src/components/ads/creative-grid.tsxindex f470a044..9728019e 100644--- a/src/components/ads/creative-grid.tsx+++ b/src/components/ads/creative-grid.tsx@@ -44,7 +44,7 @@ function CreativeCard({ c, brand, ratio, product, n, onEdit }: { c: AdCreative;{ready && own !== ratio && <span className="pointer-events-none absolute bottom-2 left-2 rounded-full bg-black/55 px-2 py-0.5 text-[11px] font-medium text-white backdrop-blur">{own} only</span>}{!ready && (<div className={cn("absolute inset-0 flex flex-col justify-end rounded-xl p-3", failed ? "bg-background/85" : "bg-gradient-to-t from-background/90 via-background/30 to-transparent")}>- {!failed && <div className="skeleton-sweep absolute inset-0 animate-skeleton rounded-xl" />}+ {!failed && <div className="run-aura absolute inset-0 rounded-xl" />}<div className="relative">{failed ? (<>diff --git a/src/components/canvas/nodes.tsx b/src/components/canvas/nodes.tsxindex 5dc3ed3e..6091609d 100644--- a/src/components/canvas/nodes.tsx+++ b/src/components/canvas/nodes.tsx@@ -64,6 +64,7 @@ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";import { LanguageChip, SliderControls } from "@/components/studio/audio-controls";import { downloadName } from "@/components/studio/feed";+import { RunAura, RunRing } from "@/components/studio/run-visuals";import { fileToSlot, type SlotValue } from "@/components/studio/media-slot";import { ControlsChip } from "@/components/studio/model-controls";import { ModelPicker } from "@/components/studio/model-picker";@@ -558,11 +559,14 @@ function Results({ id, r, compact }: { id: string; r: NodeResults; compact?: booif (r.state === "queued" || r.state === "running") {const pct = r.progress != null ? Math.round(r.progress * 100) : null;return (- <div className="relative overflow-hidden rounded-lg bg-muted" style={{ height: compact ? 56 : 96 }}>- <div className="skeleton-sweep absolute inset-0 animate-skeleton" />+ <div className="relative overflow-hidden rounded-lg bg-muted" style={{ height: compact ? 56 : 96 }} data-stage={r.state === "queued" ? "in-line" : pct ? "creating" : "warming"}>+ <RunAura /><div className="absolute inset-x-0 bottom-0 flex items-end justify-between gap-2 p-2.5">- <p className="shimmer-text animate-shimmer-text truncate text-[12px] font-medium">{r.message ?? (r.state === "queued" ? "Queued" : "Generating…")}</p>- {pct != null && <span className="font-mono text-[11px] text-muted-foreground">{pct}%</span>}+ <p className="flex min-w-0 items-center gap-1.5 text-[12px] font-medium">+ <RunRing fraction={r.state === "running" && pct ? pct / 100 : null} stage={r.state === "queued" ? "in-line" : "creating"} />+ <span className="truncate">{r.message ?? (r.state === "queued" ? "Queued" : "Generating…")}</span>+ </p>+ {pct != null && <span className="text-[11px] text-muted-foreground tabular-nums">{pct}%</span>}</div>{pct != null && <div className="absolute inset-x-0 top-0 h-0.5 bg-primary origin-left transition-transform duration-(--motion-slow) ease-standard" style={{ transform: `scaleX(${(pct) / 100})` }} />}</div>diff --git a/src/components/cinema/soul-builders.tsx b/src/components/cinema/soul-builders.tsxindex f0178fbd..8c3f2d45 100644--- a/src/components/cinema/soul-builders.tsx+++ b/src/components/cinema/soul-builders.tsx@@ -165,7 +165,7 @@ function Results({ items, picked, onPick }: { items: Generation[]; picked: strin<span className="px-2 text-center text-[11.5px] text-destructive">{g.error ?? "Couldn't generate this one"}</span>) : (<>- <div className="skeleton-sweep absolute inset-0 animate-skeleton" />+ <div className="run-aura absolute inset-0" /><span className="shimmer-text relative animate-shimmer-text text-[12px] font-medium">{g.message ?? "Generating…"}</span></>)}diff --git a/src/components/faceless/episode-view.tsx b/src/components/faceless/episode-view.tsxindex 160afe4d..6e98e70a 100644--- a/src/components/faceless/episode-view.tsx+++ b/src/components/faceless/episode-view.tsx@@ -92,7 +92,7 @@ function Player({ view, onRetry, retrying }: { view: View; onRetry: () => void;<video key={out.url} src={out.url} controls playsInline preload="metadata" className="size-full bg-black object-contain" aria-label={`${ep.title} — the episode`} />) : (<div className="absolute inset-0 grid place-items-center bg-muted p-6">- <div className="skeleton-sweep absolute inset-0 animate-skeleton" />+ <div className="run-aura absolute inset-0" /><div className="relative max-w-sm text-center">{ep.status === "failed" ? (<>@@ -156,7 +156,7 @@ function SceneTile({ scene, selected, onSelect, aspect }: { scene: SceneRow; sel)}><div className={cn("relative w-full", aspect === "9:16" ? "aspect-[3/4]" : "aspect-video")}>- {img ? <MediaThumb output={img} /> : <div className={cn("absolute inset-0", running && "skeleton-sweep animate-skeleton")} />}+ {img ? <MediaThumb output={img} /> : <div className={cn("absolute inset-0", running && "run-aura")} />}{failed && <div className="absolute inset-0 grid place-items-center bg-destructive/15"><AlertTriangle className="size-5 text-destructive" /></div>}<span className="absolute top-1.5 left-1.5 grid size-5 place-items-center rounded-full bg-background/90 font-mono text-[10px] font-semibold shadow-soft">{scene.index + 1}</span><span className="absolute right-1.5 bottom-1.5 rounded bg-black/55 px-1 font-mono text-[10px] text-white tabular-nums">{scene.seconds}s</span>diff --git a/src/components/library/asset-card.tsx b/src/components/library/asset-card.tsxindex 1c6b8451..5140c92f 100644--- a/src/components/library/asset-card.tsx+++ b/src/components/library/asset-card.tsx@@ -1,6 +1,6 @@"use client";-import { Check, ChevronDown, Heart, Layers, Loader2, MoreHorizontal, Pin, RotateCcw } from "lucide-react";+import { Check, ChevronDown, Heart, Layers, MoreHorizontal, Pin, RotateCcw } from "lucide-react";import { memo, useMemo, useState } from "react";import { tileRatio } from "@/components/studio/feed";import { TileActions, useCanHover, type RunnerOptions } from "@/components/studio/result-actions";@@ -10,6 +10,8 @@ import { elapsed, timeAgo } from "@/lib/format";import { cardStateWords, coverOf, trashDaysLeft, userTitle, type LibraryEntry } from "@/lib/library";import { isLayered, shownOutputs } from "@/lib/output-actions";import { pendingWords } from "@/lib/pending-words";+import { runStage } from "@/lib/run-stage";+import { RunAura, RunRing } from "@/components/studio/run-visuals";import { POOL_WORDS } from "@/lib/relay";import { cn } from "@/lib/utils";import { PlaceholderChip } from "@/components/demo-mode";@@ -66,17 +68,22 @@ export function StatusCover({ g, small, actionable }: { g: Generation; small?: bconst pct = g.progress != null ? Math.round(g.progress * 100) : null;const { label, place } = pendingWords(g);const waiting = g.status === "queued" ? g.waiting : undefined;+ const st = runStage(g) ?? { stage: "creating" as const, fraction: null };return (- <div className="relative size-full bg-muted">- <div className="skeleton-sweep absolute inset-0 animate-skeleton" />+ <div className="relative size-full bg-muted" data-stage={st.stage}>+ <RunAura />+ {g.status === "running" && g.preview && (+ // eslint-disable-next-line @next/next/no-img-element -- the run's own latest preview picture+ <img src={g.preview} alt="" onLoad={(e) => (e.currentTarget.style.opacity = "1")} className="absolute inset-0 size-full object-cover opacity-0 transition-opacity duration-(--motion-slow)" />+ )}{!small && (- <div className="absolute inset-x-0 bottom-0 space-y-1 p-3">- <p className="flex items-center gap-1.5 text-[13px] font-medium">- <Loader2 aria-hidden data-run-spinner className="size-3.5 shrink-0 animate-spin text-muted-foreground motion-reduce:animate-none" />- <span className="shimmer-text animate-shimmer-text truncate">{label}</span>+ <div className="absolute inset-x-0 bottom-0 space-y-1 bg-gradient-to-t from-background/85 via-background/45 to-transparent p-3 pt-10">+ <p className="flex items-center gap-2 text-[13px] font-medium">+ <RunRing fraction={st.stage === "creating" ? st.fraction : null} stage={st.stage} />+ <span className="truncate">{label}</span></p>{place && <p className="truncate text-[11px] text-muted-foreground">{place}</p>}- <p className="font-mono text-[11px] text-muted-foreground">+ <p className="text-[11px] text-muted-foreground tabular-nums">{pct != null ? `${pct}% · ` : ""}{elapsed(g.createdAt)}</p>@@ -92,10 +99,10 @@ export function StatusCover({ g, small, actionable }: { g: Generation; small?: b</div>);}- if (small) return <div className="size-full border border-dashed bg-background" />;+ if (small) return <div className="size-full border bg-muted/40" />;const trouble = g.status === "failed" ? g.trouble : undefined;return (- <div className="flex size-full flex-col justify-between gap-2 border border-dashed bg-background p-3">+ <div className="flex size-full flex-col justify-between gap-2 border bg-muted/40 p-3" data-stage={g.status}><div className="flex min-h-0 flex-col gap-1 overflow-hidden">{pool && g.status === "failed" ? (// One plain sentence, as its tile says it.diff --git a/src/components/marketing/runs.tsx b/src/components/marketing/runs.tsxindex c87e1d02..9fd755cc 100644--- a/src/components/marketing/runs.tsx+++ b/src/components/marketing/runs.tsx@@ -149,7 +149,7 @@ function RunCard({ run, brand, onOpen, onCompose }: { run: MarketingRun; brand?:</div>) : (<div className="relative overflow-hidden rounded-xl bg-muted" style={{ aspectRatio: ratio }}>- <div className="skeleton-sweep absolute inset-0 animate-skeleton" />+ <div className="run-aura absolute inset-0" /><div className="absolute inset-x-0 bottom-0 p-3"><p className="shimmer-text animate-shimmer-text truncate text-[13px] font-medium">{now ? (now.request.step?.label ?? "Generating…") : "In queue"}…</p><p className="font-mono text-[11px] text-muted-foreground">diff --git a/src/components/mixed-media/mixed-studio.tsx b/src/components/mixed-media/mixed-studio.tsxindex 8c84b924..1c312bf2 100644--- a/src/components/mixed-media/mixed-studio.tsx+++ b/src/components/mixed-media/mixed-studio.tsx@@ -683,7 +683,7 @@ function Editor({) : preview.status === "failed" || preview.status === "canceled" ? (<div className="grid size-full place-items-center p-3 text-center text-[12px] text-muted-foreground">{preview.error ?? "Canceled"}</div>) : (- <div className="skeleton-sweep grid size-full animate-skeleton place-items-center">+ <div className="run-aura relative grid size-full place-items-center"><span className="shimmer-text animate-shimmer-text text-[12px] font-medium">Restyling one frame…</span></div>)}@@ -814,7 +814,7 @@ function LatestRender({ chain, frames }: { chain: (Generation | undefined)[]; fr{state.error && <p className="line-clamp-4 text-[12px] break-words text-muted-foreground">{state.error}</p>}</div>) : (- <div className="skeleton-sweep grid size-full animate-skeleton place-items-center">+ <div className="run-aura relative grid size-full place-items-center"><span className="shimmer-text animate-shimmer-text text-[12px] font-medium">{g ? `${state.label}… ${Math.round(state.progress * 100)}%` : "Rendering…"}</span>diff --git a/src/components/shorts/session-view.tsx b/src/components/shorts/session-view.tsxindex 3fd1373b..49f04c7a 100644--- a/src/components/shorts/session-view.tsx+++ b/src/components/shorts/session-view.tsx@@ -174,7 +174,7 @@ function Session({ s }: { s: View }) {</div>) : (<div className="flex size-full flex-col items-center justify-center gap-2 p-5 text-center">- <div className="skeleton-sweep absolute inset-0 animate-skeleton" />+ <div className="run-aura absolute inset-0" /><p className="shimmer-text relative animate-shimmer-text text-[14px] font-medium">Preparing full video…</p><p className="relative font-mono text-[12px] text-muted-foreground tabular-nums">{working ? `${working} of ${segStates.length} segment${segStates.length === 1 ? "" : "s"} rendering · ` : (finalState?.label ?? "") + " · "}@@ -374,7 +374,7 @@ function SegmentCard({<MediaThumb output={video} /></button>) : state.status === "working" ? (- <div className="skeleton-sweep absolute inset-0 animate-skeleton" />+ <div className="run-aura absolute inset-0" />) : (<div className="grid size-full place-items-center p-2 text-center text-[11px] text-muted-foreground">{state.status === "gone" ? "Deleted" : "No video"}</div>)}diff --git a/tests/golden/self-host/library-cover.html b/tests/golden/self-host/library-cover.htmlindex a77f7e4a..5c495ada 100644--- a/tests/golden/self-host/library-cover.html+++ b/tests/golden/self-host/library-cover.html@@ -1,41 +1,45 @@-<div class="relative size-full bg-muted">-<div class="skeleton-sweep absolute inset-0 animate-skeleton">-</div>-<div class="absolute inset-x-0 bottom-0 space-y-1 p-3">-<p class="flex items-center gap-1.5 text-[13px] font-medium">-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader-circle lucide-loader-2 size-3.5 shrink-0 animate-spin text-muted-foreground motion-reduce:animate-none" aria-hidden="true" data-run-spinner="true">-<path d="M21 12a9 9 0 1 1-6.219-8.56">-</path>+<div class="relative size-full bg-muted" data-stage="in-line">+<div aria-hidden="true" class="run-aura absolute inset-0">+</div>+<div class="absolute inset-x-0 bottom-0 space-y-1 bg-gradient-to-t from-background/85 via-background/45 to-transparent p-3 pt-10">+<p class="flex items-center gap-2 text-[13px] font-medium">+<svg viewBox="0 0 18 18" aria-hidden="true" data-run-spinner="true" class="mt-px size-4 shrink-0 animate-spin [animation-duration:1.4s] motion-reduce:animate-none text-muted-foreground">+<circle cx="9" cy="9" r="7" fill="none" stroke="currentColor" stroke-opacity="0.2" stroke-width="2">+</circle>+<circle cx="9" cy="9" r="7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-dasharray="43.98" stroke-dashoffset="31.67" class="transition-[stroke-dashoffset] duration-(--motion-slow) ease-standard">+</circle></svg>-<span class="shimmer-text animate-shimmer-text truncate">Queued</span>+<span class="truncate">Queued</span></p>-<p class="font-mono text-[11px] text-muted-foreground">1m 30s</p>+<p class="text-[11px] text-muted-foreground tabular-nums">1m 30s</p></div></div>-<div class="relative size-full bg-muted">-<div class="skeleton-sweep absolute inset-0 animate-skeleton">-</div>-<div class="absolute inset-x-0 bottom-0 space-y-1 p-3">-<p class="flex items-center gap-1.5 text-[13px] font-medium">-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader-circle lucide-loader-2 size-3.5 shrink-0 animate-spin text-muted-foreground motion-reduce:animate-none" aria-hidden="true" data-run-spinner="true">-<path d="M21 12a9 9 0 1 1-6.219-8.56">-</path>+<div class="relative size-full bg-muted" data-stage="creating">+<div aria-hidden="true" class="run-aura absolute inset-0">+</div>+<div class="absolute inset-x-0 bottom-0 space-y-1 bg-gradient-to-t from-background/85 via-background/45 to-transparent p-3 pt-10">+<p class="flex items-center gap-2 text-[13px] font-medium">+<svg viewBox="0 0 18 18" aria-hidden="true" data-run-spinner="true" class="mt-px size-4 shrink-0 -rotate-90 text-primary">+<circle cx="9" cy="9" r="7" fill="none" stroke="currentColor" stroke-opacity="0.2" stroke-width="2">+</circle>+<circle cx="9" cy="9" r="7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-dasharray="43.98" stroke-dashoffset="25.51" class="transition-[stroke-dashoffset] duration-(--motion-slow) ease-standard">+</circle></svg>-<span class="shimmer-text animate-shimmer-text truncate">Generating</span>+<span class="truncate">Generating</span></p>-<p class="font-mono text-[11px] text-muted-foreground">42% · 1m 30s</p>+<p class="text-[11px] text-muted-foreground tabular-nums">42% · 1m 30s</p></div></div>-<div class="flex size-full flex-col justify-between gap-2 border border-dashed bg-background p-3">+<div class="flex size-full flex-col justify-between gap-2 border bg-muted/40 p-3" data-stage="failed"><div class="flex min-h-0 flex-col gap-1 overflow-hidden"><p class="shrink-0 text-[13px] font-medium">Couldn't generate this one</p><p class="line-clamp-3 text-[12px] leading-snug break-words text-muted-foreground @[16rem]:line-clamp-4">Your GPU ran out of memory. Try a smaller size or a shorter clip.</p></div></div>-<div class="flex size-full flex-col justify-between gap-2 border border-dashed bg-background p-3">+<div class="flex size-full flex-col justify-between gap-2 border bg-muted/40 p-3" data-stage="canceled"><div class="flex min-h-0 flex-col gap-1 overflow-hidden"><p class="shrink-0 text-[13px] font-medium">Canceled</p></div>