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
Sidebar: Studios starts open, so a first visit sees the studios
Adarsh63cd2fb4f73b
diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.mdindex f023a182..aa9d5a73 100644--- a/docs/ARCHITECTURE.md+++ b/docs/ARCHITECTURE.md@@ -501,7 +501,7 @@ Settings (`src/server/settings.ts`) are typed and validated against allowed valu## UI (`src/components/`, `src/app/(studio)/`)-Liner-inspired shell (pale frame, rounded inset sheet, 13px sidebar rows, serif headlines, pill composer). The sidebar (`app-sidebar.tsx`, rows in `nav-items.ts`) remembers its rail and groups without making the layout dynamic (`SIDEBAR_STATE_SCRIPT` in `src/lib/nav.ts` runs before paint); since round 4 its Studios and Engine groups start folded (`DEFAULT_NAV_CLOSED`) and a remembered choice wins. Branded not-found and error pages, and `loading.tsx` skeletons on studio and gallery routes (`skeletons.tsx`; `/marketing` has its own).+Liner-inspired shell (pale frame, rounded inset sheet, 13px sidebar rows, serif headlines, pill composer). The sidebar (`app-sidebar.tsx`, rows in `nav-items.ts`) remembers its rail and groups without making the layout dynamic (`SIDEBAR_STATE_SCRIPT` in `src/lib/nav.ts` runs before paint); its Engine group starts folded and Studios open (`DEFAULT_NAV_CLOSED`), and a remembered choice wins. Branded not-found and error pages, and `loading.tsx` skeletons on studio and gallery routes (`skeletons.tsx`; `/marketing` has its own).- **Shell (round 4).** "Skip to content" is the first Tab stop, the sidebar is a `<nav aria-label="Main">`, and each page has one `<main>`. Full-screen studios (`fullScreenStudio()` in `nav.ts`: a Cinema, Canvas or Layers project, and every Assist page) fold the sidebar to its icon rail without touching the remembered choice: only `SidebarShell` writes the sidebar cookie, and only when that choice changes (`persistOpen` on `SidebarProvider`). Phones get a header with the menu and Search on gallery and settings pages (`phone-bar.tsx`). `intent-link.tsx` prefetches a link on hover or focus instead of when it appears on screen (rows marked `eager` still prefetch on view). Shortcut labels show ⌘ on Apple devices and Ctrl elsewhere (`src/lib/keys.ts`). Every Copy button goes through `copyText` (`src/lib/clipboard.ts`), so copying works on plain-http LAN addresses. Since round 5 part 1 `StudioChrome` (`app-sidebar.tsx`) wraps the shell in `SkillBuilderProvider` (see Skills that run by themselves).- **Command palette** (`command-palette.tsx`, ⌘K / Ctrl+K, also the sidebar's Search row and the phone header's Search): pages, Settings sections, apps, camera motions, effects, models (filtered by engine mode, and since round 4 part 4 by Settings → Models & licences through the access summary) and recent creations, ranked with typo tolerance in `src/lib/command-search.ts`. The catalog part is `GET /api/search-index`, a static, prerendered slim index built by `paletteIndex()` in `src/lib/palette-index.ts` and fetched the first time the palette opens. `modelHref()` opens a model where it runs (a studio with `?model=`, a Video tools mode, Image to 3D, an app, Layers, Captions / Trim / Translate), else the Models page filtered by `?q=`; the round-4 tools (Remove object, Genjutsu, FPS Boost, SDR to HDR, Export, the 3D scene) aren't in its lists yet, so their models open the Models page. Since round 4 part 3 every Image to 3D model and Meshy Rigging open `/image-to-3d`, and a Fuobe Original is listed once with both engines. Since round 4 part 4 it also lists "Models & licences" (`/settings/models`) and "Assist connectors". Since round 5 part 1 a "Run a skill" group lists "Run <skill>…" for every enabled recipe skill (`skillEntries`), and Settings lists "Training (AI-Toolkit)". It replaces `global-shortcuts.tsx` (⌘K used to go Home).diff --git a/docs/STATUS.md b/docs/STATUS.mdindex f60b29a0..a8d5aec3 100644--- a/docs/STATUS.md+++ b/docs/STATUS.md@@ -192,7 +192,7 @@ Model names are the defaults first, then the alternatives. "Demo" outputs are la| Live progress, cancel, retry, failure messages | ✅ | — | — | Results arrive over one server-sent-events stream per browser; polling slows to every 10 s while it's connected (1.5 s without it). Running tiles show the time spent and, once progress has moved, the time left; the newest single result offers next steps (Animate, Upscale, Edit for an image; Extend, Upscale, Add sound for a video; Lipsync, Voice change for audio) || Browser notifications | ✅ | — | — | Opt-in per browser (Settings → Notifications, with Send a test), plus a one-time offer once a job has run about 20 s. A job that finishes or fails while no Fuobe tab is on screen notifies once, from the live stream's leader tab; clicking it opens the result. The tab title counts running jobs. `tests/e2e/notifications.mjs` || Text, 3D and layer results | ✅ | — | — | Shown in the feed, viewer and Library: text with cue timings (copy, .txt / .srt / .vtt), .glb in `@google/model-viewer` (loaded on demand), layers as a composite with a named list, SVG as SVG, EXR frames as a .zip, and ProRes or FFV1 (which browsers don't play) as a file card. A rigged .glb plays its animation instead of turning; a splat shows its orbit video or picture and a .spz / .ply download, not a 3D view. A Fuobe Soul result's details show its Look and Finish |-| Studio UI (composer, model picker, viewer, galleries, navigation) | ✅ | — | — | Compact composer ("+" for upload / paste / library, one settings chip, Cmd/Ctrl+Enter), cmdk model picker with Recent / Starred / Best for this studio, typing before hydration kept, blockers that name the missing slot (on phones a line under the composer says why Generate is blocked); viewer with a phone bottom bar, drawer and swipe; covers rendered in ComfyUI on 480 of the 487 app, motion and effect cards (474 stills, 6 clips that play on hover), procedural previews on the rest; one prerendered page per hub mode; a skip link, one `<main>` per page, a shorter sidebar (Studios and Engine start folded), full-screen studios that fold it, a phone header with Search, links that prefetch on hover; branded 404 and error pages (unknown ids and hub modes answer a real 404), loading skeletons. Reuse of a run on a retired model brings it back on its replacement, with a toast saying what changed, and `?model=` with a retired id opens the replacement (round 4, part 5). Checked by `composer-flows.mjs`, `shell.mjs` and the 390 px sweep |+| Studio UI (composer, model picker, viewer, galleries, navigation) | ✅ | — | — | Compact composer ("+" for upload / paste / library, one settings chip, Cmd/Ctrl+Enter), cmdk model picker with Recent / Starred / Best for this studio, typing before hydration kept, blockers that name the missing slot (on phones a line under the composer says why Generate is blocked); viewer with a phone bottom bar, drawer and swipe; covers rendered in ComfyUI on 480 of the 487 app, motion and effect cards (474 stills, 6 clips that play on hover), procedural previews on the rest; one prerendered page per hub mode; a skip link, one `<main>` per page, a shorter sidebar (Engine starts folded; Studios starts open so first visits see the studios), full-screen studios that fold it, a phone header with Search, links that prefetch on hover; branded 404 and error pages (unknown ids and hub modes answer a real 404), loading skeletons. Reuse of a run on a retired model brings it back on its replacement, with a toast saying what changed, and `?model=` with a retired id opens the replacement (round 4, part 5). Checked by `composer-flows.mjs`, `shell.mjs` and the 390 px sweep || Search (⌘K / Ctrl+K palette) | ✅ | — | — | Searches pages, settings, apps, motions, effects, models (filtered to the engine mode) and recent creations, forgiving typos; a model opens where it runs, on its own engine (every Image to 3D model and Meshy Rigging now open `/image-to-3d`; an Original is listed once, as "Open source + cloud"). 33 models still open the filtered Models page (§3). Models switched off in Settings → Models & licences leave the palette; it finds Models & licences and Assist connectors. Checked by `shell.mjs` || Getting started and connections | ✅ app · ✅ ComfyUI when busy (tests, a live CPU run) · 🟢 Ollama when busy (tested against a stand-in), key tests and AI-Toolkit | Save & test for the fal.ai, Replicate and Anthropic keys, and the civitai key (Settings → LoRAs). Preferred provider: Automatic, fal.ai first or Replicate first (the Higgsfield key and "Higgsfield first" are gone since round 4, part 5) | Save & test for the ComfyUI address, its auth token, the isolated worker, and each local LLM server's URL, model and key (Settings → AI helper) | A Get started card on Home and Settings: Use paid models, Use your GPU, or Just try it (the demo). Every connection field tests what you typed before saving it and gives the reason on failure; a status strip shows each connection. Home's Start runs the job in Image, Video or Edit, and the line under the box says first what will run and what it costs. Settings → About & licences (`/settings/about`) lists every open model's licence and links to Settings → Models & licences. **A busy ComfyUI counts as up** (round 4, part 5): before, one 1.5–2 s check decided, so a busy ComfyUI could send new runs to demo. Now it counts as up if it answered in the last 2 minutes, or if its port accepts a connection and it answers a longer 10 s check; refused, an unknown host or an HTTP error still means down at once, and a port that never answers (a hung ComfyUI, a tunnel to a dead box) is down after the 10 s check. A chain step after real ComfyUI steps waits up to 60 s for ComfyUI ("Waits for ComfyUI to answer") before failing; cloud steps don't wait. **Ollama follows the same rules** since Fixes 5 (round 5, part 1): a late answer counts as busy if Ollama answered in the last 2 minutes, otherwise it gets one longer 10 s look if its port takes a connection, and a refused port or an HTTP error is down at once. A busy Ollama no longer sends Assist to the offline planner, and opening Assist waits at most 1.5 s for an Ollama that never answers. **Settings → Training · AI-Toolkit** (`/settings#training`, also in ⌘K; new in Fixes 5): the AI-Toolkit address (`http://127.0.0.1:8675` by default), an optional token and the photos folder, each with Save & test; the test says when the trainer wants a token or rejects one, when something else answers, and which trainings are still running, and the folder test checks it can be written without creating it. A saved token is never sent to a new, unsaved address, and the section is dimmed in Paid APIs only. Train dialogs' Open Settings now goes to the section that clears their blocker, and messages that named Settings sections that don't exist now name real ones (a test keeps it so). A live ComfyUI connected through the guide; no accepted key, no running Ollama and no real AI-Toolkit were tested || Engine choice (open only, paid only, both) | ✅ | — | — | Settings → Engine mode, or `FUOBE_ENGINE_MODE` |diff --git a/src/components/app-sidebar.tsx b/src/components/app-sidebar.tsxindex 240985b9..257b1401 100644--- a/src/components/app-sidebar.tsx+++ b/src/components/app-sidebar.tsx@@ -96,7 +96,7 @@ function ActiveItems({ group }: { group: NavGroupDef }) {);}-/** The folded groups: remembered in this browser, else Studios and Engine (DEFAULT_NAV_CLOSED), also on the server. */+/** The folded groups: remembered in this browser, else Engine (DEFAULT_NAV_CLOSED), also on the server. */function readClosed(): string[] {try {return parseClosed(typeof window === "undefined" ? null : localStorage.getItem(NAV_CLOSED_KEY));diff --git a/src/components/nav-items.ts b/src/components/nav-items.tsindex 2f68afdf..5b65e486 100644--- a/src/components/nav-items.ts+++ b/src/components/nav-items.ts@@ -63,7 +63,7 @@ export interface NavItem {export interface NavGroupDef {label: string;items: NavItem[];- /** Can be folded away; the choice is remembered (Studios and Engine start folded, see DEFAULT_NAV_CLOSED). */+ /** Can be folded away; the choice is remembered (Engine starts folded, see DEFAULT_NAV_CLOSED). */collapsible?: boolean;/** Two small items per row. */compact?: boolean;diff --git a/src/lib/nav.ts b/src/lib/nav.tsindex 451bf313..e9e04615 100644--- a/src/lib/nav.ts+++ b/src/lib/nav.ts@@ -3,10 +3,10 @@/** Group labels the user collapsed, in localStorage. */export const NAV_CLOSED_KEY = "fuobe:nav-closed";/**- * Folded until the user opens them (nothing remembered yet): the sidebar starts short, with Create- * and Library in view. ⌘K reaches everything in the folded groups too.+ * Folded until the user opens them (nothing remembered yet). Studios starts open, so a first visit shows+ * that the studios exist; Engine (models, workflows, settings) starts folded. ⌘K reaches folded rows too.*/-export const DEFAULT_NAV_CLOSED: readonly string[] = ["studios", "engine"];+export const DEFAULT_NAV_CLOSED: readonly string[] = ["engine"];/** Written by the shadcn SidebarProvider ("true" / "false"). */export const SIDEBAR_COOKIE = "sidebar_state";diff --git a/tests/e2e/shell.mjs b/tests/e2e/shell.mjsindex 8baa8aca..015facdd 100644--- a/tests/e2e/shell.mjs+++ b/tests/e2e/shell.mjs@@ -3,7 +3,7 @@//// 1. Phone: the sidebar drawer closes when a link in it is tapped (nav item, New creation, footer),// and its Search row opens the ⌘K palette.-// 2. A first visit folds Studios and Engine, with Library right after Create; a collapsed group+// 2. A first visit shows Studios and folds Engine, with Library right after Create; a collapsed group// still shows the page you're on.// 3. Landmarks: "Skip to content" is the first Tab stop, one <main>, the sidebar is <nav "Main">.// 4. ⌘K / Ctrl+K opens the palette; a typo still finds a page and Enter opens it; Esc gives focus@@ -51,10 +51,10 @@ try {{const ctx = await browser.newContext(DESKTOP);const page = await ctx.newPage();- step("a first visit folds Studios and Engine, and Library follows Create");+ step("a first visit shows Studios, folds Engine, and Library follows Create");await openRoute(page, `${app}/image`);const groups = await page.locator("[data-nav-group]").evaluateAll((els) => els.map((e) => [e.getAttribute("data-nav-group"), e.getAttribute("data-open")]));- assert.deepEqual(groups, [["create", "true"], ["library", "true"], ["studios", "false"], ["engine", "false"]]);+ assert.deepEqual(groups, [["create", "true"], ["library", "true"], ["studios", "true"], ["engine", "false"]]);step("Skip to content is the first Tab stop; one <main>; the sidebar is a navigation landmark");await page.keyboard.press("Tab");diff --git a/tests/nav.test.ts b/tests/nav.test.tsindex 07b76716..2671bdc9 100644--- a/tests/nav.test.ts+++ b/tests/nav.test.ts@@ -45,23 +45,24 @@ describe("remembered sidebar state", () => {expect(parseClosed("[]")).toEqual([]);});- it("folds Studios and Engine until the user chooses (nothing stored, or nothing readable)", () => {- expect(parseClosed(null)).toEqual(["studios", "engine"]);- expect(parseClosed(undefined)).toEqual(["studios", "engine"]);- expect(parseClosed("not json")).toEqual(["studios", "engine"]);- expect(parseClosed('{"a":1}')).toEqual(["studios", "engine"]);+ it("folds Engine, and shows Studios, until the user chooses (nothing stored, or nothing readable)", () => {+ expect(parseClosed(null)).toEqual(["engine"]);+ expect(parseClosed(undefined)).toEqual(["engine"]);+ expect(parseClosed("not json")).toEqual(["engine"]);+ expect(parseClosed('{"a":1}')).toEqual(["engine"]);// A fresh copy each time: a caller adding to it can't change the defaults.parseClosed(null).push("create");- expect(parseClosed(null)).toEqual(["studios", "engine"]);+ expect(parseClosed(null)).toEqual(["engine"]);});it("only folds groups that can fold, and keeps Create and Library in view", () => {const foldable = NAV.filter((g) => g.collapsible).map((g) => groupId(g.label));for (const id of DEFAULT_NAV_CLOSED) expect(foldable).toContain(id);expect(NAV.map((g) => g.label).slice(0, 2)).toEqual(["Create", "Library"]);- // The always-open part of the sidebar is short: Create and Library hold 15 rows, not 46.- const open = NAV.filter((g) => !DEFAULT_NAV_CLOSED.includes(groupId(g.label))).flatMap((g) => g.items);- expect(open.length).toBeLessThanOrEqual(15);+ // The part that can't fold stays short: Create and Library hold 15 rows; Studios below them can be folded away.+ const always = NAV.filter((g) => !g.collapsible).flatMap((g) => g.items);+ expect(always.length).toBeLessThanOrEqual(15);+ expect(DEFAULT_NAV_CLOSED).not.toContain("studios");});it("prefetches only the rows most visits go to next", () => {