Skip to content

armgit / fuobe

Public Imported from GitHub
0

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.

Docs for round 3: status, architecture, README and research index

Claude5a31ca185673
diff --git a/README.md b/README.md
index 5690a3d2..323f6821 100644
--- a/README.md
+++ b/README.md
@@ -1,14 +1,22 @@
# Fuobe
**An open-source AI image, video and audio studio — a 1:1 alternative to Higgsfield.**
-Use the same frontier paid models Higgsfield uses (Nano Banana Pro, Seedance 2.5, Kling 3.0, Veo 3.1, Seedream 5, GPT Image 2.5, FLUX.3, MiniMax, ElevenLabs…, and Higgsfield's own Soul and Cinema Studio) with your own fal.ai / Replicate / Higgsfield key, **or** run the equivalent open-weight workflows on your own GPU through **ComfyUI**. Same studio, same apps, same camera motions — flip one switch.
-
-- **Assist:** describe the whole job in a chat; the agent picks models, shows the plan and its cost, runs it when you approve, checks the results and chains the next step. Runs on Claude or a local Ollama model
-- **MCP:** other agents (Claude Code, Claude Desktop, any MCP client) can drive the studio through `/api/mcp`
-- **Studios:** Image · Video (text, image, start/end frame, references, multi-shot, draft mode) · Edit · Inpaint & Draw to Edit · Color grading · Camera motions · Effects · Storyboard (and turn it into a film) · Apps · Lipsync & avatars · Motion control · Edit / Extend / Reframe video · Video tools (matte, relight, depth, join clips, match colors) · Audio (speech with voice picker and cloning, dialogue, voice change, translate, SFX, music, sound for video) · Library
+Use the same frontier paid models Higgsfield uses (Nano Banana Pro, Seedance 2.5, Kling 3.0, Veo 3.1, Seedream 5, GPT Image 2.5, FLUX.3, Gemini Omni, MiniMax, ElevenLabs…, and Higgsfield's own Soul and Cinema Studio) with your own fal.ai / Replicate / Higgsfield key, **or** run the equivalent open-weight workflows on your own GPU through **ComfyUI**. Same studio, same apps, same camera motions — flip one switch.
+
+- **Assist:** describe the whole job in a chat; the agent picks models, shows the plan and its cost, runs it when you approve, checks the results and chains the next step. Free / Smart / Manual modes, 20 built-in **skills** (SKILL.md playbooks, or upload your own), **projects** with instructions and up to 20 sources (links, files and PDFs, elements, notes), and **memory**. Runs on Claude, a local Ollama model, or an offline planner
+- **MCP:** other agents (Claude Code, Claude Desktop, any MCP client) can drive the studio through `/api/mcp`, including whole studio jobs (layers, restyle, dub, faceless episode, ads, captions, Katana) and the skills as prompts
+- **Create:** Image · Video (text, image, start/end frame, reference images and clips, multi-shot, draft mode) · Edit · **Layers** (split a flat image into editable layers, edit text, regional edits, cropped or positioned zips) · Inpaint & Draw to Edit · Color grading · Camera motions · Effects · Storyboard (and turn it into a film) · **Canvas** (wire prompts, files and models into node workflows; every template in a cloud and an open-source version) · Apps
+- **Studios:**
+ - **Cinema Studio** — projects and scenes, Director's Panel (camera, lens, 50 palettes, lighting rig, Emotion Wheel), # camera moves, AI Director, image grids, Soul Cast and Soul Location
+ - **Shorts Studio** — restyle up to 2 minutes of your own footage with 44 looks (or your own references), in segments you can regenerate, stitched back under your sound; **Mixed Media** — 33 looks for 1–10 s clips with per-preset settings and a preview frame
+ - **Marketing Studio** (84 templates), **Click to Ad**, **Ads Studio** (brand kit from your website, up to 20 ads per product in 1:1 / 4:5 / 9:16) and **Ad Multiplier**
+ - **Moodboards**, **Color signature** (Soul HEX palettes), **Photodump / Instadump**, **Fashion Factory**, **Character Sheet**
+ - **Faceless Studio** and **Explainer** — channels, scripts, narrated and subtitled episodes with a timeline editor
+ - **Translate & dub** (your voice, lip-synced, over the original background on the open engine), **Captions** (transcribe, edit, burn in), **Trim**, **Katana** (recreate a reference edit with your subject), **Image to 3D**, Lipsync & avatars, Motion control, Edit / Extend / Reframe video, Video tools (matte, relight, depth, join clips, match colors), Upscale, Audio (speech with voice picker and cloning, dialogue, voice change, sound effects, music, sound for video), and a Virality predictor (a labelled heuristic)
+- **Library:** all your results (images, videos, audio, text, 3D) with layouts, filters, folders, bulk zip download and a Trash with 30-day restore; results arrive live
- **Elements:** save characters, locations, props, styles and voices once, then `@mention` them in any prompt; train a character (Soul ID, a fal LoRA, or AI-Toolkit on your GPU) for a consistent face
-- **Catalog:** 100 cloud models + 49 open-source models, 121 apps, 108 camera motions (mix any two), 255 effects
-- **Open-source engine:** 73 API-format ComfyUI workflows exported from the official templates or community packs and validated against real ComfyUI node definitions, plus 170 researched LoRAs (camera moves, VFX) wired into the presets
+- **Catalog:** 157 cloud models + 73 open-source models (plus 32 hidden helper models: chain steps, self-tests, browser tools), 123 apps, 108 camera motions (mix any two), 255 effects
+- **Open-source engine:** 115 API-format ComfyUI workflows (official templates, community packs and hand-built graphs) validated against real ComfyUI node definitions, plus 43 researched LoRAs (camera moves, VFX) attached to 55 motion, effect and app presets
- **No keys? No GPU?** Demo mode lets you click through everything with clearly-labelled placeholder outputs.
> Project status, what works, what's verified and what's left: **[docs/STATUS.md](docs/STATUS.md)** (also in-app at `/status`).
@@ -25,7 +33,7 @@ Open **Settings** and pick an **Engine mode**:
| Engine mode | What the install offers | Needs |
|---|---|---|
| **Open source + paid APIs** (default) | A Cloud / Open source switch in every studio | A paid-API key and/or a ComfyUI server |
-| **Open source only** | Only open-weight models on your ComfyUI; paid models are hidden and rejected by the server, and prompt enhancement never calls a paid API on its own | A ComfyUI server |
+| **Open source only** | Only open-weight models on your ComfyUI; paid models are hidden and rejected by the server, and text steps never call a paid API on their own | A ComfyUI server |
| **Paid APIs only** | Only hosted frontier models; open-source models are hidden and rejected | A fal.ai or Replicate key |
The mode can also be set with `FUOBE_ENGINE_MODE=both|open|cloud`. Then connect what you have:
@@ -34,48 +42,84 @@ The mode can also be set with `FUOBE_ENGINE_MODE=both|open|cloud`. Then connect
|---|---|---|
| A [fal.ai](https://fal.ai/dashboard/keys) key | `fal.ai API key` (or `FAL_KEY`) | Every cloud model and cloud app |
| A Replicate token | `Replicate API token` (or `REPLICATE_API_TOKEN`) | Fallback route for models Replicate hosts; **Preferred provider** (or `FUOBE_CLOUD_PROVIDER`: `auto`, `fal`, `replicate` or `higgsfield`) picks which one goes first |
-| A [Higgsfield API](https://console.higgsfield.ai) key | `Higgsfield API key` as `KEY_ID:KEY_SECRET` (or `HIGGSFIELD_API_KEY`, `HF_KEY`, or `HF_API_KEY` + `HF_API_SECRET`) | Soul 2.0 / Soul Cinema / Soul v1, Soul ID training, Genjutsu, Cinema Studio 4.0, Marketing Studio, plus extra routes for Seedance, Kling, Wan, MiniMax… |
-| A GPU running ComfyUI | `ComfyUI server URL` (or `COMFYUI_URL`, default `http://127.0.0.1:8188`) | Every open-source model, app, motion and effect |
-| An Anthropic key | `Anthropic API key` (or `ANTHROPIC_API_KEY`) | The full **Assist** agent, prompt **Enhance** and storyboard splitting with Claude |
-| Ollama | `Prompt enhancement` → Ollama (`OLLAMA_URL`, `OLLAMA_MODEL`, default `qwen3:8b`) | Local prompt enhancement, storyboard splitting and the Assist agent (tool calling) |
-| AI-Toolkit (ostris) on your GPU | `AI_TOOLKIT_URL` (+ `AI_TOOLKIT_AUTH`, `AI_TOOLKIT_DATASET_DIR`) and `COMFYUI_LORAS_DIR` | Train character LoRAs from an element's photos; the result is copied into ComfyUI and used whenever you @mention the character |
+| A [Higgsfield API](https://console.higgsfield.ai) key | `Higgsfield API key` as `KEY_ID:KEY_SECRET` (or `HIGGSFIELD_API_KEY`, `HF_KEY`, or `HF_API_KEY` + `HF_API_SECRET`) | Soul 2.0 / Soul Cinema / Soul v1 with live presets, Soul ID training, Genjutsu, Cinema Studio 4.0, Marketing Studio, Ads Studio, plus extra routes for Seedance, Kling, Wan, MiniMax… |
+| A GPU running ComfyUI | `ComfyUI server URL` (or `COMFYUI_URL`, default `http://127.0.0.1:8188`; `COMFYUI_TOKEN` if it sits behind a proxy) | Every open-source model, app, motion, effect and studio route |
+| An Anthropic key | `Anthropic API key` (or `ANTHROPIC_API_KEY`) | The full **Assist** agent (Smart and Manual modes), text steps (translate, write, scripts, ad copy, brand research), prompt **Enhance** and storyboard splitting with Claude |
+| Ollama | `Prompt enhancement` → Ollama (`OLLAMA_URL`, `OLLAMA_MODEL`, default `qwen3:8b`; `FUOBE_ENHANCE_PROVIDER`) | The same text steps and the Assist agent on a local model (tool calling) |
+| AI-Toolkit (ostris) on your GPU | `AI_TOOLKIT_URL` (+ `AI_TOOLKIT_AUTH`, `AI_TOOLKIT_DATASET_DIR`) and `COMFYUI_LORAS_DIR` | Train character and style LoRAs from an element's photos or a moodboard; the result is copied into ComfyUI and used whenever you @mention it |
+
+Keys are stored in a local SQLite database (`data/fuobe.db`) and never sent to the browser. Generated media is saved under `data/files/`. Fuobe is single-user.
+
+### Self-hosting and security
-Keys are stored in a local SQLite database (`data/fuobe.db`) and never sent to the browser. Generated media is saved under `data/files/`. Fuobe is single-user. Before you open it to a network, set a password (**Settings → Security**, or `FUOBE_PASSWORD`): every page and API call then needs a sign-in or an API token (`Authorization: Bearer fuobe_…`), which you create on the same page for scripts and MCP clients:
+Before you open Fuobe to a network, set a password (**Settings → Security**, or `FUOBE_PASSWORD`): every page and API call then needs a sign-in or an API token (`Authorization: Bearer fuobe_…`), which you create on the same page for scripts and MCP clients:
```bash
claude mcp add --transport http fuobe http://localhost:3000/api/mcp --header "Authorization: Bearer fuobe_…"
```
+| Variable | What it does |
+|---|---|
+| `FUOBE_PASSWORD` | Turns sign-in on; a password set this way can't be changed from Settings |
+| `FUOBE_ALLOWED_ORIGINS` | Extra hosts Fuobe is reached at, comma-separated. Without a password, Fuobe answers only on IP addresses, localhost, single-label and LAN names (`.local`, `.lan`, `.home.arpa`, `.internal`) and the machine's hostname; add any other domain (a reverse proxy, a tunnel, a Tailscale name), or `*` to turn the check off. Also counts as "same site" for the cross-site write check behind a proxy that forwards neither Host nor X-Forwarded-Host |
+| `FUOBE_TRUST_PROXY=1` | Behind a reverse proxy: trust the last `X-Forwarded-For` hop, so wrong passwords lock out only that visitor (60 s). Without it, everyone shares one limit: slowed to one attempt every 4 s, never locked |
+| `FUOBE_ALLOW_PRIVATE_URLS=1` | Let inputs, product links and project sources be fetched from private / LAN addresses (they are refused by default) |
+| `FUOBE_DATA_DIR` | Where the database, files and `auth.json` live (default `./data`) |
+| `FUOBE_DEMO_MODE` | `auto` (default: demo outputs only when a model's provider isn't connected), `on` or `off` |
+| `FUOBE_SKILLS_DIR` | Where Assist's built-in skills are read from (default `./skills`) |
+| `FUOBE_ENGINE_MODE`, `FUOBE_CLOUD_PROVIDER`, `FUOBE_ENHANCE_PROVIDER` | The Settings choices above |
+| `OPENAI_API_KEY`, `GEMINI_API_KEY` | Read into Settings; no feature uses them yet |
+
+Uploads up to 200 MB work with sign-in on. Inputs given as URLs are fetched only from public addresses unless `FUOBE_ALLOW_PRIVATE_URLS=1`.
+
### Setting up the open-source engine
-1. Install ComfyUI on a machine with a GPU (24 GB VRAM covers almost every workflow; Z-Image Turbo, Wan 2.2 5B and SDXL run in 8–16 GB).
+1. Install ComfyUI on a machine with a GPU (24 GB VRAM covers almost every workflow; Z-Image Turbo, Wan 2.2 5B and SDXL run in 8–16 GB). `scripts/comfy/install-comfyui.sh` installs ComfyUI and the 14 custom node packs at the commits Fuobe was validated with (`NC_PACKS=1` adds the non-commercial ComfyUI-Whisper).
2. Open **ComfyUI workflows** in Fuobe. Each workflow lists the model files it needs, which are already installed (✓) and a **Copy install commands** button that produces the exact `wget` / `git clone` lines.
3. Switch the engine toggle (top-right of every studio) to **Open source**.
+LatentSync 1.6 and ThinkSound are optional and run on a separate, isolated ComfyUI (`scripts/comfy/install-isolated-worker.sh`, port 8189); see [`scripts/comfy/README.md`](scripts/comfy/README.md). Open dubbing, Faceless and UGC narration clone a voice with Chatterbox, so they need a voice sample (record or upload one).
+
To check a ComfyUI connection end to end without downloading any models:
```bash
pnpm dev &
-pnpm test:e2e:comfyui http://localhost:3000 # runs two weight-free workflows through the full pipeline
+pnpm test:e2e:comfyui http://localhost:3000 # runs the weight-free workflows through the full pipeline (mux, trim, segment, captions, meta-batch), checked with ffprobe when installed
```
## Development
```bash
-pnpm typecheck && pnpm lint && pnpm test # TypeScript, ESLint, Vitest
+pnpm typecheck && pnpm lint && pnpm test # TypeScript, ESLint, Vitest (79 files, 1128 tests)
pnpm build # production build
-pnpm gen:catalog # regenerate cloud models, Higgsfield models, LoRA map and icon map from docs/research/*.json
-pnpm dev:clean # clear the Turbopack cache if the dev server gets stuck reloading
+pnpm gen:catalog # regenerate cloud models, Higgsfield models and presets, LoRA map and icon map from docs/research/*.json
+pnpm dev:clean # clear the Turbopack cache if the dev server gets stuck reloading or serves stale CSS
+node scripts/gen-demo-3d.mjs # regenerate the demo GLB and turntable (needs ffmpeg)
+```
+
+Browser checks (the app must be running; demo mode is fine; Playwright and Chromium are picked up from the repo, a global install or `$CHROMIUM_PATH`):
+
+```bash
+pnpm test:e2e:mobile [url] [--light|--dark] # no route may scroll sideways at 390 px (every route, hub mode and sample id)
+pnpm test:e2e:shell [url] # sidebar drawer, collapsed groups, settings deep links, keyboard Show more
+pnpm test:e2e:comfyui [url] # the open engine against a live ComfyUI
+node tests/e2e/composer-flows.mjs [url] # first paint, typing before hydration, paste, upload cancel, phone toolbar
+node tests/e2e/layers.mjs [url] # Layers regressions
+node tests/e2e/canvas-smoke.mjs [url] --perf=60 # Canvas save, rename, trash → re-run, keystroke timing
+node tests/e2e/cinema-shortcuts.mjs [url] # Ctrl/Cmd+Enter only from Cinema's prompt bar
+node tests/e2e/assist-flows.mjs [url] # skills, memory, projects, skill upload, modes, phone sheet
```
-- `docs/ARCHITECTURE.md` — how requests flow from the composer to providers and back
-- `docs/research/` — the research this is built on (Higgsfield inventory and API, paid model APIs, ComfyUI equivalents, workflow library, Liner UI language)
+- `docs/ARCHITECTURE.md` — how requests flow from the composer to providers and back, pipelines, live updates, security, each studio's modules
+- `docs/research/` — the research this is built on (Higgsfield inventory, studios, image studios, marketing and agents, API; paid model APIs parts 1–3; ComfyUI equivalents parts 1–3; workflow library; Liner UI language)
+- `docs/workers/tribe-v2.md` — the optional, non-commercial TRIBE v2 worker contract for the Virality predictor
- `scripts/comfy/` — the pipeline that exports and validates the ComfyUI workflow library
+- `skills/` — Assist's built-in skills (`<name>/SKILL.md` with frontmatter: name, title, description, when_to_use, icon, studio, tags, offline hints)
## Tech
-Next.js 16 (App Router, Cache Components) · React 19 · Tailwind CSS v4 · shadcn/ui (Radix) · TanStack Query · SQLite (better-sqlite3) · fal.ai queue API · Replicate predictions API · Higgsfield API · ComfyUI HTTP + WebSocket API · Anthropic SDK (Claude) · WebGL · Vitest · Playwright.
+Next.js 16 (App Router, Cache Components) · React 19 · Tailwind CSS v4 · shadcn/ui (Radix) · TanStack Query · SQLite (better-sqlite3) · zod · fal.ai queue API · Replicate predictions API · Higgsfield API · ComfyUI HTTP + WebSocket API · Anthropic SDK (Claude) · Ollama · @xyflow/react (Canvas) · @google/model-viewer + three (3D) · unpdf (PDF text) · cmdk · WebGL · server-sent events · Vitest · Playwright.
## License notes
-Fuobe's code is open source. Model weights have their own licenses: several open models used here are **non-commercial** (FLUX.1/FLUX.2 [dev], inswapper, MMAudio weights, some LoRAs) — the Workflows page and `docs/research/comfyui-oss.md` list each license. Cloud models are billed by your provider.
+Fuobe's code is open source. Model weights have their own licenses: several open models used here are **non-commercial** (FLUX.1/FLUX.2 [dev], inswapper, MMAudio weights, USO's FLUX.1 base, some LoRAs, ComfyUI-Whisper's node code, TRIBE v2), HunyuanVideo-Foley and Hunyuan3D 2.1 exclude the EU, UK and South Korea, and Stable Audio 3 is free under US$1M revenue (Stability Community licence). The Workflows page and `docs/research/comfyui-oss*.md` list each license. Cloud models are billed by your provider.
diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md
index bb736613..aedd53c8 100644
--- a/docs/ARCHITECTURE.md
+++ b/docs/ARCHITECTURE.md
@@ -1,117 +1,227 @@
# Architecture
-Fuobe is a single Next.js 16 app. The browser talks only to Fuobe's own API; the server talks to providers (fal.ai, Replicate, Higgsfield, ComfyUI) and stores every input and output locally so the library never depends on a provider's expiring URLs.
+Fuobe is a single Next.js 16 app. The browser talks only to Fuobe's own API; the server talks to providers (fal.ai, Replicate, Higgsfield, ComfyUI, and Claude or Ollama for text) and stores every input and output locally, so the library never depends on a provider's expiring URLs.
```
- proxy.ts (sign-in: session cookie or API token, once a password is set)
+ proxy.ts: hostAllowed() (no password set) → crossSite() → sign-in (session cookie or API token)
│
-Composer (React) ──POST /api/generations──▶ applyMentions() src/lib/catalog/elements.ts
- │ @handles → reference images + legend, or a trained LoRA / Soul ID
- applySketch() src/lib/catalog/sketch.ts
- │ painted mask → native inpaint route, or a red-tinted copy + instructions
- │ drawing → instruction image (edit), annotated first frame or motion paths (video)
+Composer / studio (React) ──POST /api/generations (or a studio route that builds a pipeline)
+ │
+ prepare() src/server/generations.ts
+ │ withSignatureWords() palette / look sentences join the prompt
+ │ applyMentions() @handles → reference images + legend, or a trained LoRA / Soul ID
+ │ applySketch() mask → native inpaint route or red-tinted copy; drawing → instruction image / motion paths
▼
planGeneration() src/lib/catalog/plan.ts
- │ model + preset + attachments
- │ → operation (t2v / i2v / flf2v / edit / avatar …)
- │ → prompt (preset template, LoRA trigger, Mix of a second preset)
- │ → params, LoRAs, number of jobs
+ │ model + preset + attachments → operation, prompt, params, LoRAs, number of jobs
+ │ NEEDS / requires / minImages: says which input is missing
▼
engine mode check Settings → Engine mode (both / open / cloud)
- │ rejects models of a disabled engine
- chooseRoute() src/server/generations.ts
- │ first configured provider for that operation
- │ (Settings → Preferred provider sets fal/Replicate order),
- │ else the demo provider (Settings → Demo mode)
+ chooseRoute() first configured provider for that operation
+ │ (Preferred provider sets fal/Replicate order; "llm" for text steps),
+ │ else the demo provider (Settings → Demo mode)
+ ▼
+ createGenerations() / createPipeline() one row per job; dependsOn for chained steps
+ │ SQLite row (queued) → submit() in the background
+ │ (a row with depends_on waits until every generation it names succeeds,
+ │ then gets their outputs through its chain slots: see Pipelines)
+ │ upload inputs to the provider (prepareFile), optional prompt enhancement,
+ │ adapter.submit() → external job id (generation_runs.submitted_at)
▼
- SQLite row (queued) ─ submit() in the background
- │ (a row with depends_on waits until every generation it names
- │ succeeds, then gets their outputs as inputs: see Chained jobs)
- │ upload inputs to the provider (prepareFile)
- │ optional prompt enhancement (src/server/enhance.ts)
- │ adapter.submit() → external job id
+ runner (started at boot by src/instrumentation.ts; every 1.5 s, plus a 500 ms lane for jobs near the end)
+ │ adapter.poll() → queued / running (progress) / succeeded / failed
+ │ timeouts: 45 min running or 4 h queued (generation_runs), cancel at the provider first
+ │ on success: outputs downloaded → data/files → assets table (text inlined, meta kept)
+ │ also: poll trainings, launch dependent steps whose inputs are ready
▼
- runner (every 1.5 s) ── adapter.poll() → queued / running (progress) / succeeded / failed
- │ on success: download every output → data/files → assets table
- │ also: poll trainings, launch dependent jobs whose input is ready
+ SQLite TEMP triggers → src/server/live.ts ──GET /api/generations/stream (SSE)──▶ one stream per browser
▼
-Feed (React Query, polls while jobs are active) ◀── GET /api/generations
+Feed, Library, studios (React Query caches patched by id; polls every 10 s while the stream is connected)
```
## Catalog (`src/lib/catalog/`)
| file | what |
|---|---|
-| `types.ts` | `ModelDef`, `ModelRoute`, `FieldMap`, `Preset`, `GenerationRequest`, `Generation` |
-| `cloud-models.generated.ts` | fal / Replicate models. **Generated** by `scripts/gen-cloud-models.py` from the verified API schemas in `docs/research/paid-model-apis.json` and `paid-model-apis-2.json` (key fields merged, per-route options) — field names, enums, defaults and prices are never typed by hand |
-| `higgsfield-models.generated.ts` | Higgsfield-only models (Soul, Genjutsu, Cinema Studio, Marketing Studio…) and extra Higgsfield routes for models also on fal. **Generated** by `scripts/gen-higgsfield-models.py` from `docs/research/higgsfield-api.json` |
-| `models.ts` | Open-source models (ComfyUI workflow ids), the browser-only Color Grade model (`local` provider) + the generated cloud lists |
+| `types.ts` | `ModelDef`, `ModelRoute`, `FieldMap`, `ModelOptions`, `Pricing`, `Preset`, `GenerationRequest`, `ChainSlot`, `GenInput`, `Generation`, `OutputFile` |
+| `cloud-models.generated.ts` | fal / Replicate models. **Generated** by `scripts/gen-cloud-models.py` from the verified API schemas in `docs/research/paid-model-apis.json`, `-2.json` and `-3.json` (key fields merged, per-route options, sliders and controls read from the research, required inputs filled from their documented defaults) — field names, enums, defaults and prices are never typed by hand |
+| `higgsfield-models.generated.ts` | Higgsfield-only models (Soul, Genjutsu, Cinema Studio, Marketing Studio, Ads Studio…) and extra Higgsfield routes for models also on fal. **Generated** by `scripts/gen-higgsfield-models.py` from `docs/research/higgsfield-api.json` |
+| `higgsfield-presets.generated.ts` | 106 Soul + 33 Soul 2.0 presets (ids, categories, descriptions), the 14 Photodump / Instadump packs and the 6 Fashion Factory templates. **Generated** by `scripts/gen-higgsfield-presets.py` from `higgsfield-image-studios.json`; the fallback for the style picker |
+| `models.ts` | Open-source models (ComfyUI workflow ids), fal utility models (Join clips, and the hidden Extract frame, Crop to size, Mix voice and music, Level audio, Forced Alignment), the browser-only models (`local` provider: Color Grade, Ad compositor) + the generated cloud lists (whose hidden chain helpers include Trim video, Add soundtrack, Voice timeline and Extract soundtrack) |
+| `llm-models.ts` | `text-llm` (cloud: Claude, else Ollama) and `oss-text-llm` (open: Ollama only), kind `text`, ops `translate` and `write` |
| `elements.ts` | Elements (character / location / prop / style / voice), `@handle` parsing and `applyMentions` |
| `sketch.ts` | `applySketch` (masks and drawings → the right operation and inputs) |
| `storyboard.ts` | Storyboard models per engine, scene splitting and frame prompts |
-| `training.ts` | Training targets (Soul ID, fal Z-Image LoRA, AI-Toolkit) and the AI-Toolkit job config |
-| `apps.ts`, `motions.ts` | 118 apps, 108 camera motions, 255 effects: prompt templates, input slots, option pickers, cloud and open routes |
+| `training.ts` | Training targets (Soul ID, fal Z-Image LoRA, AI-Toolkit), `aiToolkitJob` (character or style preset) and `trainingCaption` |
+| `apps.ts`, `motions.ts` | 123 apps, 108 camera motions, 255 effects: prompt templates, input slots, option pickers, cloud and open routes. `APP_ALIASES` keeps renamed app ids working |
| `oss-loras.generated.ts` | Higgsfield preset name → researched Wan LoRAs + trigger words (`scripts/gen-oss-loras.py`) |
-| `index.ts` | Lookup helpers; attaches LoRAs / Wan Fun Camera poses / ReActor to open routes |
+| `index.ts` | Lookup helpers; attaches LoRAs / Wan Fun Camera poses / ReActor to open routes; registers the LLM models |
| `plan.ts` | Pure planning logic (operation inference, prompt composition, batching, input validation, cost estimate) |
-| `payload.ts` | `buildPayload(FieldMap, GenInput)` and `extractMedia(response)` |
+| `payload.ts` | `buildPayload(FieldMap, GenInput)`, `extractMedia(response)`, `extractOutputs(response, op)` (structured outputs) and `noOutputsError` |
+| `palettes.ts` | `applySignature` (Color signature / Moodboard picks → native palette, style id, or words) and `withSignatureWords` |
+| `cinema.ts`, `canvas.ts`, `shorts.ts`, `shorts-models.ts`, `mixed-media.ts`, `marketing.ts`, `faceless.ts`, `packs.ts` | Each studio's data and pure planner, shared by client and server (see Studios) |
+
+A **model** has one **route** per (operation, provider). A route's `FieldMap` translates Fuobe's canonical input (`prompt`, `images`, `image2`, `endImage`, `video`, `videos`, `audio`, `audios`, `aspectRatio`, `duration`, `voice`, `voiceAudio`, `dialogue`, `shots`, `draft`, `startTime` / `endTime`, `fps`, `palette`, `styleId`, `numLayers`, `sourceLanguage`, `targetLanguage`…) to the provider's field names. Dotted keys (`voice_settings.stability`) are written as nested objects; `setPath` ignores `__proto__`, `constructor` and `prototype`. `defaults` are sent unless the request sets them (applied before the canonical fields), `fixed` always wins (applied after). `sourceLanguage` may be `{key, values}`, matched to the API's list. `palette {key, format, background}` converts hex colours to each API's shape (Recraft on fal, Recraft on Higgsfield, Ideogram members with falling weights, plain lists). `tracks` and `timeline` build fal FFmpeg compose timelines. Masks are converted to each API's convention (white = change, black = change, or alpha) by a small PNG codec (`src/server/png.ts`).
-A **model** has one **route** per (operation, provider). A route's `FieldMap` translates Fuobe's canonical input (`prompt`, `images`, `endImage`, `aspectRatio`, `duration`, `voice`, `dialogue`, `shots`, `draft`…) to the provider's field names (`start_image_url`, `tail_image_url`, `"8s"`, `image_size: "landscape_16_9"`, `multi_prompt`…). Dotted keys (`voice_settings.stability`) are written as nested objects. Masks are converted to each API's convention (white = change, black = change, or alpha) by a small PNG codec (`src/server/png.ts`).
+`ModelOptions` describe what the composer shows: aspect ratios, resolutions, durations, audio, end frame, multi-shot, draft mode, voices and voice cloning, languages, sliders, enum controls, provider-fetched preset lists, motion paths, and since round 3 `minImages` + `imageLabels` (try-on: "Person photo", "Add garment"), `promptless`, `maxVideos` / `maxAudios` (reference clips), `sourceLanguages` and `requires` ({images?, prompt?, msg}, checked in `planGeneration` before any job is created). `Pricing` gains `byResolution` (a price per `params.resolution`) and `inputSeconds` (per-second prices doubled for edits billed on input + output).
-`ModelOptions` describe what the composer shows: aspect ratios, resolutions, durations, audio, end frame, multi-shot (`native` per-shot prompts or `prompt`-written shots), draft mode, voices and voice cloning, languages, sliders, extra enum controls (Cinema Studio's Director), provider-fetched preset lists (Soul styles, Genjutsu looks) and motion paths (Wan-Move).
+`plan.ts` adds `promptOptional(model, op)` (promptless ops such as trim, mux, captions, layers, image-to-3d, vectorize), NEEDS entries with `oneOf` and `media` (transcribe and separate-audio take audio or video), a server-only check that rejects inputs no route can send (it needs the field maps the slim client catalog strips), and `inferOperation` picking `ref2v` when clips are attached.
-A **preset** (app / motion / effect) has a `cloud` and an `open` route, each naming a model and operation, optional fixed params and LoRAs. Apps pin their model; motions and effects add their camera/effect prompt to whichever video model the user picks (LoRAs only apply to the preset's own open model).
+A **preset** (app / motion / effect) has a `cloud` and an `open` route, each naming a model and operation, optional fixed params and LoRAs. Apps pin their model; motions and effects add their camera / effect prompt to whichever video model the user picks (LoRAs only apply to the preset's own open model). `PresetChoice.extra` lets an option set model `params.extra`.
## Providers (`src/server/providers/`)
-All adapters implement `prepareFile`, `submit`, `poll`, `cancel`, `test`.
+All adapters implement `prepareFile`, `submit`, `poll`, `cancel`, `test`. `RemoteOutput` carries optional `text` and `meta`.
-- **fal** — queue API (`queue.fal.run/<endpoint>`); always uses the `status_url` / `response_url` returned at submit (nested endpoint ids poll under the app root). Files go to fal storage via `@fal-ai/client`.
+- **fal** — queue API (`queue.fal.run/<endpoint>`); always uses the `status_url` / `response_url` returned at submit. Files go to fal storage via `@fal-ai/client`.
- **replicate** — predictions API; small files as data URIs, larger via the Files API. Outputs are copied immediately (Replicate deletes them after an hour).
-- **comfyui** — loads `workflows/comfyui/manifest.json`, writes values into bound node inputs (`src/lib/comfy.ts`), injects `LoraLoaderModelOnly` nodes after each diffusion-model loader (per Wan 2.2 expert), computes width/height from aspect ratio + resolution tier within the workflow's limits, frame counts as `n·step+1`, uploads inputs with `/upload/image`, submits to `/prompt`, tracks progress over the websocket and reads results from `/history`. Validation errors are turned into "missing model X → put it in models/<folder> (download URL)" messages.
-- **higgsfield** — `api.higgsfield.ai` with `Key id:secret` auth: submit with idempotency keys, poll `/requests/<id>/status`, cancel, signed-URL uploads, live style/template lists, and Soul ID training (custom references).
-- **local** — results made in the browser (Color grading renders with WebGL and uploads the PNG/WebM; `/api/generations/local` records it).
-- **mock** — demo outputs (SVG art, bundled sample clips, a tone) so the product works with zero setup.
+- **higgsfield** — `api.higgsfield.ai` with `Key id:secret` auth: submit with idempotency keys, poll `/requests/<id>/status` (only the documented result fields are read; extra files such as zip or fbx land in `meta.artifacts`), cancel, signed-URL uploads, live style / template lists, and Soul ID training.
+- **comfyui** — loads `workflows/comfyui/manifest.json`. `prepareWorkflow()` turns a `GenInput` into the prompt: canonical keys → bindings, uploads it makes itself (including media refs in `params.extra`), LoRA nodes after each diffusion-model loader, width / height from aspect ratio + tier, frame counts as `n·step+1`, the palette as a hex sentence plus a 512×512 swatch rendered on the server, `SLOT_RULES` (repeat, required, hints) per workflow, and graph rewrites for `expand: "captions"` (`expandCaptionWorkflow` in `src/lib/comfy.ts`) and `expand: "timeline"` (`expandTimelineWorkflow` in `src/lib/av/timeline.ts`). A left-out reference in a FLUX.2 ReferenceLatent chain is removed by `bypassReference()`. The second audio track is read from `inputs.audio2` (else `params.extra.audio2`); a mux with no background picks the one-track graph. `prepareFile` records each upload's header facts (`src/lib/media-probe.ts`: MP4 / MOV / M4A with rotation, WAV, FLAC, MP3) so the "auto" shape, trim checks, lip-sync frames, the mux bed length, caption windows and the Whisper RAM guard use them. Progress comes over the websocket (reset when the URL changes), results from `/history`; `collectOutputs()` maps them in manifest order (text with cues and language, `model3d`, stems with `meta.stem`, layers back to front with `meta.z / name / bbox`, roles, VHS meta-batch passes followed by their `fuobe/<generationId>` filename prefix). A 502 or a missing prompt is retried; a prompt fails only after it is missing three polls in a row. The first `isConfigured()` per URL waits for a real probe from a worker thread (`probeComfySync`, at most 1.5 s).
+- **llm** — text steps in this process (below).
+- **local** — results made in the browser (Color grading's PNG / WebM, Ads Studio composites; `/api/generations/local` records them).
+- **mock** — demo outputs for every operation (SVG art, bundled sample clips, a tone, layers with meta, cue lists, two stems, a GLB with a turntable from `scripts/gen-demo-3d.mjs`), so the product works with zero setup.
-## ComfyUI workflow library (`workflows/comfyui/`, `scripts/comfy/`)
+## Structured outputs
+
+Outputs are not only media. `extractOutputs(response, op)` in `payload.ts` (fal, Replicate, Higgsfield) and `collectOutputs()` (ComfyUI) produce:
+
+| kind / meta | from |
+|---|---|
+| `text` with `.text`, `meta.cues [{start, end, text, speaker}]`, `meta.language` | transcribe, translate, write; saved as `.srt` when timed, else `.txt` |
+| `model3d` (GLB) with `meta.preview`, `meta.formats` | image-to-3d |
+| layers with `meta {name, z, bbox, bboxNormalized, description}` | Seedream layers, Qwen-Image-Layered (bbox from alpha) |
+| `meta.textBlocks`, `meta.textHtml` on the background | Ideogram text layers |
+| `meta.stem` (`voice` / `background`, aliases vocals, accompaniment…) | separate-audio |
+| `meta.styleId`, `meta.mask`, `meta.role`, `meta.artifacts` | Recraft styles, Bria cut-outs, ComfyUI roles, Higgsfield extra files |
+
+A media operation that only answers in words fails with "The model replied: …" (`noOutputsError`). `OutputFile.text` is inlined up to `MAX_INLINE_TEXT` (64,000 characters, `meta.truncated` beyond); chained steps read the full text from the file. `outputKind(op, model)` decides a generation's kind (color-match and timeline follow the model's kind). Results without a prompt are titled after the operation ("Transcribe · ElevenLabs Scribe v2").
+
+## Pipelines and chained jobs (`src/server/chains.ts`)
+
+A generation can depend on others (`CreateOptions.dependsOn`, one id or a list). `GenerationRequest.chain` (`ChainSlot[]`) says where each dependency's output goes:
+
+| slot | what it fills |
+|---|---|
+| `images` (first / last), `endImage`, `video`, `videos`, `audio` | the matching input, from the dependency's first output of that kind (an `audio` slot fed by a clip takes its soundtrack) |
+| `voiceAudio` | the voice to clone (tts) or the target voice (voice change) |
+| `audio2` | the second track mixed under `inputs.audio` (mux): `inputs.audio2` / `GenInput.audio2` |
+| `audios` | a list of clips (the spoken lines a voice timeline places at their start times) |
+| `prompt` | the dependency's text: replaces `{text}` in the prompt, or becomes it; a translate step gets the cue list (decided by the step's planned op) |
+
+An audio slot can carry `stem` to take the output whose `meta.stem` matches ("voice" also matches vocals / speech / target; "background" also accompaniment / instrumental / residual / no_vocals). `pickOutput()` in `generations.ts` does the choosing; a missing stem fails the step with a clear message.
+
+**`createPipeline(steps, opts)`** creates any DAG of steps `{key, request, after?, chain?}`. Before a single row exists it checks duplicate or unknown keys, self-waits, loops (Kahn sort), chain-slot counts, that a step others depend on makes one job, and previews every step with placeholders; a mix of demo and real steps is refused (`assertOneMode`). Rows are created in topological order with `dependsOn`, labelled "Step n of N", and it returns `{batchId, items, byKey}`; if creation fails partway, what it started is canceled. Its TSDoc example is a whole dub. Every studio in round 3 builds its jobs this way.
+
+At launch the runner fills the slots (`slotsFor` pads short chains, `chainValue` reads text files when the text isn't inline) and checks the mode again (`chainMode`: a real step after demo steps runs as a demo, or fails with what to connect when demo mode is off). Built on that:
+
+- **Join clips** (`joinClips`): fal's FFmpeg `merge-videos` on the cloud, ComfyUI's `video-concat-{2,3,4}` on the open engine (folded four at a time). `oss-join-sound1/2` are joins that keep one clip's own sound at 25 fps (marketing films).
+- **Open multi-shot** (`createShotFilm`), **storyboard film** (`createStoryboardFilm`), **last-frame extend** (`createExtendChain`: extract frame → the model's image-to-video → join; `oss-extract-frame` on the open engine).
+
+## LLM provider (`src/server/providers/llm.ts`)
-`manifest.json` lists each workflow with its **bindings** (canonical key → node id + input), outputs, defaults (`width`, `height`, `fps`, `frameStep`…), limits (`dimensionMultiple`, `maxFrames`…), required model files with download URLs and sizes, custom node packs, VRAM and a `validated` flag. The pipeline in `scripts/comfy/` exports the official templates through the real ComfyUI frontend (`app.graphToPrompt()`), applies documented transforms, and validates every graph with `POST /prompt` against a live ComfyUI using zero-byte placeholder models.
+Text steps (`translate`, `write`) run inside the server and are polled like any job; cancel aborts the call and a restart fails the job as "Interrupted" (retryable). `llmBackends(route)` picks Claude (claude-opus-5-5, low effort, server-side fallback) when an Anthropic key is set and the install isn't open-only, else Ollama; Claude errors fall back to Ollama; endpoint `ollama` never uses Claude; Prompt enhancement → Offline rewriter turns text steps off. The first check for a new Ollama URL is a blocking worker-thread probe (`probeOllama`), later checks refresh a 15 s cache in the background. A text step on Ollama costs 0.
-## Chained jobs (`src/server/chains.ts`)
+`translateCues()` translates JSON cue lists, SRT and WebVTT (`src/lib/cues.ts`) in numbered batches of 30 (multi-line cues kept together); a batch that comes back merged or short is redone in pieces of 10, then cue by cue through a pool (1 request in flight on Ollama, 4 on Claude). The output keeps `meta.cues`. `write` uses `params.extra.system` when given. Studios that need free text (brand research, the AI Director, Faceless scripts, ad copy) call `llmText()` in `src/server/enhance.ts`, with offline fallbacks.
-A generation can depend on others (`CreateOptions.dependsOn`, one id or a list). `GenerationRequest.chain` says where each dependency's first output goes (`images` first/last, `endImage`, `video`, `videos`, `audio`); the old single-image `chainFrom` still works. The request is validated with placeholder inputs when it's created, and the runner launches it once every dependency has succeeded (or fails it when one didn't). Built on that:
+## Live updates (`src/server/live.ts`, `src/lib/api.ts`)
-- **Join clips** (`joinClips`): fal's FFmpeg `merge-videos` on the cloud, ComfyUI's `video-concat-{2,3,4}` on the open engine (the provider picks the graph by clip count; the graph plays at the first clip's frame rate). More than four clips on ComfyUI are folded four at a time.
-- **Open multi-shot** (`createShotFilm`): models with `multiShot.mode: "concat"` render one clip per shot (the first gets the start image, the last the end frame), then join them.
-- **Storyboard film** (`createStoryboardFilm` in `storyboard.ts`): each frame is animated toward the next (start + end frame when the model can), then joined.
-- **Last-frame extend** (`createExtendChain`): for models whose extend route is `LAST_FRAME_CHAIN` (Kling): fal FFmpeg `extract-frame` → the model's image-to-video → join with the original.
+Server: `watchGenerations(db)` installs TEMP SQLite triggers on `generations` that call a JS function (`fuobe_generation_changed`); changed ids are batched per event-loop turn (`setImmediate`) on an HMR-safe emitter (`globalThis.__fuobeLive`). The resolver in `generations.ts` turns each id into a `generation` event (the row through `toGeneration()`, the same JSON the list returns) or `deleted` (gone or trashed; trash and restore touch `updated_at`, so they fire too). `GET /api/generations/stream` (`generationEventStream`) sends `retry: 2000`, the events and `: ping` every 15 s, with `no-cache, no-transform` and `X-Accel-Buffering: no`; the listener is removed on abort.
+
+Client: one stream per browser. Tabs elect a leader with `navigator.locks` (`fuobe-generation-stream`); only the leader reads the stream and re-broadcasts events and its connected state on a `BroadcastChannel` (`fuobe-generations`, messages event | state | hello). The next tab takes over when the leader closes; a tab hidden for 30 s lets go, and every reconnect after the first invalidates the caches. Without Web Locks each tab reads its own stream. State lives on `globalThis.__fuobeClientStream`; the decision logic (`streamResponse`, `needsCatchUp`, `toChannelMessage`) and the cache reducers are pure, in `src/lib/generation-stream.ts`. `applyEvent()` patches `["generations", filter]`, `["library", filter]`, `["assist", id]` and `["canvases", id]` (`applyToCanvasView`) by id, with id-based structural sharing (`shareById`). Other views subscribe with `useGenerationEvents(cb)` (Cinema, Layers, Shorts, Faceless) instead of opening an EventSource. Polling slows to 10 s while connected (1.5 s otherwise); a 404 means no stream, retried every 5 minutes.
+
+## Library: Trash, folders, bulk, zip (`src/server/library.ts`)
+
+- **Trash** is the `generation_trash` table (soft delete). Every reader (`listGenerations`, `getGeneration(id, {includeDeleted})`, and through them Assist, MCP, storyboards, studios) leaves trashed rows out; `toGeneration` fills `deletedAt` / `folderId` even for rows read without the join. `trashGenerations` cancels queued and running jobs; `restoreGenerations` brings rows back (to the root when their folder is gone). `deleteForever` / `emptyTrash` call `deleteGeneration`, which removes the row, its trash and folder entries and every output file that `assetInUse()` doesn't find in a table listed in `ASSET_REFS` (generations, elements, trainings, Assist threads, Cinema, Canvas, Layers, Shorts, marketing, image studios, Faceless). When a table starts storing file URLs, add it there. `ensureTrashPurge()` empties what has been in the Trash for 30 days, at startup and then daily.
+- **Folders**: `folders` + `folder_items`, one folder per generation, flat; deleting a folder sends its items back to the root.
+- **Lists** take `kinds`, `models`, `statuses`, `since` / `until`, `folder`, `trash`, `q` (also the request prompt) and a compound cursor `before=<ts>:<id>` (ordered by ts DESC, id DESC; `deletedAt` in the Trash), so rows sharing a timestamp are never skipped. `libraryFacets()` gives the tab counts.
+- **Bulk**: `POST /api/generations/bulk` (trash | restore | delete | favorite | unfavorite | move), sent in batches of 500.
+- **Zip**: `GET /api/generations/zip?ids=` streams a stored zip (`zipStream` / `zipSize` in `src/server/zip.ts`: a CRC pass first, flat memory, refused over 4 GB).
+- Client: pure helpers in `src/lib/library.ts` (filters, date sections, batch stacks, `cursorAfter`), `outputActions()` in `src/lib/output-actions.ts` (one action list for tiles, viewer and Library), `ForeverConfirmProvider` in `src/components/studio/result-actions.tsx`. `GenerationRequest.title` / `.batchTitle` (server-set) name results and Library stacks.
+
+## Security (`src/proxy.ts`, `src/server/auth.ts`, `src/server/remote-fetch.ts`)
+
+- **Sign-in** is off until a password is set in Settings → Security or `FUOBE_PASSWORD`. State lives in `data/auth.json` (not SQLite) so the proxy can check requests with `fs` and `crypto` alone: a scrypt password hash, an HMAC secret for 30-day session cookies (replaced when the password changes), and API tokens stored as SHA-256 hashes. The proxy lets `/login` and `/api/auth/login` through, answers other API calls with 401 and redirects pages to `/login?next=…` (`safeNext()` in `src/lib/safe-redirect.ts` keeps it on the same origin). Its matcher leaves out only build assets, `samples/` and root SVGs.
+- **Host allowlist** (`hostAllowed`), for every method when no password is set, before anything else: IP literals, localhost and `*.localhost`, single-label names, `.local` / `.lan` / `.home.arpa` / `.internal` / `.localdomain`, this machine's hostname, and `FUOBE_ALLOWED_ORIGINS` (`*` allows any). This stops DNS rebinding. `X-Forwarded-Host` is not trusted here.
+- **Cross-site writes** (`crossSite`): non-GET/HEAD/OPTIONS requests get 403 when `Origin` matches neither Host, `X-Forwarded-Host` nor `FUOBE_ALLOWED_ORIGINS`, when it is `null`, or when `Sec-Fetch-Site` is cross-site — with or without a password.
+- **Login throttle** (`LoginGuard`): 5 misses per client and 20 a minute overall, bounded map, `Retry-After`. Route handlers can't see the socket address, so the client key is the last `X-Forwarded-For` hop only with `FUOBE_TRUST_PROXY=1` (then a 60 s lock per client); otherwise everyone shares a key that is slowed to one attempt every 4 s and never locked.
+- **Remote fetch** (`fetchRemote`): every caller-supplied URL (references, brand research, product links, YouTube oEmbed, Assist sources) is fetched only from public addresses. The check runs inside the socket lookup (DNS can't change after it) and again on each of at most 5 redirects; it blocks loopback, RFC 1918, link-local / metadata, CGNAT, multicast, ULA and mapped / NAT64 / 6to4 IPv4. 60 s deadline, 200 MB cap. `FUOBE_ALLOW_PRIVATE_URLS=1` turns it off for LAN installs.
+- Uploads up to 200 MB pass the proxy (`experimental.proxyClientMaxBodySize` in `next.config.ts`). `/api/files` sends `nosniff` and a UTF-8 charset for text. The MCP endpoint refuses a foreign `Origin`. Unknown `/apps/<id>` is rewritten to a real 404.
+
+## Studios
+
+Each studio keeps its data and pure planner in `src/lib/`, its server module in `src/server/`, routes under `src/app/api/`, the page under `src/app/(studio)/` and the UI in `src/components/<studio>/`. Every job is ordinary generations (so results survive restarts, show in the Library and run on either engine); the studio tables only remember what made them.
+
+| studio | pure logic | server | routes | UI |
+|---|---|---|---|---|
+| **Cinema Studio** (`/cinema`, `/cinema/[id]`) | `catalog/cinema.ts`: research data (genres, eras, 33 camera moves, 50 palettes, 7 lighting presets, Emotion Wheel, 17 Soul Cast fields, grids), `compileDirector` (native Cinema Studio 4.0 fields or prose), `planCinema` (steps with `after`, notes, blocker, cost), `takesClips` (feature-detected from the FieldMap) | `cinema.ts` (projects, nested scenes, `cinema_items` with per-take meta: take, tiles, cost, req, removed; spend in SQL), `cinema-generate.ts` (`generateInProject`: previews every step, checks the cost cap), `cinema-director.ts` (AI Director via `llmText`, offline fallback, never generates), `cinema-schemas.ts` | `/api/cinema/projects[/id[/folders[/folderId] \| /items[/genId/retry \| /tiles] \| /generate \| /director]]` | `components/cinema/*`: workspace, folder sidebar, feed, prompt bar, Director's Panel, palette editor (`color-math.ts`), grid crops (`grid-math.ts`), Soul builders, autosave |
+| **Canvas** (`/canvas`, `/canvas/[id]`) | `catalog/canvas.ts`: node types and typed ports, `connectionError`, `topoOrder`, `describeNode` (a GenerationRequest validated with `planGeneration` on placeholders), `planCanvas` (run vs reuse by signature, pins), `convertEngine`, the 5 templates (cloud and open) | `canvas.ts`: zod graph, CRUD, `canvasView`, `runCanvas` (one generation per step with `dependsOn`; runs kept in `runs_json`), `graphProblem` | `/api/canvases[/id[/duplicate \| /run]]` | `components/canvas/*` on @xyflow/react: editor store (`canvas-context.tsx`, `useSyncExternalStore`, `DescribeCache`), nodes, palette, phone node list |
+| **Layers** (`/layers`, `/layers/[id]`) | `lib/layers.ts`: LayerDoc / LayerNode geometry, export scale, zip naming `layer-z{z}-{slug}.png`, stored zip, Copy JSON, `historyReducer` (same-key edits within 1.2 s are one undo), `layersModelFor`, `MAX_NODES = 200`, `MAX_REVISIONS = 50` | `layers.ts`: projects and versions (autosave into the head, 409 from a stale tab), tool jobs built by `jobSteps` (a cut-out step after edits on transparent layers), "decomposed" derived from applied jobs | `/api/layers[/id[/versions \| /jobs[/jobId]]]`, `/api/layers/renders` (PNG-only "derived" assets) | `components/layers/*`: results measured in the browser (`measure.ts`) and laid out by `applyMeasured` (`apply.ts`), zips and composites rendered with canvas (`render.ts`), WebGL grade |
+| **Shorts Studio** (`/shorts`, `/shorts/[id]`) | `catalog/shorts.ts`: 44 presets, `planCloudSegments` (equal ≤10 s), `planOpenSegments` (4n+1 frames ≤81 at 16 fps), `planTake`, `planStitch`, `planShorts`, `chainState`; `catalog/shorts-models.ts` (what each restyle model takes, read from its v2v routes); `lib/trim-range.ts` | `shorts.ts` (sessions, segments with takes and the primary take, stitches; `probeSource` reads MP4 then WebM via `webm-probe.ts`), `shorts-schemas.ts` (`once(scope, requestId, fn)`: one paid submit per click, 10 min) | `/api/shorts/{probe,estimate,sessions[/id[/segments/i[/primary] \| /stitch]],presets[/id]}` | `components/shorts/*`, the shared `components/studio/video-trimmer.tsx` |
+| **Mixed Media** (`/mixed-media`) | `catalog/mixed-media.ts`: 33 presets with settings, frames = floor(s × fps), open render (one `oss-mixed-media` job) and cloud plan (trim → restyle → original sound), preview plan | `mixed-media.ts`: estimate, render, preview, `retryMixed`; no table (History is the feed: features `mixed-media`, `mixed-media-step`, `mixed-media-preview`) | `/api/mixed-media[/preview \| /estimate \| /retry]` | `components/mixed-media/*` |
+| **Image studios** (Color signature, Moodboards, Photodump, Fashion Factory, Character Sheet) | `catalog/palettes.ts` (`applySignature`, `SignatureRecord` in `request.signature`), `catalog/packs.ts` (photo-run planners with `PlanCaps`) | `palettes.ts` (seeded 50 palettes, lock chains), `moodboards.ts` (status derived from the cover job, Recraft style id, style LoRA), `photodump.ts` (runs as one `createPipeline` batch; `retryPhoto`) | `/api/palettes[/id \| /lock]`, `/api/moodboards[/id[/retry \| /train]]`, `/api/photodump[/packs[/id] \| /character \| /fashion \| /retry]` | `components/{palettes,moodboards,photodump,fashion}/*`; k-means in `palettes/extract.worker.ts`; the chips load through `useSignature` in the composer |
+| **Marketing** (Marketing Studio, Click to Ad, Ads Studio, Ad Multiplier) | `catalog/marketing.ts`: 84 templates, 11 formats, 9 hooks, 14 settings, 10 ad styles, angles, word budgets, `formatModels`, `UGC_MODELS`, `OPEN_SOUND_JOIN` | `brand.ts` (website scrape, research job, `kitForSite`), `marketing.ts` (`planMarketing`, `planClickToAd`, `planMultiplier` with `referenceFacts` → RunPlan → `createPipeline`; `marketing_runs` keeps the input for Run again and the browser composite), `ads.ts` (batches, creatives, concepts, chat, proposals) | `/api/brands/**`, `/api/products/**`, `/api/marketing/**`, `/api/ads/**` | `components/{marketing,ads,brand}/*`; ad layout math (`ads/layout.ts`) → canvas render with Google fonts (`ads/render.ts`) → stored zip (`ads/zip.ts`); @mention helpers (`ads/mention.ts`) |
+| **Faceless Studio / Explainer** (`/faceless`, `/explainer`) | `catalog/faceless.ts`: genres, 22 styles (12 for Faceless), block planning, `buildEpisodeGraph` (steps keyed still / clip / join / narration / music / mix / words / captions), `planRerun`, `planRetry`, `estimateGraph`, `spokenTimes`, `sceneTiming`, `musicLength`, `styleRefLimit` | `faceless.ts`: channels (avatar job), episodes, scripts written in the background by the llm provider (`askLlm`), `launch()` (stage one: stills, narration, word timings) and `advance()` (scenes cut to the spoken times, then clips, joins, music, mix, subtitles), `settle()`, `ensureFacelessRunner()` (2 s sweep, started at boot) | `/api/faceless/**`, `/api/explainer[/link]` | `components/{faceless,explainer}/*` |
+| **Translate & dub, Captions, Trim, Katana, Image to 3D, Virality** | `lib/av/*.ts` as plain data: `dub.ts` (one-shot and step plans, takes, timeline), `captions.ts` (burner capabilities), `cue-edit.ts`, `katana.ts` (cuts, `stepsToRedo`), `model3d.ts`, `frames.ts`, `timeline.ts`, `virality.ts`, `languages.ts` | `dub.ts` and `katana.ts` keep generation ids per step in `dub_sessions` / `katana_jobs` (`retryKatana`, `rerunKatana`); deleting stops unfinished steps | `/api/dub[/id[/voice]]` (`?preview=1` prices), `/api/katana[/id[/retry]]` | `components/{dub,captions,katana,model3d,virality,av}/*`. Hub tool modes: `ModeSwitchStudio` has a `TOOLS` map (`audio/translate`, `video-tools/captions`, `video-tools/trim`) |
+| **Assist** (`/assist`, `/assist/skills`, `/assist/memory`, `/assist/projects/[id]`) | `lib/assist.ts`: SKILL.md parsing (`parseSkillMd`, `toSkillMd`), slash helpers, modes, `planRunnable` | `server/skills.ts` (built-ins from `skills/` or `FUOBE_SKILLS_DIR`, user skills and toggles in SQLite, `.md` / `.zip` / `.skill` import via `assist/unzip.ts`), `assist/projects.ts` (sources fetched safely; PDFs read by `assist/pdf.ts` with unpdf), `assist/memory.ts`, `assist/context.ts`, `assist/studio-tools.ts` | `/api/assist/**` | `components/assist/*`, `assist-view.tsx` |
+
+## ComfyUI workflow library (`workflows/comfyui/`, `scripts/comfy/`)
+
+`manifest.json` lists 115 workflows, all `validated: true`, each with its **bindings** (canonical key → node id + input), outputs (with `stem` and `role`), defaults, limits, required model files with download URLs and sizes, custom node packs, VRAM, licence, notes, `autoDownloads`, and since round 3 `expand` (`captions` or `timeline`: the provider rewrites the graph per request) and `worker: "isolated"`. The pipeline in `scripts/comfy/` exports the official templates through the real ComfyUI frontend (`app.graphToPrompt()`), applies documented transforms (`library.spec.mjs`, `lib/graph.mjs`), builds hand-written API graphs from `hand-built/*.json`, and validates every graph with `POST /prompt` against a live ComfyUI using zero-byte placeholder models.
+
+Round 3 added 42 workflows (73 → 115), all hand-built: the 29 graphs of `comfyui-oss-3` (layers, style references, palette, segments and restyle, Mixed Media, SFX, dub preparation, ASR captions, translation, lip re-sync, 3D, try-on, grids, Soul Cast) plus Fuobe's own `video-mux-audio-replace`, `captions-burnin` (chunked, constant memory) and `selftest-meta-batch`; then `frame-extract`, `v2a-hunyuan-foley`, `product-shot-qwen-edit-2509`, `audio-timeline` and `video-concat-sound{1,2}-{2,3,4}`. `lipsync-latentsync16` and `sfx-thinksound` are **isolated-worker** workflows: their packs change process-wide state or pin old packages, so `scripts/comfy/install-isolated-worker.sh` sets up a second ComfyUI with its own code copy, base directory, `HOME` and virtualenv, sharing the main install's models read-only through `extra_model_paths.yaml` (port 8189). `install-comfyui.sh` installs 14 packs at pinned commits; `NC_PACKS=1` adds the non-commercial ComfyUI-Whisper.
## Training (`src/server/training.ts`)
-A `trainings` row per job, polled by the same runner. Higgsfield Soul ID returns a reference id stored on the element; fal's Z-Image trainer gets a zipped dataset with captions and returns a LoRA URL (hosted Z-Image switches to its `/lora` endpoint); AI-Toolkit gets a dataset folder and a job through its UI's job API, and the finished LoRA is copied into `COMFYUI_LORAS_DIR`. Elements keep a list of trained identities (`loras_json`), and `applyMentions` uses the one that matches the chosen model.
+A `trainings` row per job, polled by the same runner. Higgsfield Soul ID returns a reference id stored on the element; fal's Z-Image trainer gets a zipped dataset with captions and returns a LoRA URL; AI-Toolkit gets a dataset folder and a job through its UI's job API, and the finished LoRA is copied into `COMFYUI_LORAS_DIR`. A style element (moodboards) uses the style preset (`aiToolkitJob({ kind: "style" })`, captions "<trigger> style", 1500 steps). Failed fal jobs (4xx, `FAILED`), a missing AI-Toolkit job, 8 h without a result and uploads cut off by a restart fail the training and settle the element back to ready.
## Assist agent (`src/server/assist/`)
-A manual tool-use loop over Claude (`claude-opus-5-5`, adaptive thinking, server-side fallback). Tools: `search_models`, `list_elements`, `list_recent`, `check_generations` (can wait, and can attach finished images so the model sees them), `generate` and `create_storyboard`. The last two are **gated**: when the model calls them the loop stops, the thread is saved as `waiting` with an approval card priced by `previewGeneration`, and the user's answer resumes the loop with the results of every call in that turn in one message. A new message instead of an answer declines the plan with the message as feedback. History is stored append-only exactly as the API returned it (thinking blocks included); local images are kept as URLs and converted to base64 per request. The same loop runs on a local model through Ollama's tool calling (the history is converted to Ollama chat messages and back), or, with no LLM at all, on a rule-based planner that returns the same message shapes. `resolveAgent()` picks one for each new chat.
-
-## MCP server (`src/server/mcp.ts`, `/api/mcp`)
+A manual tool-use loop over Claude (adaptive thinking with `block_binding` drop-block, betas `thinking-binding-controls-2026-08-01` and `server-side-fallback-2026-07-01` (not for Haiku), top-level `cache_control` and two cached system blocks, streamed with `client.beta.messages.stream(...).finalMessage()`, `max_tokens` 32k or 64k at Extra / Max effort). Modes: **Free** (Ollama, or the offline planner), **Smart** (Claude, needs a key), **Manual** (pick claude-opus-5-5, sonnet-5-5, haiku-5-5 or fable-5-1 and the effort). `resolveAgent()` picks one per chat.
-Model Context Protocol over streamable HTTP, stateless with JSON responses: `initialize` (version negotiation), `ping`, `tools/list`, `tools/call`. The tools are Assist's (shared `executeTool`), plus `estimate_cost`, which prices a generate call with `previewGeneration`. Requests from a foreign `Origin` are refused (DNS rebinding); the proxy applies the same sign-in rules as the REST API.
+- **Context.** Each chat's context (date, engine, approval mode, project, sources, memory, skills index, active skills) is built once and frozen in `assist_thread_state`; later changes arrive as role `system` "Context update" messages, saved only after a reply succeeds, so preserved thinking stays valid.
+- **Tools** (`tools.ts`, `context-tools.ts`, `studio-tools.ts`): `search_models` (kinds image, video, audio, text, model3d), `list_elements`, `list_recent`, `check_generations` (text inline, meta, images attached), `generate` (with `after`: the call becomes one `createPipeline`; not `strict`, zod-validated), `create_storyboard` (the only `strict` tool), `list_skills`, `load_skill`, `remember` (asks first), `read_source`, the studio tools `split_layers`, `restyle_footage`, `dub_video`, `faceless_episode`, `create_ads`, `add_captions`, and `katana`. Gated calls stop the loop with an approval card priced by `previewGeneration`; `PlannedJob.atomic` marks a pipeline's steps and `planRunnable()` keeps Run off while any step has an error. `answerApproval` claims the thread before its first await.
+- **Studio tools** resolve through `STUDIO_ROUTES`, a registry a studio module can fill; while an entry is empty (all of them today) the tool builds the same job as a `createPipeline` of catalog models on either engine.
+- History is stored append-only exactly as the API returned it; local images are kept as URLs and converted to base64 per request. The same loop runs on Ollama's tool calling, or with no LLM on a rule-based planner (still → animate, N-shot films, N portraits, translations, skill hints, "remember that…").
-## Access protection (`src/server/auth.ts`, `src/proxy.ts`)
+## MCP server (`src/server/mcp.ts`, `/api/mcp`)
-Off until a password is set in Settings → Security or `FUOBE_PASSWORD`. State lives in `data/auth.json` (not SQLite) so the proxy can check requests with `fs` and `crypto` alone: a scrypt password hash, an HMAC secret for 30-day session cookies (replaced when the password changes, which signs everyone out), and API tokens stored as SHA-256 hashes. The proxy lets `/login` and `/api/auth/login` through, answers other API calls with 401 and redirects pages to `/login?next=…`. Tokens and the password can only be managed from a signed-in browser. The run starts synchronously after the POST (so polls never see a stale "running" thread) and is kept alive with `after()`; the UI polls `GET /api/assist/<id>`.
+Model Context Protocol 1.1.0 over streamable HTTP, stateless with JSON responses: `initialize`, `ping`, `tools/list`, `tools/call`, `prompts/list`, `prompts/get`. The tools are Assist's (shared `executeTool`) with read-only hints, plus `estimate_cost` (a generate call priced with `previewGeneration`) and `estimate_job` (a studio tool's plan). The prompts are the enabled skills. Requests from a foreign `Origin` are refused; the proxy applies the same sign-in rules as the REST API.
## Storage (`src/server/db.ts`, `storage.ts`, `settings.ts`)
-SQLite (WAL) with tables `generations` (with `depends_on`: one id or a JSON list, for chained jobs), `assets`, `settings`, `characters` (elements), `trainings` and `assist_threads`. Migrations are an append-only list in `db.ts`. Settings (`src/server/settings.ts`) are typed, validated against allowed values, overridable by environment variables, and secrets are masked before reaching the browser. `engineMode` is enforced server-side; the client reads it from `/api/status` (`useEngineMode`) to lock the engine switch and filter what it shows. Files live in `data/files/{uploads,outputs}/<date>/<id>.<ext>` and are served by `/api/files/...` with HTTP range support for video. `FUOBE_DATA_DIR` moves everything.
+SQLite (WAL). Migrations are an append-only list in `db.ts`, applied once each and recorded in `_migrations`:
+
+| # | adds |
+|---|---|
+| 0 | `generations`, `assets`, `settings`, `characters` |
+| 1 | elements: `characters.kind`, `handle`, `loras_json` |
+| 2 | `trainings` |
+| 3 | `generations.depends_on` (chained jobs) |
+| 4 | `assist_threads` |
+| 5 | `generation_runs` (submitted_at, started_at: the provider timeouts) |
+| 6 | `generation_trash`, `folders`, `folder_items` |
+| 7 | `cinema_projects`, `cinema_folders`, `cinema_items` |
+| 8 | `canvases` (`graph_json`, `runs_json`) |
+| 9 | `layer_projects`, `layer_versions` |
+| 10 | `shorts_sessions`, `shorts_presets` |
+| 11 | `brand_kits`, `products`, `ad_batches`, `ad_creatives`, `marketing_runs` |
+| 12 | `palettes`, `moodboards`, `photodump_packs` |
+| 13 | `faceless_channels`, `faceless_episodes` |
+| 14 | `dub_sessions`, `katana_jobs` |
+| 15 | `skills`, `skill_toggles`, `assist_projects`, `assist_project_sources`, `assist_memory`, `assist_thread_state` |
+
+Settings (`src/server/settings.ts`) are typed, validated against allowed values, overridable by environment variables, and secrets are masked before reaching the browser. `engineMode` is enforced server-side; the client reads it from `/api/status`. Files live in `data/files/{uploads,outputs}/<date>/<id>.<ext>` (content types include .txt / .srt / .vtt / .json / .glb / .aac) and are served by `/api/files/...` with HTTP range support. `FUOBE_DATA_DIR` moves everything.
## UI (`src/components/`, `src/app/(studio)/`)
-Liner-inspired shell (pale frame, rounded inset sheet, 13px sidebar rows, serif headlines, pill composer). Every creation page is a `StudioPage` driven by a `StudioConfig` (`src/lib/studios.ts`): hero → composer when empty, prompt-echo groups + docked composer once there are results. Single-purpose studios (Extend, Reframe, Video tools…) pin their operation; the Audio hub switches between studios with tabs. The composer holds attachments (click, drop, paste, pick from library), an `@` element menu with highlighted mentions, the sketch editor (mask / draw), model picker (Cloud/Open switch), aspect ratio, quality, duration, count, audio, multi-shot, draft, voice picker / recorder, dialogue editor, Director controls, provider style picker, enhance, advanced (seed, negative prompt), live cost estimate and Generate (↵).
+Liner-inspired shell (pale frame, rounded inset sheet, 13px sidebar rows, serif headlines, pill composer). The sidebar (`app-sidebar.tsx`) remembers its rail and groups without making the layout dynamic (`SIDEBAR_STATE_SCRIPT` in `src/lib/nav.ts` runs before paint). Branded not-found and error pages, and `loading.tsx` skeletons on studio and gallery routes.
-Stand-alone views: `color-grade-view.tsx` (WebGL grader, `src/lib/grade.ts`), `storyboard-view.tsx`, `elements-view.tsx` + `train-dialog.tsx`, and `assist-view.tsx` (chat transcript with plan cards and inline generation tiles).
+- **Studio pages** render `<Studio config>` (`src/components/studio/studio.tsx`), a server component that passes `studioCatalog(config)` from `src/lib/studio-catalog.ts`: the studio's models without provider field maps. Inside, `CatalogProvider` / `useCatalog()` resolve models; `loadFullCatalog()` imports `@/lib/catalog` lazily for motions, effects, `?preset=` and unknown ids. Client components under `studio/` must not import `@/lib/catalog` or `@/lib/studios`. `StudioPage` renders the same tree in the static shell and after hydration; hand-off params merge into the draft with `mergeHandoff`. `StudioConfig` (`studio-context.tsx`) gained `pickerOps`, `anyOf`, `signature` and `extraModels`.
+- **Hubs** (Audio, Video tools, Upscale) have one prerendered path per mode (`src/lib/hubs.ts`, `ModeSwitchStudio` in `mode-switch-studio.tsx`, `[mode]/page.tsx`); old `?mode=` links redirect in `next.config.ts`.
+- **Composer** pieces: pure logic in `src/lib/composer.ts` (summary, blockers, `onImageChange`, `fitAttachments`, `firstMissingSlot`), `attachments.ts` (`useAttach`, `useUploadReaper`), `settings-panel.tsx`, `model-picker.tsx` (cmdk), `attach-menu.tsx`, `preset-chips.tsx` (lazy), `radio-keys.ts`.
+- **Galleries** get slim cards (`src/lib/preset-cards.ts`) with procedural previews (`preset-preview.tsx`, `move-glyphs.ts`, `preview-playback.ts`).
+- Stand-alone views: color grading (`color-grade-view.tsx`, `src/lib/grade.ts`), storyboard, elements + train dialog, library (`library-view.tsx` + `components/library/*`), Assist, and the studios above.
## Generators (`scripts/`)
-`pnpm gen:catalog` runs `gen-cloud-models.py`, `gen-higgsfield-models.py`, `gen-oss-loras.py` and the icon map. Each reads a research JSON in `docs/research/` and writes a `*.generated.ts` file; the catalog integrity tests catch broken references.
+`pnpm gen:catalog` runs `gen-cloud-models.py`, `gen-higgsfield-models.py`, `gen-higgsfield-presets.py`, `gen-oss-loras.py` and the icon map. Each reads a research JSON in `docs/research/` and writes a `*.generated.ts` file; the catalog integrity tests catch broken references. `gen-preview-scenes.mjs` draws the gallery preview stills (`public/samples/previews/`), `gen-demo-3d.mjs` the demo GLB and turntable (needs ffmpeg).
diff --git a/docs/STATUS.md b/docs/STATUS.md
index 64721091..3d371178 100644
--- a/docs/STATUS.md
+++ b/docs/STATUS.md
@@ -1,6 +1,6 @@
# Fuobe — project status
-_Last updated: 2026-10-17 (second round). The research behind this is in [`docs/research/`](research/README.md); the Higgsfield inventory it is measured against is [`higgsfield-inventory.md`](research/higgsfield-inventory.md)._
+_Last updated: 2026-10-21 (round 3). The research behind this is in [`docs/research/`](research/README.md); the Higgsfield inventory it is measured against is [`higgsfield-inventory.md`](research/higgsfield-inventory.md), deepened for round 3 by [`higgsfield-studios.md`](research/higgsfield-studios.md), [`higgsfield-image-studios.md`](research/higgsfield-image-studios.md) and [`higgsfield-marketing-agents.md`](research/higgsfield-marketing-agents.md)._
**Legend**
@@ -11,126 +11,244 @@ _Last updated: 2026-10-17 (second round). The research behind this is in [`docs/
| 🟡 | **Partial**: works, but approximates Higgsfield or misses part of the feature |
| ⬜ | **Not started** |
-**What "verified" can't cover on this machine:** there are no paid API keys and no GPU here. Every cloud model call and every open-source output is therefore 🟢 at best: request shapes come from the providers' own schemas and every ComfyUI graph is accepted by a real ComfyUI. The only real outputs so far come from the tools that need no model weights (joining clips, palette match), which ran on a CPU ComfyUI here.
+**What "verified" can't cover on this machine:** there are no paid API keys and no GPU here. Every cloud model call and every open-source model output is therefore 🟢 at best: request shapes come from the providers' own schemas, and every ComfyUI graph is accepted by a real ComfyUI. The real outputs come from the tools that need no model weights, which ran on a CPU ComfyUI here: joining clips, palette match, trim, cutting a segment, adding a soundtrack (one track, or a voice over a background bed), caption burn-in, the dub voice timeline, joins that keep a clip's sound, extract frame and VHS meta-batch passes. App features that need no model (the library, live updates, sign-in, the Layers editor, browser color grading) are verified in the browser.
## 1. What has been verified
+Browser e2e on the merged build: `<pending>`
+
+Checks on the merged branch `claude/fuobe-parity-3` (commit c522288):
+
| check | result |
|---|---|
-| `pnpm typecheck`, `pnpm lint` | clean (one pre-existing unused-variable warning in `scripts/comfy/library.spec.mjs`) |
-| `pnpm test` (Vitest, 17 files, 108 tests) | pass. Covers payload mapping, operation inference, batching, cost estimates, ComfyUI bindings and LoRA injection, catalog integrity, engine mode, @mentions, masks (PNG codec, white/black/alpha), the Higgsfield adapter, multi-shot and draft mode, audio routing, training jobs, storyboard chaining, open-engine motion paths, the Assist agent loop (Claude, Ollama and offline), chained jobs (open multi-shot, storyboard films, Kling extend, join batching), Motion Mix, sign-in and API tokens, and the MCP server |
-| `pnpm build` | passes (170 pages) |
-| Demo mode, browser (headless Chromium, desktop + 390px mobile) | ✅ every studio queues, shows progress, lands in the feed and opens in the viewer. Also checked this round: @mentions, inpaint + compare, Director and Soul style pickers, color grading with PNG/WebM export, multi-shot editor, draft → finalize, speech / mic voice clone / dialogue / translate, the train dialog, storyboard chaining, and Assist (plan → approve → results, decline, mobile) |
-| ComfyUI engine, live server | ✅ `pnpm test:e2e:comfyui` against ComfyUI 0.41 (CPU): upload → bindings → `/prompt` → websocket/`/history` → download → library |
-| ComfyUI workflow library | ✅ 73/73 workflows accepted by `POST /prompt` with no `node_errors` against real node definitions. Placeholder weights: graph structure, input names, types and file references are verified, **not output quality** |
-| New open models through the app | ✅ every model added this round (Chatterbox ×4, IndexTTS-2, VACE extend/reframe, Wan-Move, Bernini-R, BiRefNet/SAM 3 matte, DA3/VDA depth, Qwen relight/next-scene) went through Fuobe's own submit path into a live ComfyUI and was accepted. Spot checks: Wan-Move tracks (49 points at 832×464), reframe at 480×848, dialogue SPEAKER script, Chatterbox language field |
-| AI-Toolkit training | ✅ end to end against a fake AI-Toolkit job API: dataset written, job created and started, progress polled, LoRA copied to the ComfyUI loras folder, element marked trained |
-| Assist agent | ✅ loop tested with a scripted model (approval pause/resume, one tool-result message per turn, decline via new message, auto-run, `max_tokens` cut-off, invalid input, refusal, busy guard) and the real Claude request built through the SDK against a stubbed `fetch` (adaptive thinking, effort, server-side fallback beta, strict tools, cached system prompt, base64 images). **No live Claude call yet**: needs an Anthropic key |
-| Real runs on CPU ComfyUI (no weights needed) | ✅ Join clips: 2 and 3 sample clips joined through the app (UI and API); frame counts, size and frame rate checked with ffprobe (3 × 96 frames → 288 frames at the clips' 24 fps). Palette match: an image (average colour moved from blue to the warm reference) and a video |
-| Sign-in and API tokens | ✅ with curl against the dev server: open when no password; with one, 401 for API calls and a redirect to /login for pages; cookie and bearer token accepted; a token can't mint tokens; wrong passwords rejected; removing the password reopens it. Browser: set password, create token, sign out, wrong/right password, redirect back |
-| MCP server | ✅ with the official MCP Inspector CLI as the client: initialize, tools/list, estimate_cost, generate and check_generations against the running app |
-| Assist on Ollama | 🟢 tested against a fake Ollama server (request and tool-call mapping both ways). No real Ollama run: model downloads aren't reachable from this environment |
-| Cloud providers (fal / Replicate / Higgsfield) | 🟢 100 cloud models built from the providers' schemas. **No live paid run yet** |
+| `pnpm typecheck`, `pnpm lint` | clean. Lint has 0 errors and one old warning (unused `WAN_NEG_EN` in `scripts/comfy/library.spec.mjs`) |
+| `pnpm test` (Vitest, 79 files, 1128 tests) | pass. New this round: pipelines and chain slots (stems, `audio2`, `audios`, `prompt`), the LLM provider (cue translation in batches, Ollama fallback), runner timeouts and restarts, structured outputs (text with cues, 3D, layers, stems), payload mapping for the new FieldMap keys (palettes, try-on, reference clips, compose tracks), the Library (Trash, folders, bulk, zip read back by Python's `zipfile`, cursor paging), the live stream reducers, security (cross-site, host allowlist, remote-fetch SSRF guard, login throttle, safe redirect), every new studio's planner and API (Cinema, Canvas, Layers, Shorts, Mixed Media, image studios, marketing, Faceless/Explainer, dub, Katana, captions, 3D, Virality), ComfyUI bindings of every new workflow through `prepareWorkflow`, Assist skills/projects/memory/modes, the streamed Claude request (against an SSE fake), and MCP 1.1.0 |
+| `pnpm build` | passes |
+| ComfyUI workflow library | ✅ 115/115 workflows accepted by `POST /prompt` with no `node_errors` against a live CPU ComfyUI v0.41 with zero-byte placeholder weights. This checks graph structure, input names, types and file references, **not output quality**. `lipsync-latentsync16` and `sfx-thinksound` were validated on a separate isolated worker (port 8189) |
+| Real CPU runs through the production build (`tests/e2e/comfyui-selftest.mjs`) | ✅ uploads → `POST /api/generations` → ComfyUI → stored output, each checked with ffprobe: add a soundtrack (one track, and voice over a background bed), trim, cut a resampled segment, caption burn-in and a 3-pass VHS meta-batch, including 20 s 640x360 30 fps clips. Captions are drawn on their cues and absent in the gaps |
+| Other real CPU runs this round (package branches) | ✅ Dub voice timeline: three tones placed at 1 / 4.5 / 9 s on a 12 s track (ffprobe 12.0 s, silencedetect found them at 1.00, 4.50 and 9.00 s). Joins that keep a clip's sound: `sound2-3` gave 8.92 s, 223 frames at 25 fps, silent until 2.96 s and then the voiced clip's tone; `sound1-2` 5.96 s with sound from 0. Extract frame: first, middle and last frame of a fixture clip. Memory: soundtrack mux of 600 frames +0.01 GB RSS (the picture is stream-copied, bit-identical); chunked caption burn-in under RAM pressure +0.50 GB for 20 s and +0.45 GB for 40 s (the old one-batch graph: +5.16 GB) |
+| Live updates | ✅ in dev and production: a 3.5 s demo image shows 3.8 s after the POST (was 4.6–5.2 s with polling). One stream per browser, shared by tabs (Web Locks + BroadcastChannel) |
+| Runner and security fixes | ✅ each with a regression test: provider timeouts (45 min running, 4 h queued) with poll-before-timeout, cancel during submit, boot-time runner, interrupted-submit sweep, demo/real mix refused, 210 MB uploads through the sign-in proxy, cross-site writes refused, Host allowlist on password-less installs, SSRF-safe remote fetch, login throttle, safe `?next=` redirect, matcher keeping only root SVGs public |
+| Demo-mode browser passes (each package branch, before the merge; headless Chromium, 1440 and 390 px, light and dark) | ✅ Layers: `tests/e2e/layers.mjs` (5 checks) plus scratch flows (Angles, Edit text, geometry, full-detail export, Compare after Expand, failures). Shorts + Mixed Media: 40 checks (one session per double-click, crop note, take picker keys, retry). Image studios: Photodump retry inside its batch, Fashion retry, signature routing and Reuse, `?create=1`, Save as character once. Marketing: Click to Ad kit progress and brand kit, @mentions, grid order, baked formats, auto-composited open posters. Faceless: channel in 678 ms, topics, script review autosave, render to the end, timeline change + Undo, delete stops 8 steps, Explainer 30 s render. av-tools: 112 page loads (14 pages × both engines × 2 widths × 2 themes), dub review flush, Katana cuts, captions per burner. Assist: 51 checks plus `tests/e2e/assist-flows.mjs` 6/6. Canvas: `tests/e2e/canvas-smoke.mjs` incl. 60 nodes at 19 ms keystroke → paint. Cinema: `tests/e2e/cinema-shortcuts.mjs`. Composer: `tests/e2e/composer-flows.mjs`. Shell: `tests/e2e/shell.mjs`. Phone layout: `tests/e2e/no-horizontal-scroll.mjs` fit 55 routes in light and dark |
+| LLM text steps (translate, write) | 🟢 tested against a stand-in Ollama server and a stubbed Claude API. No live Claude or Ollama run |
+| Assist on Claude | 🟢 the streamed request (adaptive thinking, betas, cached system blocks, max_tokens per effort) is built through the SDK against an SSE fake. **No live Claude call yet**: needs an Anthropic key |
+| Assist on Ollama | 🟢 tested against a fake Ollama server (round 2). Model downloads aren't reachable from this environment |
+| Cloud providers (fal / Replicate / Higgsfield) | 🟢 157 cloud models (plus 10 hidden helpers used by chains) built from the providers' schemas; structured outputs tested on stubbed responses. **No live paid run yet** |
+| MCP server | ✅ 1.1.0 tools and prompts by unit tests; the round-2 run with the official MCP Inspector CLI (initialize, tools/list, estimate_cost, generate, check_generations) still applies |
+| AI-Toolkit training | ✅ end to end against a fake AI-Toolkit job API (round 2); the new style-LoRA preset (moodboards) by unit tests |
+| Sign-in and API tokens | ✅ curl and browser checks (round 2); the new throttle and Host checks by unit tests |
## 2. Feature matrix vs Higgsfield
+Model names are the defaults first, then the alternatives. "Demo" outputs are labelled in the UI; every row below was clicked through in demo mode.
+
### Create
| Higgsfield feature | Fuobe | Cloud route | Open-source route | Notes |
|---|---|---|---|---|
-| Create Image (multi-model) | 🟢 | 51 image models incl. Nano Banana Pro/2, Seedream 5, GPT Image 2.5, FLUX.3, FLUX.2 Pro, Kontext, Ideogram 4.5, Recraft 4.1, Qwen Image 3, Wan 2.7, Z-Image, Imagen 4 | Z-Image Turbo, Qwen-Image 2512, FLUX.2 dev, FLUX.1 Krea/dev/schnell, HiDream, SDXL | Batch ×1–4, aspect ratios, quality tiers, seeds, negative prompts, references |
-| Higgsfield Soul 2.0 / Soul Cinema / Soul v1 | 🟢 cloud · 🟡 open | Higgsfield's own API (`higgsfield` provider) with the Soul style picker | FLUX.1 Krea / Z-Image as the closest open look | Needs a Higgsfield API key |
-| Soul ID (character training) | 🟢 | Higgsfield Soul ID (Soul 2.0, Soul Cinema) → `custom_reference_id`; fal Z-Image Turbo LoRA trainer | AI-Toolkit job on your GPU → Z-Image Turbo LoRA copied into ComfyUI | Train from an element's photos. A trained element is used automatically when @mentioned on its model. Training kit download and "attach a LoRA trained elsewhere" also work |
-| Elements (@characters, locations, props, styles) | ✅ | Reference images with a legend; video switches to reference-to-video | Same, plus LoRA + trigger word for trained elements | `/elements`; @ menu with highlighting in every composer and in shots |
-| Create Video (multi-model) | 🟢 | 82 video models: Seedance 2.5/2.0, Kling 3.0/O3/2.6, Veo 3.1, Wan 3.0/2.7/2.6, MiniMax H3, Hailuo, FLUX.3 Video, LTX 2.5, PixVerse V6, Vidu Q3, Luma Ray 3.2, Higgsfield Cinema Studio 4.0, Genjutsu, Grok Imagine Video, Happy Horse… | Wan 2.2 14B (+Lightning), Wan 2.2 5B, LTX-2.5/2, HunyuanVideo 1.5, Wan VACE | Text, image, start+end frame, references, native audio, durations, resolutions |
+| Create Image (multi-model) | 🟢 | 56 image models: Nano Banana Pro / 2 / 2.1, Seedream 5.0 Pro / Lite, GPT Image 2.5 Flare / Sunburst, FLUX.3, FLUX.2 [pro], Kontext [max], Ideogram 4.5 / 3.0, Recraft V4.1 / Pro, Qwen Image 3, Wan 2.7 Image, Z-Image Turbo, Imagen 4, Grok Imagine Image 2.0 | Z-Image Turbo, Qwen-Image 2512 (+ Lightning), FLUX.2 [dev] (+ Turbo), FLUX.1 Krea / dev / schnell, HiDream, SDXL | Batch ×1–4, aspect ratios, quality tiers, seeds, negative prompts, references. The Image studio lists text-to-image models only; edit tools live in Edit |
+| Soul 2.0 / Soul Cinema / Soul v1 | 🟢 cloud · 🟡 open | Higgsfield's own API with the Soul style picker | Each preset's description as a prompt template on any open model | Needs a Higgsfield key for the real look. Soul Cinema has one fixed look and no presets, so a look is described in words there |
+| Soul presets (without a key) | 🟢 | `style_id` on the preset's own Soul model; the description in words elsewhere | The description as a prompt template | 106 Soul + 33 Soul 2.0 presets with Higgsfield's ids and categories, generated from the research (`scripts/gen-higgsfield-presets.py`, part of `pnpm gen:catalog`). Used when there is no key, the live list is empty or it fails; live previews are added when a key is set |
+| Soul ID (character training) | 🟢 | Higgsfield Soul ID (Soul 2.0, Soul Cinema) → `custom_reference_id`; fal Z-Image Turbo LoRA trainer | AI-Toolkit job on your GPU → Z-Image Turbo LoRA copied into ComfyUI | Train from an element's photos. A trained element is used when @mentioned on its model |
+| Moodboards | 🟢 | Recraft V4 Styles makes a style from the board's 10 most representative images; the returned `style_id` is reused by "Recraft V4 Styles · saved style". Otherwise the images go as style references on Nano Banana Pro. Curated looks: Soul 2.0 `style_id`. Also Krea 2 Style Reference, FLUX1.1 [pro] (Ultra) Redux | Qwen-Image-Edit Style Reference from 1–2 collages (default), FLUX.2 [klein] / Krea 2 / USO style reference; a Z-Image Turbo style LoRA through AI-Toolkit | `/moodboards` and a Moodboard chip in the Image studio. 5–80 images, ≥256 px, name ≤100 characters, quality meter; status follows the cover job. The `style_id` round trip is tested with a stubbed fal response only |
+| Soul HEX / Color Transfer | 🟢 | Native palettes on Recraft V4.1 / Pro (≤10 colours + background) and Ideogram 3.0; the palette slug on Cinema Studio 4.0; the hex list in the prompt on every other model | Z-Image Turbo · Palette (hex prompt + ColorTransfer lock to a swatch the server renders); other open models get an optional palette-lock step (`oss-palette-image`) | Color signature chip in the Image studio: the 50 Cinema Studio palettes, Upload & Create (k-means over ≤20 photos in a Web Worker), manual editor (≤12 colours, EyeDropper, Use as background). The user's words stay the prompt; Reuse restores the picks |
+| Elements (@characters, locations, props, styles, voices) | ✅ app · 🟢 outputs | Reference images with a legend; video switches to reference-to-video | Same, plus LoRA + trigger word for trained elements | `/elements`; @ menu in every composer and in shots. The mention → reference/LoRA mapping is verified; the outputs need a key or a GPU |
+| Create Video (multi-model) | 🟢 | 65 video models in all: Seedance 2.5 / 2.0, Kling 3.0 / O3 / O1 / 2.6 / 2.5, Veo 3.1 (Fast, Lite), Gemini Omni Flash 1.1, Wan 3.0 / Prime / 2.7 / 2.6 / 2.5, MiniMax H3 / H3 Max / Hailuo, FLUX.3 Video, LTX 2.5, PixVerse V6, Vidu Q3, Luma Ray 3.2, Cinema Studio 4.0, Grok Imagine Video 1.5, Happy Horse 1.1, Genjutsu | Wan 2.2 14B (+ Lightning), Wan 2.2 5B, LTX-2.5 / 2, HunyuanVideo 1.5, Wan VACE | Text, image, start + end frame, references, native audio. Reference clips (`inputs.videos` / `inputs.audios`) go to Seedance 2.5 / 2.0, Cinema Studio 4.0, Wan 3.0, MiniMax H3 and Gemini Omni; models that only read images say so |
| Start & end frame | 🟢 | Kling, Veo, Seedance, Wan, MiniMax, PixVerse, FLUX.3 | Wan 2.2 FLF2V | |
-| Camera motions (DoP presets) | 🟢 | 108 presets on any video model | Wan 2.2 + 18 camera LoRAs, 11 moves via Wan Fun Camera, the rest prompt-only | |
-| Mix (two motions or effects at once) | 🟢 | The second preset's description joins the prompt, worded by its strength | Both presets' LoRAs stacked, each scaled by its strength | Mix chip with a strength slider per preset |
-| Effects / viral presets | 🟢 | 255 effects | 35 with dedicated LoRAs, the rest prompt-only | Most open effect LoRAs target Wan 2.1 I2V; **quality needs a GPU check** |
-| Multi-shot | 🟢 | Kling 3.0/O3 native `multi_prompt`; Seedance, Wan 2.6, Cinema Studio get the shots written into the prompt | Each shot renders as its own clip on the open model (Wan 2.2, LTX, HunyuanVideo), then the clips are joined (the join step ✅ on CPU) | Off / Auto / Custom shot editor; open models have no Auto |
-| Seedance draft mode | 🟢 | Seedance 2.5 480p draft → "Render 1080p" (finalize) | — | |
-| Cinema Studio 4.0 / Director controls | 🟡 | Higgsfield Cinema Studio 4.0 model with genre, era, light, lens, aperture, camera move and grade controls | — | The model and its controls work; Higgsfield's separate Cinema Studio **workspace** (scene list, timeline) ⬜ |
-| Genjutsu, Marketing & Ads Studio | 🟡 | Higgsfield models with their look/template pickers | — | Single-generation UI; no dedicated multi-step studio pages |
+| Camera motions (DoP presets) | 🟢 | 108 presets on any video model | Wan 2.2 with camera LoRAs on 18 motions, 11 moves via Wan 2.2 Fun Camera, the rest prompt-only | Procedural previews show each move's parallax |
+| Mix (two motions or effects) | 🟢 | The second preset's description joins the prompt, worded by its strength | Both presets' LoRAs stacked, each scaled by its strength | |
+| Effects / Visual Effects / viral presets | 🟢 | 255 effects on any video model | 35 with dedicated LoRAs, the rest prompt-only | Most open effect LoRAs target Wan 2.1 I2V; **quality needs a GPU check** |
+| Multi-shot | 🟢 | Kling 3.0 / O3 native `multi_prompt`; Seedance, Wan 2.6, Cinema Studio get the shots written into the prompt | One clip per shot on the open model, then joined (the join ✅ on CPU) | Off / Auto / Custom; open models have no Auto |
+| Seedance draft mode | 🟢 | Seedance 2.5 480p draft → "Render 1080p" | — | |
+| Cinema Studio 4.0 workspace | 🟢 | Cinema Studio 4.0 (Higgsfield) with native Director fields (genre, era, pacing, light, camera body, lens, aperture, move, palette). With no Higgsfield key or another model picked: Seedance 2.5, Kling 3.0 or Veo 3.1 with the panel compiled into the prompt | Wan 2.2 14B Lightning; a camera LoRA or Fun Camera when there is a start frame; palette lock chained after it (`oss-palette-video`) | `/cinema`, `/cinema/[id]`: projects with cover and cost cap, nested scenes (colour, pin, order), feed (Square / Masonry / List, filters, multi-select), prompt bar (@ elements, # 33 camera moves, references, 4–30 s, batch 1–4), Director's Panel (50 palettes + editor, 7 lighting presets + a 2-light rig, Emotion Wheel), retry as a unit, Trash with Undo, live updates |
+| Cinema Studio Extend (forward / backward) and Edit | 🟡 | Extend: Seedance 2.5 extension. Backward ("prequel"): extract frame → edit a still → start/end-frame clip. Edit: Seedance 2.5 edit (Kling O3 without a Higgsfield key) | Prequel the same way on Wan 2.2; edit with Wan 2.2 Fun VACE restyle | The prequel is a 3-step approximation. Cinema Studio 4.0 is capped at 720p on the public API |
+| Cinema Studio image mode and grid | 🟢 | Camera stills (camera, lens, focal length required) on Nano Banana Pro, Seedream 5.0 Pro, Soul Cinema; grids 2×2 / 3×3 / 4×4 (freeform, zooms, shots, next / previous shots) as one sheet | Z-Image Turbo / Qwen-Image stills; Z-Image Turbo · Grid sheet | The sheet is cut into tiles in the browser and stored as uploads. 3D scene / recomposition ⬜ |
+| Cinema AI Director + Project Brief | 🟢 | Claude | Ollama, or an offline storyboard writer | Writes prompts and shot breakdowns into the prompt bar, answers craft questions; never starts a generation. The brief is prepended to every prompt |
+| Genjutsu (motion transfer, object swap, restyle) | 🟢 cloud · ⬜ open | Higgsfield Genjutsu models with their look picker | — (Motion control and Shorts restyle on Wan are the closest) | Genjutsu Restyle needs a look; the list comes live from Higgsfield |
| Motion Control | 🟢 | Kling 3.0 Motion Control | Wan Animate 2, Wan 2.2 Fun Control | `/motion-control` |
-| Edit Video | 🟢 | Kling O3/O1, Gemini Omni, Wan 2.7, Luma Ray 3.2 | Wan 2.2 Fun Control (approximation) | `/video-edit` |
-| Extend video | 🟢 | Seedance 2.5 extension, MiniMax H3 Max, PixVerse V6, FLUX.3, Veo 3.1; Kling (7 models) via last frame → Kling image-to-video → join (fal FFmpeg) | Wan 2.2 Fun VACE extend | `/extend`, "Extend" tile action |
-| Reframe video | 🟢 | Luma Ray 3.2, LTX, hosted Wan VACE | Wan 2.2 Fun VACE reframe | `/reframe` |
-| Draw to Video | 🟢 | Annotated first frame + instructions on any i2v model | Wan-Move: brush strokes become motion paths | Paint tools in the Video studio |
-| Video tools: remove background, relight, depth | 🟢 | BiRefNet video, Bria, Video Depth Anything, LightX relight | BiRefNet / SAM 3 matte, Bernini-R relight, Depth Anything 3 / VDA | `/video-tools` |
-| Join clips, match colours of a video | ✅ open · 🟢 cloud | fal FFmpeg merge (cloud only joins) | ComfyUI concat and palette transfer, both run for real on CPU here | Video tools tabs |
-| Storyboards (Popcorn) | 🟢 | Nano Banana Pro, each frame made from the previous one | Z-Image / Qwen-Image-Edit, then Qwen-Image-Edit + next-scene LoRA | `/storyboard`: up to 8 frames, scene by scene or split from one idea, character/look references; per-frame Animate / Edit |
-| Storyboard → film (keyframes to video) | 🟢 | Seedance 2.5: each frame animated toward the next (start + end frame), clips joined | Wan 2.2 Lightning start/end frame, joined on ComfyUI | "Make the film" on a board; the film and its shots show under it |
-| Shorts Studio, Cinema Studio workspace (scene list + timeline) | ⬜ | | | |
+| Edit Video | 🟢 | Kling O3 / O1, Kling O3 4K Edit, Gemini Omni Flash 1.1, Seedance 2.5, Wan 2.7, Luma Ray 3.2, FLUX.3 Video, Happy Horse Video Edit, Lucy Edit Pro, Runway Aleph 2, Grok Imagine Video Edit, LTX 2.3 Reference Restyle | Wan 2.2 Fun Control, Wan 2.2 Fun VACE restyle | `/video-edit` |
+| Extend video | 🟢 | Seedance 2.5, MiniMax H3 Max, PixVerse V6, FLUX.3, Veo 3.1; Kling via last frame → image-to-video → join | Wan 2.2 Fun VACE extend; the last frame comes from the open Extract frame workflow (✅ on CPU) | `/extend`, "Extend" tile action |
+| Reframe video | 🟢 | Luma Ray 3.2, LTX Reframe, hosted Wan VACE | Wan 2.2 Fun VACE reframe | `/reframe` |
+| Draw to Video | 🟢 | Annotated first frame + instructions on any image-to-video model | Wan-Move: brush strokes become motion paths | Paint tools in the Video studio |
+| Shorts Studio | 🟢 | Gemini Omni Flash (default), Kling O3 4K Edit and Happy Horse Video Edit (both read references), Lucy Edit Pro, Runway Aleph 2, LTX 2.3 Reference Restyle, Wan 2.7. Per segment: trim → centre-crop to 9:16 / 16:9 when needed (fal `scale-video`) → restyle; joined, then the original sound muxed back | Cut a resampled segment (≤81 frames at 16 fps) → restyle its first frame with Qwen-Image-Edit 2511 → Wan 2.2 Fun VACE restyle with depth → join → mux | `/shorts`, `/shorts/[id]`: 44 presets plus custom presets from ≤10 references; MP4 / MOV (WebM headers are read too), 4 s–2 min, ≤200 MB; segments with takes, Regenerate, Stitch again, Download full video or parts; prices per resolution. Cutting, joining and muxing ✅ on CPU; the restyle needs a GPU or a key |
+| Mixed Media | 🟡 cloud · 🟢 open | Trim → LTX 2.3 Reference Restyle anchored on a Nano Banana 2 preview still → original sound | Z-Image Turbo img2img + Fun Union ControlNet per frame at 4–24 fps (VHS meta-batch) | `/mixed-media`: 33 presets with per-preset settings, preview frame, History with Try again. The cloud route is a video-to-video restyle, not Higgsfield's per-frame stylization. Meta-batch passes ✅ on CPU (self-test graph) |
+| Storyboards (Popcorn) | 🟢 | Nano Banana Pro, each frame made from the previous one | Z-Image / Qwen-Image-Edit, then Qwen-Image-Edit + next-scene LoRA | `/storyboard`: up to 8 frames; the board is named after the idea |
+| Storyboard → film | 🟢 | Seedance 2.5 start + end frame per pair, clips joined | Wan 2.2 Lightning start/end frame, joined on ComfyUI | "Make the film" once every frame is done |
### Edit & apps
-| Higgsfield feature | Fuobe | Notes |
-|---|---|---|
-| Edit image (instruction edit) | 🟢 | Any edit model, up to 14 references (cloud) / 3 (open) |
-| Inpaint / Draw to Edit | 🟢 | `/inpaint` and paint tools in Edit: masks go to native inpaint routes (GPT Image, Ideogram, FLUX Fill, Z-Image) in each API's mask convention; models without a mask input get a red-tinted copy and instructions; drawings and notes become instruction images. Before/after compare slider in the viewer (C) |
-| Color Grading | ✅ | `/color-grade`: free, runs in the browser (WebGL). Higgsfield's Natural / Split Tone / Soft Skin / Old Lens / 16mm looks plus seven film looks, full manual controls, hold to compare, PNG/WebM export into the library |
-| Expand (outpaint), Upscale image/video | 🟢 | Topaz, SeedVR2, Recraft Crisp (cloud); FLUX Fill outpaint, ESRGAN, SeedVR2 (open) |
-| Relight, Angles, Skin Enhancer, Headshots, Try-On, Packshot, Face/Character Swap… | 🟢 | 121 apps: 119 on both engines, 2 open-only. Relight uses the Relight LoRA on the open engine. New: Match Lighting (relight from a reference photo), Match Colors (palette of a reference; open version ✅ on CPU), AI Influencer |
-| Approximated apps | 🟡 | 17 apps carry an explicit `parity` note shown on the app page (e.g. Virality Predictor, Click to Ad) |
-| Layers, Photodump, Moodboards, Soul HEX | ⬜ | |
+| Higgsfield feature | Fuobe | Cloud route | Open-source route | Notes |
+|---|---|---|---|---|
+| Edit image (instruction edit) | 🟢 | Any edit model, up to 14 references (Nano Banana Pro, Seedream 5.0, GPT Image 2.5, FLUX.2 / Kontext, Qwen Image 3…) | Qwen-Image-Edit 2511, FLUX.1 Kontext [dev], FLUX.2 [dev] (up to 3 references) | `/edit`. New tools: Bria Extract Object, Ideogram Remove Background, Recraft Vectorize, Image to SVG (VTracer) |
+| Inpaint / Draw to Edit | 🟢 | Native mask routes (GPT Image, Ideogram, FLUX Fill [pro], Z-Image) in each API's convention; a red-tinted copy + instructions elsewhere | FLUX.1 Fill [dev] | `/inpaint`, compare slider in the viewer |
+| Layers | ✅ editor · 🟢 AI tools | Decompose: Seedream 5.0 Layers (default), Seedream 5.0 Flash Layers, Qwen-Image Layered (hosted). Edit text: Ideogram 3.0 Text Layers detects, Nano Banana Pro or Seedream 5.0 Pro edits. Background: BiRefNet, Ideogram. Regional edit: Seedream 5.0 Pro, Nano Banana Pro. Upscale: Topaz, SeedVR2, Recraft Crisp. Relight, Expand: Nano Banana Pro. Angles: Qwen Multiple Angles | Qwen-Image-Layered (a named element runs on Layered-Control), Qwen-Image-Edit 2511 (typed text lines, regional edit, angles), RMBG, FLUX Kontext, ESRGAN / SeedVR2, Qwen relight, FLUX Fill | `/layers`, `/layers/[id]`: canvas (move, resize, rotate, masks), Layers panel, per-layer prompt with revisions, history and versions, Compare, Cropped / Positioned zips and PNG at full detail, Copy JSON, Color grading (WebGL); phones get a read-only view. "Open in Layers" on every image result. The editor and the browser-built downloads ran end to end on demo layers. Not built: open-source text detection, the Inpaint and Enhancer tools, comments, Save as Element |
+| Color Grading (free, in the browser) | ✅ | — (WebGL in the browser) | same | `/color-grade`: Higgsfield's five looks plus seven film looks, manual controls, PNG / WebM export into the library; looks preview on a bundled sample before an upload |
+| Expand (outpaint), Upscale image | 🟢 | Topaz, SeedVR2, Recraft Crisp | FLUX Fill outpaint, 4x ESRGAN, SeedVR2 | `/upscale` |
+| Upscale video (+ FPS boost, SDR→HDR, pro codecs) | 🟡 | Topaz Video, SeedVR2 Video | SeedVR2, ESRGAN video | Upscaling only. FPS boost, SDR→HDR and ProRes / EXR output ⬜ (a RIFE model is in the open catalog, but no studio offers it) |
+| Video tools: remove background, relight, depth | 🟢 | BiRefNet video, Bria video, Video Depth Anything, LightX relight | BiRefNet / SAM 3 matte, Bernini-R relight, Depth Anything 3 / VDA | `/video-tools`. Remove object ⬜ (Edit video with a prompt is the closest) |
+| Join clips, match colours of a video (Color Palette) | ✅ open · 🟢 cloud | fal FFmpeg merge (cloud only joins); Match Colors app re-grades with Nano Banana Pro | ComfyUI concat and palette transfer, both run for real on CPU | Video tools tabs |
+| Trim video | ✅ open · 🟢 cloud | fal `trim-video` | Trim Video (core nodes, keeps the audio) | Video tools → Trim: filmstrip + in/out picker. Ran on CPU through the production build |
+| Captions (transcribe, edit, burn in) | ✅ open burn-in and cue editing · 🟢 transcription and cloud burn-in | Transcribe: ElevenLabs Scribe v2 (also Wizper, Whisper). Burn: VEED Subtitles (your edited lines as SRT) or Auto Subtitle (quick karaoke, ignores edits) | Transcribe: Qwen3-ASR 0.6B + ForcedAligner. Burn: Fuobe's chunked core-node burn-in (`oss-captions-burnin`); Whisper captions with `NC_PACKS=1` | Video tools → Captions: cue editor (text, timing, split / merge / insert / remove, undo), import .srt / .vtt, 6 styles incl. karaoke with a live preview, export .srt / .vtt. Each burner shows only the controls it supports |
+| Image to 3D / product spin | 🟢 | Hunyuan3D 3.1 Pro (default) / Rapid, TRELLIS.2, Tripo H3.1, Meshy 7.1 | TRELLIS.2 (textured GLB + turntable MP4, MIT), Hunyuan3D 2.1 (shape only, territory-restricted licence) | `/image-to-3d` and an app: orbitable GLB viewer, downloads, turntable (TRELLIS.2's, or recorded in the browser for mesh-only models), "Animate the spin" |
+| Try-On, Angles, Product Shot apps | 🟢 | FASHN Try-On 1.6 (also Google, Leffa); Qwen Multiple Angles (rotate / tilt / zoom); Bria Product Shot | FLUX.2 [klein] 4B + try-on LoRA; Qwen-Image-Edit 2511 + Multiple-Angles LoRA; Qwen-Image-Edit 2509 + White_to_Scene LoRA | The old approximation notes are gone; the notes now say what the open route runs. Try-on needs the person and the garment |
+| Relight, Skin Enhancer, Headshots, Packshot, Face/Character Swap, Transitions… | 🟢 | 123 apps: 121 on both engines, 2 open-only | Relight LoRA, ReActor, Qwen-Image-Edit… | Match Lighting, Match Colors, Hook Frame (the old "Virality Predictor" app, which now redirects to `/virality`) |
+| Approximated apps | 🟡 | — | — | 17 apps are marked as approximations on their page (e.g. one silent clip where Higgsfield beat-matches several), out of 41 with a parity note (what the Fuobe or open version does differently) |
### Characters, lipsync, audio
-| Higgsfield feature | Fuobe | Notes |
-|---|---|---|
-| Lipsync Studio / talking avatars | 🟢 | Kling Avatar 2.0/1, OmniHuman 2/1.5, InfiniteTalk, Sync Lipsync (cloud); InfiniteTalk, Wan 2.2 S2V (open) |
-| Text to speech + voice picker | 🟢 | ElevenLabs v3 / v4 / v4 Turbo / Multilingual v2 with the 21 premade voices and stability/similarity/style/speed sliders; open Chatterbox Multilingual (23 languages) and IndexTTS-2 |
-| Voice cloning | 🟢 | Zero-shot from a recording (in-browser mic → WAV) or upload: Chatterbox, IndexTTS-2. Voices can be saved as Voice elements |
-| Dialogue (two or more speakers) | 🟢 | ElevenLabs Dialogue with a per-line script; open Chatterbox Dialogue with two cloned speakers |
-| Voice change | 🟢 | ElevenLabs Voice Changer, Chatterbox VC |
-| Translate & dub | 🟢 cloud · ⬜ open | HeyGen (lip-synced), ElevenLabs Dubbing. No open dubbing pipeline |
-| Sound effects, music, sound for video | 🟢 | ElevenLabs SFX/Music, MMAudio (cloud); ACE-Step 1.5, MMAudio (open). No open SFX model |
-| AI Influencer | 🟢 | App: Higgsfield's character-sheet endpoint (human or creature looks) or a character-sheet prompt on Z-Image Turbo. "Save as character" on any image tile makes it an @element |
-
-### Platform
-
-| Higgsfield feature | Fuobe | Notes |
-|---|---|---|
-| Supercomputer / Assist agent | 🟢 | `/assist`: describe the whole job; the agent looks up models, writes prompts, shows a plan card with the estimated cost, runs it when you approve ("Ask first", or auto-run), waits for results, looks at them and chains steps (image → animate, storyboards, @elements, your earlier outputs). Runs on Claude, on a local Ollama model (tool calling), or an offline rule-based planner |
-| Assets library, favorites, search, reuse, hand-offs, download | ✅ | |
-| Live progress, cancel, retry, failure messages | ✅ | |
-| Engine choice (open only, paid only, both) | ✅ | Settings → Engine mode, or `FUOBE_ENGINE_MODE` |
-| Credits / pricing | 🟡 | Bring your own key: live cost estimates per run (and per Assist plan); "Free" for open source; no billing |
-| Sign-in | ✅ | Optional password (Settings → Security or `FUOBE_PASSWORD`) for every page and API call, plus API tokens for scripts and agents |
-| Accounts, teams, sharing, community feed, contests | ⬜ | Single-user and self-hosted today |
-| MCP (other agents use the studio) | ✅ | `/api/mcp`: search models, estimate cost, generate, storyboards, results. Settings shows the `claude mcp add` command |
-| Canvas (node workflows), plugins | 🟡 / ⬜ | ComfyUI itself is the node canvas for the open engine; no in-app canvas |
-| Public API | 🟢 | The REST API and MCP endpoint, protected by the password / API tokens once a password is set |
+| Higgsfield feature | Fuobe | Cloud route | Open-source route | Notes |
+|---|---|---|---|---|
+| Soul Cast (AI actor builder) | 🟢 | Soul 2.0, else Nano Banana Pro | Z-Image Turbo · Soul Cast sheet (4 views), Z-Image Turbo | The 17 fields from the research; saved as a character element. In Cinema Studio and Character Sheet |
+| Soul Location | 🟢 | Soul Cinema, Nano Banana Pro, Seedream 5.0 Pro; extra views | Z-Image Turbo, Qwen-Image | Saved as a location element, then @mentioned in shots |
+| Character Sheet | 🟢 | From Reference (1–5 photos): Nano Banana Pro. Build from scratch: Soul 2.0 with a key, else Nano Banana Pro. From a description: the AI Influencer app | Qwen-Image-Edit 2511 (≤3 photos); Soul Cast sheet workflow | `/character-sheet`; Save as character. On the open engine the photo's shape is kept (aspect off) |
+| AI Influencer Studio | 🟡 | Higgsfield's AI Influencer character sheet | Soul Cast sheet workflow | An app plus Character Sheet's "From a description". Higgsfield's game-style builder (19 categories, blendable creature types) is not reproduced |
+| Lipsync Studio / talking avatars | 🟢 | Kling Avatar 2.0 / AI Avatar, OmniHuman 2 / 1.5, InfiniteTalk (hosted), Sync Lipsync 3 / 2 Pro | InfiniteTalk (+ Long), Wan 2.2 S2V, InfiniteTalk Lip Re-sync (video, ≤40 s per job), LatentSync 1.6 (isolated worker) | `/lipsync`: "Add a portrait or a video" |
+| Text to speech + voice picker | 🟢 | ElevenLabs v3 / v4 / v4 Turbo / Multilingual v2 (21 premade voices), Inworld TTS 1.5 Max (113 voices), MiniMax Speech 2.8 HD, Seed Audio 1.0 | Chatterbox Multilingual (23 languages), IndexTTS-2 | Sliders per model |
+| Voice cloning | 🟢 | Chatterbox and IndexTTS-2 (hosted) | Chatterbox, IndexTTS-2 | From a mic recording or an upload; saved as Voice elements |
+| Dialogue | 🟢 | ElevenLabs Dialogue | Chatterbox Dialogue | |
+| Voice change | 🟢 | ElevenLabs Voice Changer, Chatterbox VC (hosted) | Chatterbox Voice Conversion | |
+| Translate & dub | 🟢 both | One shot: HeyGen Translate / Translate Speed, ElevenLabs Dubbing. Step by step: ElevenLabs Voice Isolation → Scribe v2 → Claude → review → ElevenLabs v4 per take → fal compose (each take at its cue) → extract the track → Chatterbox VC (the speaker's voice) → Sync Lipsync 3 | MelBand RoFormer stems + Qwen3-ASR 1.7B cues (one job) → local LLM → review → Chatterbox per take in the cloned voice → voice timeline (core nodes) → InfiniteTalk lip re-sync → mux over the background stem (−3 dB) | Audio → Translate: spoken language + up to 8 targets, prices before Translate and Voice, autosaved cue editor, lip re-sync toggle, Voice again. The voice follows the reviewed cue times and the video keeps its length. The timeline step ✅ on CPU. **Cloud step by step keeps the voice only** (no background stem) |
+| Sound effects | 🟢 | Mirelo SFX 2.0 (default, Higgsfield's model), Sonilo SFX 1.1, Stable Audio 3 SFX, Stable Audio 2.5, CassetteAI, Seed Audio 1.0, ElevenLabs SFX | Stable Audio 3 Small SFX (default; Stability Community licence, free under US$1M revenue), Stable Audio Open 1.0, HunyuanVideo-Foley, MMAudio (non-commercial), ThinkSound (isolated worker) | Audio → Sound effects |
+| Music | 🟢 | Sonilo Music 1.1 (default, Higgsfield's model), Lyria 3 / Pro, MiniMax Music 2.5, Stable Audio 3 Music, Mureka 9.5, ElevenLabs Music | ACE-Step 1.5 | Audio → Music |
+| Sound for a video | 🟢 | Mirelo SFX 2.0 for video (default), MMAudio | HunyuanVideo-Foley fed the clip's frames (default; as long as the clip, ≤30 s), MMAudio | Audio → Sound for video. HunyuanVideo-Foley's licence excludes the EU, UK and South Korea |
+| Transcription and voice separation | 🟢 | ElevenLabs Scribe v2, Wizper, Whisper; Demucs stems, ElevenLabs Voice Isolation | Qwen3-ASR; MelBand RoFormer + Qwen3-ASR | Text results carry timed cues (saved as .srt); stems carry `meta.stem`. Used by captions, dubbing and Faceless |
+| Text steps (translate, write) | 🟢 | Claude (`text-llm`) | A local model on Ollama (`oss-text-llm`, never calls Claude) | Translations keep the cue timing (numbered batches of 30, then 10, then line by line). Settings → Prompt enhancement → Offline rewriter (`FUOBE_ENHANCE_PROVIDER=none`) turns text steps off |
+
+### Studios & marketing
+
+| Higgsfield feature | Fuobe | Cloud route | Open-source route | Notes |
+|---|---|---|---|---|
+| Brand kit + products | 🟢 | Website research needs no model; Claude fills the soft fields (tone, audience, selling points) | Ollama, or offline heuristics | Reads HTML meta, OpenGraph, JSON-LD, Shopify `/products.json`, CSS colours, Google fonts, logo, hero images and socials through the SSRF-safe fetch; 14 rotating research labels, Cancel / Retry. Manual path with k-means colours. Products from a link or an upload. The scraper ran against local fixture shops, not real sites |
+| Marketing Studio | 🟢 | Per format: Bria Product Shot / Nano Banana Pro / GPT Image 2.5 / Product Photography (product shots), GPT Image 2.5 / Ideogram 4.5 / 3.0 / Recraft V4.1 (ads, posters, listings), Marketing Studio Image (Higgsfield, with a key), Seedance 2.5 / Kling O3 / Gemini Omni (motion), OmniHuman 2 / Kling Avatar (UGC). UGC chain: ElevenLabs v4 → Nano Banana Pro still → OmniHuman 2 presenter → Auto Subtitle → Seedance 2.5 hook and b-roll → joined | Qwen-Image / Qwen-Image-Edit stills (words set in the browser), Wan 2.2 Lightning motion; UGC: Chatterbox (voice sample needed) → Qwen-Image-Edit → InfiniteTalk → caption burn-in → joins that keep the voice | `/marketing`: 84 Fuobe templates in 11 formats with procedural previews, 9 hooks and 14 settings, product / avatar / reference slots, brand kit chip, live price, Run again. Higgsfield's library has 1,074 templates; Fuobe ships its own set |
+| Click to Ad / Link to Video Ad | 🟢 | Same UGC models, or product-only shots; 9:16, ≤12 s, voiceover and captions | Same open UGC chain | `/marketing/click-to-ad`: link → "Building your product kit" → 10 styles → script (Claude, Ollama or an offline writer within the word budget). The product joins its site's brand kit, so logo and colours persist. The two old parity apps now open this flow. No logo end card in the video |
+| Ads Studio | 🟢 | Higgsfield Ads Studio one-shot (with a key), or Fuobe: Claude copy (angle, headline, body, CTA) + Nano Banana Pro visual + compositing in the browser | Qwen-Image-Edit / Qwen-Image visual + the same compositing; Ollama or rule-based copy | `/ads`, `/ads/[brandId]`: brands, up to 10 products × up to 20 ads, 1:1 / 4:5 / 9:16 with logo, colours and Google fonts, editor, Download all (zip built in the browser), brand chat with @product mentions and priced proposals |
+| Ad Multiplier | 🟢 | Seedance 2.5 edit (Higgsfield), Kling O3 edit, Gemini Omni Flash. Hook / CTA: first or last frame → image-to-video → joined around the original | Wan 2.2 Animate + the original sound muxed back; hook / CTA on Wan 2.2 Lightning, joined keeping the reference's sound | `/ads/multiplier`: 4–30 s reference, up to 20 @image_N, Prompt or Change hook / Change CTA, 480p / 720p / 1080p (open ≤720p), 1–4 versions, live estimate |
+| Faceless Studio | 🟢 | Nano Banana Pro stills, Gemini Omni Flash clips (Seedance 2.5 in Advanced), ElevenLabs v4 / Multilingual v2 or a Chatterbox clone, ElevenLabs forced alignment, Sonilo music levelled to −28 LUFS and mixed by fal FFmpeg compose, Auto Subtitle; Upscale to 1080p with SeedVR2 | Z-Image Turbo or Qwen-Image-Edit Style Reference stills, Wan 2.2 Lightning, Chatterbox (voice sample needed), ACE-Step (≤240 s) mixed by the soundtrack workflow, Qwen3-ASR timings + caption burn-in | `/faceless`: channels (genre, idea, YouTube reference, saved look and sound, avatar), topics, 1–5 min, 12 styles or 3 style references, narrator, script review, then a two-stage render (stills + narration + word timings, then each scene cut to where its lines are spoken). Timeline editor: change a scene's picture, motion or the narration, see the price, Undo. Deleting stops the render |
+| Higgsfield Explainer | 🟢 | Same pipeline as Faceless | Same; stills drawn from your source images with Qwen-Image-Edit | `/explainer`: 22 styles, up to 3 sources (images, .txt / .md, a summarised link), Auto / 20 s–10 min / Manual 15–600 s, History. PDF and Word sources aren't read |
+| Katana | 🟢 | Per segment: cut → first frame → your subject put in (Nano Banana Pro) → motion with Kling O3 edit, Genjutsu Motion Transfer or Kling 3.0 Motion Control; joined at the original cut times over the original soundtrack | Same chain with Qwen-Image-Edit, Wan 2.2 Animate / Fun Control | `/katana` plus a `katana` Assist / MCP tool and a skill. Scene cuts found in the browser and refined to a frame; Retry failed steps; Run again |
+| Virality Predictor | 🟡 | — | — | `/virality` runs a clearly labelled heuristic check of the first 3 seconds in the browser and shows no score. Higgsfield's output matches Meta's TRIBE v2 (CC BY-NC); its worker contract is in [`docs/workers/tribe-v2.md`](workers/tribe-v2.md), but Fuobe doesn't host it |
+| Photodump Studio / Instadump | 🟢 | Soul 2.0 + Soul ID with a key, else Nano Banana Pro or Seedream 5.0 Pro | The character's Z-Image Turbo LoRA when trained, else Qwen-Image-Edit 2511 | `/photodump`: 9 Soul 2.0 packs + 5 Instadump packs (one Fuobe prompt per photo), Create pack from ≤15 photos, a selfie (≤20 MB) or a character, Download all, Animate, Edit, Retry a failed photo inside its run |
+| Fashion Factory | 🟢 | Soul 2.0 / Nano Banana Pro base shots, FASHN try-on (Nano Banana Pro as the alternative), Nano Banana Pro photoset | Z-Image Turbo (+ character LoRA), FLUX.2 [klein] try-on, Qwen-Image-Edit photoset | `/fashion-factory`: 6 templates, the 5 steps with Higgsfield's copy; progress survives a reload |
+| Canvas (node workflows) | 🟢 | Any cloud model on a node | Any open model on a node | `/canvas`, `/canvas/[id]` on @xyflow/react: 13 node types (text prompt, image / video / audio input, element, model, join, extract frame, upscale, remove background, speech, output / compare, note), typed edges, Run node / selected / all, fresh results reused, pins, autosave, phone node list. 5 templates, each in a cloud and an all-open-source version. No pages, multiplayer, comments or tables |
+
+### Platform & agents
+
+| Higgsfield feature | Fuobe | Cloud route | Open-source route | Notes |
+|---|---|---|---|---|
+| Supercomputer / Assist agent | 🟢 | Claude (claude-opus-5-5 by default; Manual offers sonnet-5-5, haiku-5-5 and fable-5-1 with an effort level) | Ollama tool calling, or the offline rule-based planner | `/assist`: plans, prices, asks first (or auto-runs), chains steps with `after`. Modes Free / Smart / Manual; each chat's context is frozen when it starts and later changes arrive as "Context update" messages |
+| Assist skills | ✅ app · 🟢 with an LLM | Loaded into Claude's context with `/name` or `load_skill` | Same on Ollama; the offline planner uses their hints | 20 built-in SKILL.md playbooks in `skills/`; create, edit, duplicate, download, turn on / off, upload .md / .zip / .skill (bounded unzip). Also offered as MCP prompts |
+| Assist projects | ✅ app · 🟢 with an LLM | — | — | Instructions, colour, up to 20 sources (links and PDFs fetched safely, files with PDF text, elements, notes), project skills, chats per project, an Assets tab |
+| Assist memory | ✅ app · 🟢 with an LLM | — | — | 8 categories, add / edit / delete, import from other assistants, per project or across all chats; the `remember` tool asks first |
+| Studio jobs from Assist and MCP | 🟢 | `split_layers`, `restyle_footage`, `dub_video`, `faceless_episode`, `create_ads`, `add_captions`, `katana` | Same on the open engine (`faceless_episode` needs a voice sample there) | Each runs as a `createPipeline` job and is priced on the approval card first. They don't open a studio session yet (see §3) |
+| AI Employees, Apps builder, Websites, Games, 3D Jutsu, connectors (Slack, Drive, Notion…) | ⬜ | — | — | |
+| MCP (other agents use the studio) | ✅ | — | — | `/api/mcp` 1.1.0: search_models, estimate_cost, estimate_job, generate, create_storyboard, check_generations, list_recent, list_elements, list_skills, load_skill, read_source, remember and the studio tools; prompts built from the enabled skills |
+| CLI + skills (`npx skills add …`) | ⬜ | — | — | Skills are SKILL.md files that MCP clients receive as prompts; there is no Fuobe CLI |
+| Plugins (Photoshop, Figma, Blender, After Effects, DaVinci) | ⬜ | — | — | |
+| Assets library | ✅ | — | — | `/library`: Square / Masonry / List, Fit / Fill, card size, split by date; tabs All / Images / Videos / Audio / Text / 3D / Favorites / Uploads / Trash; filters by model, date and status; batch stacks; select mode with a bulk bar (zip, like, move, delete); folders with colours and drag and drop; Reuse, hand-offs (Animate, Extend, Lipsync, Open in Layers…) and downloads. Missing: nested folders, pins, review status, projects in the library |
+| Trash | ✅ | — | — | Delete moves to the Trash with Undo (feed, viewer, Library, Cinema); 30 days, Restore, Delete forever (asks first), Empty trash; purged at startup and then daily; files still used elsewhere are kept |
+| 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) |
+| 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 |
+| Engine choice (open only, paid only, both) | ✅ | — | — | Settings → Engine mode, or `FUOBE_ENGINE_MODE` |
+| Credits / pricing | 🟡 | — | — | Bring your own key: live cost estimates per run, per pipeline step, per Assist plan; prices per resolution and per input + output second where the API bills that way; a cost cap per Cinema project; "Free" for open source. No billing |
+| Sign-in and security | ✅ | — | — | Optional password (`FUOBE_PASSWORD`) and API tokens; cross-site writes refused; Host allowlist on password-less installs (`FUOBE_ALLOWED_ORIGINS`); remote URLs fetched only from public addresses (`FUOBE_ALLOW_PRIVATE_URLS=1` for a LAN); login throttle (`FUOBE_TRUST_PROXY=1` behind a proxy) |
+| Accounts, teams, sharing, community feed, contests, Academy | ⬜ | — | — | Single-user and self-hosted today |
+| Content checks (IP / face eligibility), browser notifications | ⬜ | — | — | |
+| Public API | 🟢 | — | — | The REST API (incl. `GET /api/generations/stream`) and the MCP endpoint, behind the password / API tokens once a password is set |
## 3. Known issues and caveats
-- **Paid providers are untested with real keys.** Field names come from the providers' schemas (fal OpenAPI, Replicate, Higgsfield's API docs), but the first live runs may surface model-specific quirks. The picker marks models whose provider isn't connected as "demo".
-- **Open-source quality is unverified.** Every workflow is structurally validated, none has run with real weights. Expect to tune steps/CFG per model on a GPU. The same goes for AI-Toolkit training (verified against a fake job API, not a real training run).
-- **The Assist agent hasn't talked to a live model.** The Claude request and the loop are tested with a stub and Ollama with a fake server; the first real conversations may need prompt tuning, and small local models follow tool instructions less reliably. Claude is used only when an Anthropic key is set, and on "open source only" installs only when Prompt enhancement is explicitly set to Claude.
-- **Chained jobs run one after another.** A storyboard film waits for its frames, then its clips, then the join, so it takes as long as the slowest steps added up. A failed step fails the steps after it (retry it, then press Make the film again).
-- **Higgsfield controls/templates:** the Soul style, Genjutsu look and Marketing Studio template lists are fetched live from Higgsfield. Without a key the pickers stay empty and ask for one; Genjutsu Restyle, which requires a look, can't run until then.
-- **Sign-in is off by default.** Until a password is set, anyone who can reach the server can use it (and your keys). Settings warns about this. It is single-user: no roles or per-user libraries. `comfyLorasDir` and `aiToolkitDatasetDir` make the server write files to the paths you set, so set a password before exposing Fuobe beyond your machine.
+Most important first.
+
+**Not run for real (no keys, no GPU)**
+- **Paid providers are untested with real keys.** That now includes the round-3 response shapes Fuobe reads: Seedream layer boxes, Recraft's returned `style_id`, transcript cues, 3D files, Demucs stems, and the fal FFmpeg tools (compose `tracks`, loudnorm, forced alignment, `scale-video` crop, extract-audio). Two behaviours are assumptions from the docs: fal compose cuts an audio keyframe at its `duration`, and it renders an audio-only timeline over a still. Cloud `join-clips` is assumed to keep each clip's audio.
+- **Open-source quality is unverified.** Round 3 added about 165 GB of new model files (plus about 9 GB that nodes download on first use) that have never run here. Whole open chains (a UGC presenter film, a Faceless episode, a dub with lip re-sync, a Shorts restyle) ran only on the demo provider. The try-on single-garment graph and the new InfiniteTalk sizing are checked by `/prompt` validation only; ThinkSound's packages are installed on the isolated worker but never ran.
+- **Assist hasn't talked to a live model.** The streamed Claude call is tested against an SSE fake and Ollama against a fake server. Skills, projects and memory work end to end with the offline planner only. Small local models follow tool instructions less reliably.
+
+**Gaps that change what a user gets**
+- **Assist / MCP studio tools always use their pipeline fallback.** `STUDIO_ROUTES` in `src/server/assist/studio-tools.ts` is empty, so a `dub_video` or `split_layers` job lands in the Library, not as a dub session or a Layers project. The `katana` tool is in the tool list but isn't named in Assist's system prompt or the MCP instructions. Several skills still link to stand-in pages: `faceless-video` → `/storyboard`, `katana` and `ad-multiplier` → `/video-edit`, `marketing-studio-cards` → `/apps/app-ad-creative`, `character-sheet` → `/elements`.
+- **Cloud step-by-step dubbing keeps the voice only.** Its soundtrack step (`merge-audio-video`) takes one track, so the background music and effects are lost. The open route mixes the background stem back in. (`ffmpeg-compose`, which Faceless uses, could carry both.)
+- **Mixed Media on the cloud is a video-to-video restyle**, not Higgsfield's per-frame pipeline. A real one needs a per-index chain slot, an images-to-video tool and splitting renders above 200 frames.
+- **Open-engine limits.** Music beds stop at 240 s (ACE-Step; there is no open audio concat or loop). Open "Frame by frame" in Faceless is a slow-camera image-to-video, not a pan. The joins that keep a clip's sound hold every frame in RAM at 25 fps (about 1 GB per 8 s at 480x848). Open video upscaling decodes the whole film (about 38 GB for 30 s at 480p), so Faceless offers Upscale to 1080p on the cloud only. InfiniteTalk lip re-sync is capped at 40 s per job (for dubs, the whole source length). Whisper captions refuse clips that need more than half the server's RAM (the estimate isn't measured).
+- **Qwen-Image-Edit keeps the first image's shape** on the open engine. Photodump, Fashion Factory and Character Sheet turn the aspect picker off and say so; the open Character Sheet asks for a landscape photo first.
+- **Layers:** text detection is cloud only (no open OCR model; on the open engine you type the lines to change). A decomposition that finishes while the editor is closed is laid out only when the project is opened (the server can't decode PNG alpha). Upscale doesn't resize the document; downloads use the layers' detail instead.
+- **Cinema Studio:** Cinema Studio 4.0 runs at up to 720p through the public API. Open routes take no reference clips. 3D recomposition, collaboration and community publishing are out of scope. Spend uses the estimate stored at creation for takes deleted for good, so it can be slightly over-counted.
+- **Shorts Studio:** the 9:16 crop is a plain centre crop (no subject tracking). Kling O3 4K's 720 px minimum input isn't checked. The one-submit-per-click guard (`requestId`) is in memory, so a restart forgets it.
+- **Marketing:** Click to Ad videos have no logo end card (the logo is used by the Ads Studio compositor and the brand line in prompts). Brand kits are matched by host and port, so one site on two ports gets two kits. An Ad Multiplier reference whose header Fuobe can't read (e.g. WebM) gets a picture-only join.
+- **Faceless / Explainer:** one narration take per episode, re-timed to the scenes; stage two waits for it, so a first render takes a few seconds longer and a narration change takes two passes. Every new channel draws an avatar (about $0.15 on the cloud). Scripts over 64 KB are flushed without keepalive, so the last edit may not survive closing the tab. PDF and Word sources aren't read (Assist projects can read PDFs).
+- **Formats the header reader doesn't know** (WebM, MKV, Ogg on the open engine) fall back to coarse defaults: caption windows to the millisecond, InfiniteTalk at 16:9 and its frame cap, a mux bed as long as the longest known track. Shorts and Mixed Media read WebM headers themselves.
+
+**Library, data and security**
+- Helper steps (features `shorts-step`, `mixed-media-step` and other chain steps) are listed in the Library; there is no filter that hides them yet.
+- Uploads can't be deleted (they need an in-use check first). Folders are flat.
+- `ASSET_REFS` (the tables a permanent delete checks before removing an output file) doesn't list `dub_sessions` or `katana_jobs`. If a dub or Katana job started from a *generated* clip and every generation that used that clip is later deleted for good, the job's row points at a missing file. Uploads are never removed by a permanent delete.
+- Without Web Locks (plain `http://` on a LAN IP) each visible tab reads its own live stream; six or more visible windows on one host could hit the browser's connection limit.
+- **Sign-in is off by default.** Without a password Fuobe answers only on local addresses and names in `FUOBE_ALLOWED_ORIGINS`, but anyone who can reach it can use it (and your keys). With a password, a page that rebinds DNS can still post password guesses; the throttle caps that at roughly 15–20 a minute. Without `FUOBE_TRUST_PROXY=1` behind a reverse proxy, all visitors share one throttle (slowed, never locked out). `comfyLorasDir` and `aiToolkitDatasetDir` make the server write files where you point them.
+- `MAX_INLINE_TEXT` caps a result's inline text at 64,000 characters; `meta.cues` of a very long transcript stays inline.
+- The first routing check after the Ollama or ComfyUI URL changes can hold a request for up to 1.5 s when the host doesn't answer.
+- Unknown Cinema, Canvas and Assist project ids show a not-found state with HTTP 200; only `/apps/<unknown>` returns a real 404.
+
+**UI leftovers (small)**
+- Canvas: keystroke → paint is 19 ms at 60 nodes and 29 ms at 120 (target 16 ms). Element nodes don't follow a later rename of their element.
+- Video tools → Trim and the Ad Multiplier use simple in/out pickers, not the shared `VideoTrimmer`. `options.sourceLanguages` (spoken language for transcribe models) has no picker.
+- Some buttons still call `navigator.clipboard` directly and fail on plain-http LAN origins (feed, viewer, result actions, attach menu, Cinema workspace / feed / projects, Layers top bar); `copyText` in `src/lib/clipboard.ts` is the fix. Studio pages nest a second `<main>`.
+- The Edit studio shows prompt suggestions for promptless models (e.g. FASHN). Inpaint's blocker after a new image still asks to add an image. The Video Background Remover app's note says Fuobe has no video matting model; Video tools → Remove background does whole videos. On narrow Assist tiles a "Demo" badge can overlap the "TEXT" label.
+- The files route logged "ReadableStream is already closed" once when a crashed test browser dropped its connections; not reproduced.
+
+**Environment and licences**
+- **Licences:** FLUX.1 / FLUX.2 [dev], inswapper (ReActor), MMAudio weights, USO's FLUX.1 base, ComfyUI-Whisper (opt-in with `NC_PACKS=1`) and TRIBE v2 are non-commercial. HunyuanVideo-Foley and Hunyuan3D 2.1 exclude the EU, UK and South Korea. Stable Audio 3 uses the Stability Community licence (free under US$1M revenue); Krea 2 has its own community licence. See `research/comfyui-oss.md`, `-2.md` and `-3.md`.
- **Wan 2.1 LoRAs on Wan 2.2:** most viral-effect LoRAs were trained for Wan 2.1 I2V; some may need a lower strength or only the low-noise expert.
-- **Licenses:** FLUX.1/FLUX.2 [dev], inswapper (ReActor), MMAudio weights and some LoRAs are non-commercial. See `research/comfyui-oss.md` and `research/comfyui-oss-2.md`.
-- **Sunsets:** Sora 2's API was retired (2026-09-24) so it isn't offered; Veo 3.1 on fal ends 2026-11-17 (Replicate route present).
-- **Dev server:** after adding routes the Turbopack cache can get stuck in a reload loop. `pnpm dev:clean` clears `.next` and restarts.
-- **Headless Chromium has no H.264**, so video checks here used WebM; MP4 playback is unaffected in normal browsers.
+- **Sunsets:** Sora 2's API was retired (2026-09-24), so it isn't offered; Veo 3.1 on fal ends 2026-11-17 (the Replicate route stays).
+- **Headless Chromium has no H.264**, so video checks here used WebM and demo MP4 thumbnails look blank in screenshots; MP4 playback is unaffected in normal browsers.
+- **Dev server:** after adding routes, or after an edit to `globals.css`, Turbopack's cache can get stuck or serve stale styles. `pnpm dev:clean` clears `.next` and restarts.
## 4. What's next (prioritized)
-1. **Live-key smoke test** of the top cloud models (Nano Banana Pro, Seedream 5, Kling 3.0, Seedance 2.5, Veo 3.1, Soul 2.0, ElevenLabs), a Kling extend and a cloud storyboard film, and a first real Assist conversation on Claude and on Ollama; fix any schema surprises.
-2. **GPU run** of the starter open set (Z-Image Turbo, Qwen-Image-Edit 2511, Wan 2.2 Lightning, InfiniteTalk, Chatterbox), an open multi-shot film and a real AI-Toolkit training; tune defaults and record timings/VRAM.
-3. Cinema Studio workspace (scene list + timeline) and Shorts Studio, built on chained jobs.
-4. Accounts: several users with their own libraries, shareable links, a community feed.
-5. Real preview media for apps/motions/effects (currently gradient cards).
+1. **Live-key smoke test** of the round-3 cloud routes with the highest risk: Seedream 5.0 Layers, Recraft V4 Styles (style id), FASHN, Mirelo SFX / Sonilo, Scribe v2, Auto Subtitle / VEED, Hunyuan3D 3.1, Gemini Omni Flash edit, the fal FFmpeg tools (compose, loudnorm, forced alignment, scale-video, extract-audio), HeyGen / ElevenLabs dubbing, Higgsfield Cinema Studio 4.0 with reference clips, Ads Studio and Soul 2.0 + Soul ID; then a first real Assist conversation on Claude and on Ollama, with a skill and a project. Fix any schema surprises.
+2. **GPU run** of the round-3 open set: Qwen-Image-Layered, Qwen-Image-Edit Style Reference, Z-Image Turbo · Palette, Wan 2.2 Fun VACE restyle, Z-Image Mixed Media, Stable Audio 3, MelBand + Qwen3-ASR, Chatterbox, InfiniteTalk lip re-sync, TRELLIS.2 and the FLUX.2 [klein] try-on; then one whole open UGC film, Faceless episode and dub. Record VRAM and timings and tune defaults.
+3. **Wire Assist and MCP into the studios:** register the `STUDIO_ROUTES` adapters (Layers, Shorts, dub / captions, Ads, Faceless) so jobs open as real sessions; name `katana` in the system prompt and MCP instructions; point the skills' `studio:` links at `/faceless`, `/katana`, `/ads/multiplier`, `/marketing` and `/character-sheet`.
+4. **Close the engine seams:** the cloud dub background through `ffmpeg-compose`; a per-frame cloud Mixed Media pipeline; an open audio concat / loop (music beyond 240 s) and an open pan / zoom workflow for Frame by frame; an open OCR model for Layers; a logo end card for Click to Ad.
+5. **Library:** hide `*-step` helper generations by default, nested folders and pins, deleting uploads safely, and `ASSET_REFS` entries for the dub and Katana tables.
+6. **UI clean-up:** the shared `VideoTrimmer` in Trim and the Ad Multiplier, a spoken-language picker for transcription, `copyText` everywhere, real 404s for unknown project ids.
+7. **Virality Predictor:** an optional, clearly non-commercial TRIBE v2 worker (`docs/workers/tribe-v2.md`).
+8. **Accounts:** several users with their own libraries, shareable links, a community feed.
+9. **Real preview media** for apps, motions, effects and studio presets (the previews are procedural today).
## 5. How to reproduce the checks
```bash
+pnpm install
pnpm typecheck && pnpm lint && pnpm test && pnpm build
-# open-source engine against a live ComfyUI (no model weights needed):
-bash scripts/comfy/start-comfyui.sh # or point COMFYUI_URL at your own server
-pnpm dev & pnpm test:e2e:comfyui http://localhost:3000
-# re-export + re-validate the workflow library:
-cd scripts/comfy && npm install && npm run all
```
+
+Browser checks need the app running (`pnpm dev`, or `pnpm build && pnpm start`); demo mode with no keys is fine. They use Playwright: the repo's `playwright` / `playwright-core` if it resolves, else a global install, and `$CHROMIUM_PATH` or the newest `/opt/pw-browsers/chromium-*`.
+
+```bash
+pnpm test:e2e:mobile http://localhost:3000 # tests/e2e/no-horizontal-scroll.mjs: every route at 390 px, light and dark (--light / --dark, --routes=/a,/b)
+pnpm test:e2e:shell http://localhost:3000 # tests/e2e/shell.mjs: phone drawer, collapsed groups, settings deep link, keyboard Show more
+node tests/e2e/composer-flows.mjs http://localhost:3000 # first paint, typing before hydration, paste once, upload cancel, phone toolbar
+node tests/e2e/layers.mjs http://localhost:3000 # Layers regressions (projects page, deep links, edits during a save, open-engine Control)
+node tests/e2e/canvas-smoke.mjs http://localhost:3000 --perf=60 # save on leave, rename, trash → re-run, keystroke timing
+node tests/e2e/cinema-shortcuts.mjs http://localhost:3000 # Ctrl/Cmd+Enter only from the prompt bar
+node tests/e2e/assist-flows.mjs http://localhost:3000 # skills menu, remember, projects, skill upload, modes, phone sheet
+```
+
+The open-source engine against a live ComfyUI (no model weights needed):
+
+```bash
+bash scripts/comfy/install-comfyui.sh # ComfyUI v0.41 + 14 custom node packs at pinned commits (CPU; NC_PACKS=1 adds ComfyUI-Whisper)
+bash scripts/comfy/start-comfyui.sh # 127.0.0.1:8188, or point COMFYUI_URL at your own server
+pnpm build && pnpm start &
+pnpm test:e2e:comfyui http://localhost:3000 # tests/e2e/comfyui-selftest.mjs: self-tests, mux (one track and voice + bed), meta-batch, trim, segment, captions; a 600-frame clip with RSS sampling; ffprobe/ffmpeg checks when installed
+```
+
+Re-export and re-validate the workflow library (needs ComfyUI running; never runs a model):
+
+```bash
+cd scripts/comfy && npm install # playwright-core only
+npm run all # export → build → validate every workflow
+npm run build -- <ids> && node validate-workflows.mjs <ids> # single workflows; always pass ids in a fresh checkout without build/raw/
+ISO_DIR=/srv/comfyui-isolated bash install-isolated-worker.sh # optional second ComfyUI for LatentSync 1.6 and ThinkSound (port 8189)
+COMFYUI_URL=http://127.0.0.1:8189 COMFYUI_MODELS_DIR=$HOME/ComfyUI/models node validate-workflows.mjs lipsync-latentsync16 sfx-thinksound --shared
+```
+
+`node scripts/gen-demo-3d.mjs` regenerates the demo GLB and turntable (needs ffmpeg); `pnpm gen:catalog` regenerates the catalog from `docs/research/*.json`.
diff --git a/docs/research/README.md b/docs/research/README.md
index 190921cb..77a26322 100644
--- a/docs/research/README.md
+++ b/docs/research/README.md
@@ -4,16 +4,18 @@ Everything Fuobe's catalog is built from. JSON files are machine-readable and fe
| file | what it covers | used by |
|---|---|---|
-| [`higgsfield-inventory.md`](higgsfield-inventory.md) / [`.json`](higgsfield-inventory.json) | Higgsfield as of 2026-10: navigation, 67 features with UX flows, 32 image + 43 video models, 94 apps, 113 camera motions, 274 effects, pricing, API | Preset catalog (`src/lib/catalog/apps.ts`, `motions.ts`), STATUS feature matrix |
-| [`paid-model-apis.md`](paid-model-apis.md) / [`.json`](paid-model-apis.json) | 517 fal.ai / Replicate / vendor endpoints with exact input fields, enums, defaults, outputs and prices (499 verified from fal's OpenAPI files); fal and Replicate protocol notes; sunsets | `scripts/gen-cloud-models.py` → `cloud-models.generated.ts` |
-| [`higgsfield-api.md`](higgsfield-api.md) / [`.json`](higgsfield-api.json) | Higgsfield's public API: auth, the request lifecycle, uploads, 101 endpoint records (Soul, Soul ID, Genjutsu, Cinema Studio, Marketing Studio, DoP and the hosted third-party models) with full inputs and prices; documentation-derived, no live call | `src/server/providers/higgsfield.ts`, `scripts/gen-higgsfield-models.py` → `higgsfield-models.generated.ts` |
-| [`paid-model-apis-2.md`](paid-model-apis-2.md) / [`.json`](paid-model-apis-2.json) | Part 2: 202 fal / Replicate endpoints for multi-shot, draft mode, extend, reframe, relight, inpaint, voices, dialogue, voice change, dubbing, LoRA training, draw-to-video and storyboards; the ElevenLabs premade voices | `scripts/gen-cloud-models.py` (merged with part 1), training targets |
-| [`paid-model-apis-3.md`](paid-model-apis-3.md) / [`.json`](paid-model-apis-3.json) | Part 3: 206 fal / Replicate endpoints (197 new, 9 re-verified for palette/style fields) for Layers (Seedream layerize with boxes, Qwen-Image-Layered, Ideogram text layers, OCR, vectorize), moodboards and palettes (Recraft Styles, Ideogram 3 color_palette, Krea style, Redux), video restyle (HappyHorse, Lucy Edit, Aleph 2, Kling O3 4K, LTX IC-LoRA, Recast), ffmpeg/trim/frame utilities, transcription and burned captions, SFX and music (Mirelo, Sonilo, Stable Audio 3, Beatoven, CassetteAI, Lyria, Seed Audio), lipsync, product shots, image-to-3D, try-on, multi-angle/next-scene grids, explainer/UGC; output schemas as `outputFields`; per-feature recommendations; Higgsfield API re-check | `scripts/gen-cloud-models.py` (same merge as part 2; checked on a scratch copy), round-3 studios |
-| [`comfyui-oss.md`](comfyui-oss.md) / [`.json`](comfyui-oss.json) | Best open-weight model per capability (23 capabilities, 122 ranked options) with files, URLs, settings, VRAM, licenses; 170 LoRAs (camera, VFX, style, speed) with triggers; ComfyUI API notes | Open model choices, `scripts/gen-oss-loras.py` → `oss-loras.generated.ts` |
-| [`comfyui-oss-2.md`](comfyui-oss-2.md) / [`.json`](comfyui-oss-2.json) | Open-weight answers to the remaining gaps: Chatterbox / IndexTTS-2 voice cloning and dialogue, voice conversion, VACE extend/reframe, Wan-Move, relight, video matte and depth, multi-shot concat, next-scene storyboards, AI-Toolkit character LoRAs; full graphs validated against a live ComfyUI with pinned node packs | The 20 added workflows (`scripts/comfy/library.spec.mjs`), open models, `aiToolkitJob` |
-| [`comfyui-workflow-library.md`](comfyui-workflow-library.md) | The ComfyUI library (73 workflows): sources, validation results, bindings, models and sizes, custom nodes, quirks | `workflows/comfyui/manifest.json`, the ComfyUI provider |
-| [`higgsfield-studios.md`](higgsfield-studios.md) / [`.json`](higgsfield-studios.json) | Screen-level research for Cinema Studio 4.0 (workspace, Director's Panel with all 50 palettes + hex, 7 lighting presets, 33 camera moves, Emotion Wheel, Soul Cast fields, image grid/3D, video modes, limits, validation copy, credit costs), Shorts Studio (44 presets), Mixed Media (33 presets), Instadump; Fuobe build plan per feature | Cinema Studio workspace, Shorts Studio, Mixed Media, Instadump work |
-| [`higgsfield-image-studios.md`](higgsfield-image-studios.md) / [`.json`](higgsfield-image-studios.json) | Screen-level UX of Layers (decomposition settings and cost, 11 editor tools, Edit text, exact zip exports), Photodump / Instadump (packs with photo counts), Fashion Factory (6 templates, 5 steps), Moodboards (5–80 images, 33 curated), Soul HEX (50 palettes with exact hex, manual editor rules), all 106 Soul v1 + 33 Soul 2.0 presets with ids and categories, Character Sheet / Soul Cast options, Soul Location; open and cloud routes and a Fuobe build plan | Planned: preset/palette fallback generator, Layers, HEX, Photodump, Fashion Factory studios |
-| [`liner-ui.md`](liner-ui.md) | Liner's (liner.com — liner.app itself is a parked domain) design language: tokens, layout, composer, microcopy; the Fuobe theme derived from it | `src/app/globals.css`, studio components |
+| [`higgsfield-inventory.md`](higgsfield-inventory.md) / [`.json`](higgsfield-inventory.json) | Higgsfield as of 2026-10: navigation, 67 features with UX flows, 32 image + 43 video models, 94 apps, 113 camera motions, 274 effects, pricing, API | Preset catalog (`src/lib/catalog/apps.ts`, `motions.ts`), the [STATUS](../STATUS.md) feature matrix |
+| [`paid-model-apis.md`](paid-model-apis.md) / [`.json`](paid-model-apis.json) | 517 fal.ai / Replicate / vendor endpoints with exact input fields, enums, defaults, outputs and prices (499 verified from fal's OpenAPI files); fal and Replicate protocol notes; sunsets | `scripts/gen-cloud-models.py` → `src/lib/catalog/cloud-models.generated.ts` |
+| [`higgsfield-api.md`](higgsfield-api.md) / [`.json`](higgsfield-api.json) | Higgsfield's public API: auth, the request lifecycle, uploads, 101 endpoint records (Soul, Soul ID, Genjutsu, Cinema Studio, Marketing Studio, DoP and the hosted third-party models) with full inputs and prices; documentation-derived, no live call | `src/server/providers/higgsfield.ts`, `scripts/gen-higgsfield-models.py` → `src/lib/catalog/higgsfield-models.generated.ts` |
+| [`paid-model-apis-2.md`](paid-model-apis-2.md) / [`.json`](paid-model-apis-2.json) | Part 2: 202 fal / Replicate endpoints for multi-shot, draft mode, extend, reframe, relight, inpaint, voices, dialogue, voice change, dubbing, LoRA training, draw-to-video and storyboards; the ElevenLabs premade voices | `scripts/gen-cloud-models.py` (merged with part 1), training targets in `src/lib/catalog/training.ts` |
+| [`paid-model-apis-3.md`](paid-model-apis-3.md) / [`.json`](paid-model-apis-3.json) | Part 3: 206 fal / Replicate endpoints (197 new, 9 re-verified for palette/style fields) for Layers (Seedream layerize with boxes, Qwen-Image-Layered, Ideogram text layers, OCR, vectorize), moodboards and palettes (Recraft Styles, Ideogram 3 color_palette, Krea style, Redux), video restyle (HappyHorse, Lucy Edit, Aleph 2, Kling O3 4K, LTX IC-LoRA, Recast), ffmpeg/trim/frame utilities, transcription and burned captions, SFX and music (Mirelo, Sonilo, Stable Audio 3, Beatoven, CassetteAI, Lyria, Seed Audio), lipsync, product shots, image-to-3D, try-on, multi-angle/next-scene grids, explainer/UGC; output schemas as `outputFields`; per-feature recommendations; Higgsfield API re-check | `scripts/gen-cloud-models.py` (merged with parts 1 and 2: the 57 round-3 cloud models), the hidden fal tools in `src/lib/catalog/models.ts`, `src/lib/catalog/shorts-models.ts`, `src/lib/layers.ts`, `tests/cloud-catalog.test.ts`, `tests/cloud-catalog-fixes.test.ts`, `tests/outputs.test.ts` |
+| [`comfyui-oss.md`](comfyui-oss.md) / [`.json`](comfyui-oss.json) | Best open-weight model per capability (23 capabilities, 122 ranked options) with files, URLs, settings, VRAM, licenses; 170 LoRAs (camera, VFX, style, speed) with triggers; ComfyUI API notes | Open model choices in `src/lib/catalog/models.ts`, `scripts/gen-oss-loras.py` → `src/lib/catalog/oss-loras.generated.ts` |
+| [`comfyui-oss-2.md`](comfyui-oss-2.md) / [`.json`](comfyui-oss-2.json) | Open-weight answers to the remaining gaps: Chatterbox / IndexTTS-2 voice cloning and dialogue, voice conversion, VACE extend/reframe, Wan-Move, relight, video matte and depth, multi-shot concat, next-scene storyboards, AI-Toolkit character LoRAs; full graphs validated against a live ComfyUI with pinned node packs | The 20 workflows it added (`scripts/comfy/library.spec.mjs`, `scripts/comfy/build-library.mjs`), open models in `src/lib/catalog/models.ts`, `aiToolkitJob` in `src/lib/catalog/training.ts`, pins in `scripts/comfy/install-comfyui.sh` |
+| [`comfyui-oss-3.md`](comfyui-oss-3.md) / [`.json`](comfyui-oss-3.json) | Part 3: open-weight ComfyUI routes for the round-3 features — Qwen-Image-Layered (+ Layered-Control), style references for moodboards, a Z-Image hex-palette graph, segment cutting and Wan 2.2 Fun VACE restyle, per-frame Mixed Media, Stable Audio 3 / Foley / ThinkSound SFX, MelBand + Qwen3-ASR dub preparation, ASR captions and burn-in, Qwen3.5 / Gemma 4 translation, InfiniteTalk / LatentSync lip re-sync, TRELLIS.2 / Hunyuan3D 2.1, FLUX.2 [klein] try-on, contact-sheet grids and Soul Cast sheets; 29 graphs validated on a live ComfyUI with pinned packs, real CPU runs of segments and burn-in, licences, weights and risks | The 29 hand-built graphs of the "comfyui-oss-3" section of `scripts/comfy/library.spec.mjs` (`scripts/comfy/hand-built/`), `scripts/comfy/build-library.mjs`, pack pins in `scripts/comfy/install-comfyui.sh` and `scripts/comfy/install-isolated-worker.sh`, the round-3 open models in `src/lib/catalog/models.ts`, `tests/open-engine.test.ts` |
+| [`comfyui-workflow-library.md`](comfyui-workflow-library.md) | The ComfyUI library as of round 2 (73 workflows, incl. the 20 comfyui-oss-2 additions): sources, validation results, bindings, models and sizes, custom nodes, quirks. The 42 workflows added in round 3 (115 in all) are described in [`scripts/comfy/README.md`](../../scripts/comfy/README.md) ("Round-3 workflows") and in each manifest entry's notes | `workflows/comfyui/manifest.json`, `src/server/providers/comfyui.ts`, `scripts/comfy/library.spec.mjs` |
+| [`higgsfield-studios.md`](higgsfield-studios.md) / [`.json`](higgsfield-studios.json) | Screen-level research for Cinema Studio 4.0 (workspace, Director's Panel with all 50 palettes + hex, 7 lighting presets, 33 camera moves, Emotion Wheel, Soul Cast fields, image grid/3D, video modes, limits, validation copy, credit costs), Shorts Studio (44 presets), Mixed Media (33 presets), Instadump; Fuobe build plan per feature | Cinema Studio (`src/lib/catalog/cinema.ts`, `tests/cinema.test.ts`), Shorts Studio (`src/lib/catalog/shorts.ts`), Mixed Media (`src/lib/catalog/mixed-media.ts`) |
+| [`higgsfield-image-studios.md`](higgsfield-image-studios.md) / [`.json`](higgsfield-image-studios.json) | Screen-level UX of Layers (decomposition settings and cost, 11 editor tools, Edit text, exact zip exports), Photodump / Instadump (packs with photo counts), Fashion Factory (6 templates, 5 steps), Moodboards (5–80 images, 33 curated), Soul HEX (50 palettes with exact hex, manual editor rules), all 106 Soul v1 + 33 Soul 2.0 presets with ids and categories, Character Sheet / Soul Cast options, Soul Location; open and cloud routes and a Fuobe build plan | `scripts/gen-higgsfield-presets.py` → `src/lib/catalog/higgsfield-presets.generated.ts`; `src/lib/catalog/palettes.ts` (Soul HEX), `src/lib/catalog/packs.ts` (Photodump, Fashion Factory, Character Sheet), Soul Cast / Location in `src/lib/catalog/cinema.ts`, `src/components/photodump/subject.tsx`, the Layers studio (`src/lib/layers.ts`) |
+| [`higgsfield-marketing-agents.md`](higgsfield-marketing-agents.md) / [`.json`](higgsfield-marketing-agents.json) | Marketing Studio (7 categories, 17 formats, 1,074 templates, 9 UGC hooks, 14 settings, the job builders and limits), Brand Kit and products, Ads Studio, Ad Multiplier, Click to Ad, Faceless Studio and Explainer (styles, genres, lengths, costs), Canvas (node menu, templates), Katana, Virality Predictor (output fields, TRIBE v2), the Assets library, and Supercomputer's Skills, Projects and Memory; a Fuobe build plan | `src/lib/catalog/marketing.ts` (Marketing Studio, Ads Studio, Ad Multiplier, Click to Ad), `src/lib/catalog/faceless.ts` and `tests/faceless.test.ts` (Faceless, Explainer), Canvas (`src/lib/catalog/canvas.ts`), Katana (`src/lib/av/katana.ts`), Virality (`src/lib/av/virality.ts`, `docs/workers/tribe-v2.md`), the Library (`src/server/library.ts`), Assist skills, projects and memory (`skills/`, `src/server/skills.ts`, `src/server/assist/projects.ts`, `src/server/assist/memory.ts`) |
+| [`liner-ui.md`](liner-ui.md) | Liner's (liner.com — liner.app itself is a parked domain) design language: tokens, layout, composer, microcopy; the Fuobe theme derived from it | `src/app/globals.css`, `src/components/studio/` |
-To refresh: re-run the research, then `pnpm gen:catalog` and `pnpm test` (catalog integrity tests catch broken references).
+To refresh: re-run the research, then `pnpm gen:catalog` (cloud models, Higgsfield models and presets, LoRA map) and `pnpm test` (catalog integrity tests catch broken references). Workflow changes go through `scripts/comfy` (`npm run build -- <ids>` and `node validate-workflows.mjs <ids>` against a live ComfyUI).