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
Library: guests are offered Sign up, and the key wording follows the studio
Adarshffc1c3ddbd83
diff --git a/src/components/guest-prompt.tsx b/src/components/guest-prompt.tsxindex 35dea01f..47443859 100644--- a/src/components/guest-prompt.tsx+++ b/src/components/guest-prompt.tsx@@ -40,6 +40,8 @@ export function GuestPrompt() {setRetry(null);}, []);const viewer = useStatus().data?.viewer;+ // A studio that runs open-source models only takes no keys: its cards offer the GPU alone.+ const keysAllowed = viewer?.kind !== "account" || viewer.paidAllowed !== false;const qc = useQueryClient();// Who this page was for, for the refusal that comes when that sign-in ended elsewhere: "owner", "account", or null.const who = useViewer().data;@@ -101,10 +103,14 @@ export function GuestPrompt() {<div className="mb-1 grid size-10 place-items-center rounded-xl bg-primary text-primary-foreground"><Cpu className="size-5" /></div>- <DialogTitle>{TITLES[reason ?? action]}</DialogTitle>+ <DialogTitle>{reason ? TITLES[reason] : action === "upload" && !keysAllowed ? "Connect your GPU to add your own files" : TITLES[action]}</DialogTitle><DialogDescription>{!reason && action === "upload" ? (- "A free account keeps its files for runs on its own ComfyUI or its own fal.ai or Replicate key."+ keysAllowed ? (+ "Your files are kept for your own runs, on your own ComfyUI or with your own fal.ai or Replicate key."+ ) : (+ "Your files are kept for your own runs on your own ComfyUI."+ )) : (<>Fuobe runs this on the ComfyUI on your computer. It's free and private.</>)}@@ -183,7 +189,7 @@ function logInAgain(who: "owner" | "account", here?: string): string {const TITLES: Record<FindReason | RefusalAction, string> = {run: "Connect your GPU to run this",- upload: "Connect your GPU or add a key to use your own files",+ upload: "Connect your GPU or add a key to add your own files",setting: "Your ComfyUI needs Fuobe's setting again",find: "Find your ComfyUI",browser: "Run your GPU jobs from this browser",diff --git a/src/components/library-view.tsx b/src/components/library-view.tsxindex 5ac7f994..5c865b1c 100644--- a/src/components/library-view.tsx+++ b/src/components/library-view.tsx@@ -11,6 +11,7 @@ import { FolderDialog, FolderHeader, FolderStrip, MoveMenuItems } from "@/componimport { ReviewMenuItems } from "@/components/library/review";import { UploadDeleteProvider } from "@/components/library/upload-delete";import { useViewPrefs, ViewOptions, type ViewPrefs } from "@/components/library/view-options";+import { openAddKey } from "@/components/keys/your-keys";import { PageShell } from "@/components/page-shell";import { useShare } from "@/components/share/share-provider";import { SharedLinks } from "@/components/share/shared-links";@@ -39,7 +40,7 @@ import {} from "@/components/ui/dropdown-menu";import { Kbd } from "@/components/ui/kbd";import { Skeleton } from "@/components/ui/skeleton";-import { BULK_MAX, useCreateGeneration, useFolders, useGenerationActions, useIsAccount, useIsOwner, useIsVisitor, useLibrary, useLibraryFacets, useShares, useStatus, useUploads, type Asset, type FeedFilter } from "@/lib/api";+import { BULK_MAX, signInHref, useCreateGeneration, useFolders, useGenerationActions, useIsAccount, useIsGuest, useIsOwner, useIsVisitor, useLibrary, useLibraryFacets, useShares, useStatus, useUploads, type Asset, type FeedFilter } from "@/lib/api";import type { Generation, MediaKind, ReviewStatus } from "@/lib/catalog/types";import { keyCombo, useModKey } from "@/lib/keys";import { buildEntries, folderAndDescendants, reviewInfo, splitByDate, toggleAll, TRASH_DAYS, type LibraryEntry } from "@/lib/library";@@ -233,6 +234,7 @@ function Inner() {// A guest or an account sees its own runs only; an account with neither its own GPU nor its own key can't add files yet.const visitor = useIsVisitor();const account = useIsAccount();+ const guest = useIsGuest() && visitor;const seen = useStatus().data?.viewer;const cantUpload = seen?.kind === "account" && !seen.gpu.connected && !seen.keys?.length;// Library → Shared: the share links, not results (no search, selection or filters there).@@ -506,16 +508,31 @@ function Inner() {}if (folder) return <Empty title="This folder is empty">Drag cards onto it, or select some and choose Move to folder.</Empty>;if (tab.id === "favorites") return <Empty title="Nothing liked yet">Mark the ones you like with the heart to keep them here.</Empty>;+ if (uploadsTab && guest)+ return (+ <Empty title="No uploads yet">+ <Link href={signInHref("signup", "/library?tab=uploads")} className="text-brand-text underline underline-offset-2">+ Sign up free+ </Link>{" "}+ to add your own files.+ </Empty>+ );if (uploadsTab && cantUpload)return (<Empty title="No uploads yet"><Link href="/connect" className="text-brand-text underline underline-offset-2">Connect your GPU- </Link>{" "}- or{" "}- <Link href="/settings#your-keys" className="text-brand-text underline underline-offset-2">- add a key- </Link>{" "}+ </Link>+ {/* "Add your fal.ai key" opens here, over the Library; a studio of open-source models only takes no keys. */}+ {seen.paidAllowed !== false && (+ <>+ {" "}+ or{" "}+ <button type="button" onClick={() => openAddKey("fal")} className="text-brand-text underline underline-offset-2">+ add a key+ </button>+ </>+ )}{" "}to add your own files.</Empty>);@@ -543,7 +560,23 @@ function Inner() {) : (<div className="min-w-0"><h1 className="font-heading text-[34px] leading-tight">Library</h1>- <p className="mt-1 max-w-2xl text-[15px] text-muted-foreground">{visitor ? (account ? "What you make on your own GPU or with your own key." : "What you make on your own GPU.") : "Everything you make, across cloud and open-source runs."}</p>+ <p className="mt-1 max-w-2xl text-[15px] text-muted-foreground">+ {/* A guest can't make anything yet; a studio of open-source models only takes no keys. */}+ {!visitor ? (+ "Everything you make, across cloud and open-source runs."+ ) : guest ? (+ <>+ <Link href={signInHref("signup", "/library")} className="text-brand-text underline underline-offset-2">+ Sign up free+ </Link>{" "}+ to keep what you make here.+ </>+ ) : account && seen?.paidAllowed !== false ? (+ "What you make on your own GPU or with your own key."+ ) : (+ "What you make on your own GPU."+ )}+ </p></div>)}<div className={cn("flex w-full items-center gap-2 sm:w-auto", sharedTab && "hidden")}>diff --git a/src/components/studio/media-slot.tsx b/src/components/studio/media-slot.tsxindex 00f758ad..64158c96 100644--- a/src/components/studio/media-slot.tsx+++ b/src/components/studio/media-slot.tsx@@ -2,11 +2,13 @@import { AudioLines, FileVideo, ImagePlus, Library, Loader2, Upload, X } from "lucide-react";import { nanoid } from "nanoid";+import Link from "next/link";+import { usePathname } from "next/navigation";import { useRef, useState } from "react";import { toast } from "sonner";import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";-import { useAskBeforeUpload, useAssets, type Asset } from "@/lib/api";+import { signInHref, useAskBeforeUpload, useAssets, useIsGuest, type Asset } from "@/lib/api";import { toastError } from "@/lib/refusals";import { postFile } from "@/lib/upload";import type { MediaKind } from "@/lib/catalog/types";@@ -138,10 +140,12 @@ export function SlotPreview({ value, className }: { value: Pick<SlotValue, "kindreturn <img src={value.preview} alt={value.name ?? ""} className={cn("size-full object-cover", className)} />;}-/** Grid of your uploads and results of one kind (or several). */+/** Grid of your uploads and results of one kind (or several). A guest's is empty, and says how to fill it. */export function LibraryGrid({ kinds, onPick }: { kinds: MediaKind[]; onPick: (v: SlotValue) => void }) {const [kind, setKind] = useState<MediaKind>(kinds[0] ?? "image");const assets = useAssets(undefined, kind);+ const guest = useIsGuest();+ const here = usePathname();return (<div className="space-y-2">{kinds.length > 1 && (@@ -176,6 +180,13 @@ export function LibraryGrid({ kinds, onPick }: { kinds: MediaKind[]; onPick: (v:</button>))}</div>+ ) : guest ? (+ <p className="px-1 py-6 text-center text-sm text-muted-foreground">+ <Link href={signInHref("signup", here)} className="text-brand-text underline underline-offset-2">+ Sign up free+ </Link>{" "}+ to keep your uploads and results here.+ </p>) : (<p className="px-1 py-6 text-center text-sm text-muted-foreground">Nothing here yet. Uploads and results show up here.</p>)}diff --git a/tests/e2e/guest-prompt.mjs b/tests/e2e/guest-prompt.mjsindex b081f527..d53aeea4 100644--- a/tests/e2e/guest-prompt.mjs+++ b/tests/e2e/guest-prompt.mjs@@ -6,7 +6,7 @@// A run keeps the run's words: a guest presses Generate in the Image studio ("Create a free account to run this"). A// guest's message in Assist opens no card (it's the owner's: "Assist runs on the studio owner's AI…" is its toast, as// an account's).-// Then an account with neither a GPU nor a key: Target photo opens "Connect your GPU or add a key to use your own files"+// Then an account with neither a GPU nor a key: Target photo opens "Connect your GPU or add a key to add your own files"// instead of the file chooser, its form inside it, closed when the page changes; an upload sent anyway is refused (403)// with the same card; Color Grading still grades its own picture. None on a message in Assist (it's the owner's, the// same toast), and its Generate in the Image studio opens "Connect your GPU to run this".@@ -33,7 +33,7 @@ const FACE_SWAP = "/apps/app-face-swap";const TARGET = /^Target photo \(required\): upload$/;const GUEST_CARD = "Create a free account to add your own files";const GUEST_RUN_CARD = "Create a free account to run this";-const GPU_CARD = "Connect your GPU or add a key to use your own files";+const GPU_CARD = "Connect your GPU or add a key to add your own files";const GPU_RUN_CARD = "Connect your GPU to run this";const browser = await launch();@@ -226,7 +226,7 @@ try {await settled(page);let s = await seen(page);await shot(page, "8-connect-gpu");- check("one card opens: Connect your GPU or add a key to use your own files", s.cards.length === 1 && s.cards[0] === GPU_CARD, JSON.stringify(s.cards));+ check("one card opens: Connect your GPU or add a key to add your own files", s.cards.length === 1 && s.cards[0] === GPU_CARD, JSON.stringify(s.cards));check("no error toast on top of it", s.errors.length === 0, JSON.stringify(s.errors));const sideways = await page.getByRole("dialog").evaluate((d) => d.scrollWidth - d.clientWidth);check("its form fits inside it (nothing cut off at the right)", sideways <= 0, `${sideways}px`);