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.

Fuobe Connect: install steps count the Manager's install, and git leads

Adarsh76de10100e05
diff --git a/README.md b/README.md
index f508dc63..02e47ad7 100644
--- a/README.md
+++ b/README.md
@@ -188,7 +188,7 @@ To install Fuobe Connect, run this in ComfyUI's `custom_nodes` folder, then rest
git clone https://github.com/workingprototype/ComfyUI-Fuobe-Connect
```
-You can also enter the same address in ComfyUI-Manager's **Install via Git URL**, or search for `Fuobe Connect` in ComfyUI-Manager once it lists the pack. Fuobe Connect trusts `https://fuobe.com` by default. If you run your own Fuobe studio, add its address in ComfyUI under **Settings → Fuobe Connect**. The source of Fuobe Connect is [`integrations/fuobe-connect`](integrations/fuobe-connect) in this repository, and the [ComfyUI-Fuobe-Connect](https://github.com/workingprototype/ComfyUI-Fuobe-Connect) repository is published from it. [How it works →](docs/gpu-workers.md#fuobe-connect-a-persons-own-comfyui)
+You can also enter the same address in ComfyUI-Manager's **Install via Git URL**, or search for `Fuobe Connect` in ComfyUI-Manager, which installs it from the Comfy Registry (if the Manager shows no version to install, use the git address). Fuobe Connect trusts `https://fuobe.com` by default. If you run your own Fuobe studio, add its address in ComfyUI under **Settings → Fuobe Connect**. The source of Fuobe Connect is [`integrations/fuobe-connect`](integrations/fuobe-connect) in this repository, and the [ComfyUI-Fuobe-Connect](https://github.com/workingprototype/ComfyUI-Fuobe-Connect) repository is published from it. [How it works →](docs/gpu-workers.md#fuobe-connect-a-persons-own-comfyui)
## Local models and cloud keys
diff --git a/docs/gpu-workers.md b/docs/gpu-workers.md
index 301f5d70..f1b02256 100644
--- a/docs/gpu-workers.md
+++ b/docs/gpu-workers.md
@@ -16,9 +16,10 @@ the studio over HTTPS, and neither opens a port. With no worker added and nothin
Fuobe Connect is an optional ComfyUI custom node pack. Its source is in `integrations/fuobe-connect`, and the
[ComfyUI-Fuobe-Connect](https://github.com/workingprototype/ComfyUI-Fuobe-Connect) repository is published from that
folder. People install it from that repository: with `git clone` in ComfyUI's `custom_nodes` folder, or with
-ComfyUI-Manager's **Install via Git URL**. ComfyUI-Manager's search (`Fuobe Connect`) finds the versions that the
-[Comfy Registry](https://registry.comfy.org) lists. Its own README says how to install it and exactly what a trusted
-studio can do. It adds no nodes.
+ComfyUI-Manager's **Install via Git URL**. Each version is also published to the
+[Comfy Registry](https://registry.comfy.org), which ComfyUI-Manager's search (`Fuobe Connect`) reads. When the
+Manager shows no version to install, the git clone and Install via Git URL still work. Its own README says how to
+install it and what a trusted studio can do. It adds no nodes.
Fuobe Connect is one of three ways to connect a person's own ComfyUI. None of them is required: a fal.ai or Replicate
key also works, and so do the studio's own GPUs where it offers them.
@@ -40,43 +41,33 @@ git install. Fuobe Connect trusts `https://fuobe.com` by default. A self-hosted
**Direct mode.** ComfyUI turns away every other website. Fuobe Connect lets in only the studios that you trust. Each
studio is an exact https origin, and the default is `https://fuobe.com` with `https://www.fuobe.com`. You can name your
own studios, or `none`, in ComfyUI's settings or with `FUOBE_CONNECT_ORIGINS`. A trusted studio reaches the ComfyUI
-only at `127.0.0.1`, `::1` or `localhost` (a network address too with `FUOBE_CONNECT_LAN=1`), never under another name
-that leads to the computer. Fuobe Connect turns away every other request of a trusted studio itself, even when ComfyUI
-runs with `--enable-cors-header` naming that studio, so with the pack the studio doesn't need that setting. Fuobe
-Connect checks each request it lets through in Python, whatever the studio's page checked:
+only at `127.0.0.1`, `::1` or `localhost` (a network address too with `FUOBE_CONNECT_LAN=1`). Fuobe Connect turns
+away every other request of a trusted studio itself, even when ComfyUI runs with `--enable-cors-header` naming that
+studio, so with the pack the studio doesn't need that setting. Fuobe Connect checks each request it lets through in
+Python, whatever the studio's page checked:
- a workflow runs only when every node type is on the list the pack ships (`fuobe_connect/allowed_nodes.json`, written
by `node scripts/connect-nodes.mjs` from the same sources as the worker's list) or on the person's own list, and:
- - no text names a place: an absolute path in any form (`/x`, `\x`, `//host/share`, `\\?\C:\x`, `C:\x`, `D:x`), a
- `..` step, a home folder (`~`, `~user`), an environment variable at the start, a URL, a folder tag, or a JSON key
- that names a file, a folder or an address. Spaces and quotes in front don't hide one;
+ - no text names a place on a disk or on the network: a path, a `..` step, a home folder, an environment variable, a
+ URL or a folder tag;
- an input that a listed node reads as a file or a folder, or a name that it downloads, holds the one value or form
the studio's own graphs use, written in the graph, never a link (`PATH_INPUTS` in `fuobe_connect/graph.py`);
- - a link from an output that ComfyUI doesn't type-check ("any", match-typed or dropdown-typed, such as
- `GetItemFromList`, `CreateList`, `VRAM_Debug` or `ComfySwitchNode`), and any link into a dropdown, feeds only what
- the studio's own graphs feed that way (`loose` and `links` in `allowed_nodes.json`). ComfyUI checks a dropdown's
- value against its list only when the graph writes it. Inside ComfyUI the pack also reads these kinds from every
- node class;
- - a link names its node's output with a whole number from 0, as the studio's graphs write it. ComfyUI also takes
- `true`, `false`, a number with a point or `-1` as an output; the pack sees those as links too, and refuses them;
- - `VHS_VideoCombine` takes only a plain format name and plain-word settings (they go into ffmpeg's arguments), and
- a link only for its pictures, sound, batch, VAE and frame rate;
+ - a link into a dropdown, or from a loosely typed output (such as `GetItemFromList`, `CreateList`, `VRAM_Debug` or
+ `ComfySwitchNode`), feeds only what the studio's own graphs feed that way (`loose` and `links` in
+ `allowed_nodes.json`). Inside ComfyUI the pack also reads these kinds from every node class;
+ - a link has the form the studio's graphs write: a node id and an output number from 0;
+ - `VHS_VideoCombine` takes only a plain format name and plain-word settings, and a link only for its pictures, sound,
+ batch, VAE and frame rate;
- every loader reads a Fuobe input (`fuobe_<id>.<ext>`). A written value is a text, a number, `true`, `false` or
- `null`: never a list (ComfyUI reads one as a link) and never a JSON object, except a 3D view's entries in the exact
- form of ComfyUI's 3D nodes (the camera and the models' placements are numbers only). No object holds `"__value__"`
- at any depth (ComfyUI unwraps it, so a link inside would skip ComfyUI's check), and a node holds only `class_type`,
- `inputs` and `_meta` (ComfyUI reads `is_changed`, `_loop_body` and `_loop_end` as its own);
- - inside ComfyUI, every node that ComfyUI runs is one it checks first: a link goes only into an input the node lists
- (worked out the way ComfyUI does it for dynamic inputs), no input names a hidden one, a node type ComfyUI would swap
- before its check is refused, and a graph with a loop holds only nodes that lead to an output. A 3D node's camera and
- placements in a run's history never count as one of its files;
+ `null`, except a 3D view's entries in the form of ComfyUI's 3D nodes, and a node holds only `class_type`,
+ `inputs` and `_meta`;
+ - inside ComfyUI, every node that ComfyUI runs is one it checks first. A 3D node's camera and placements in a run's
+ history never count as one of its files;
- an upload goes only into the input folder, under a Fuobe input name, as a picture, clip, sound, 3D scene, array or
- subtitle file (never `.json`, `.txt`, `.csv` or a file of no known type);
-- the studio sees, cancels, stops and downloads only its own prompts and their results; a prompt is its own only once
- ComfyUI took it, never under an id that ComfyUI already holds in its queue or history; the queue shows other prompts
+ subtitle file;
+- the studio sees, cancels, stops and downloads only its own prompts and their results; the queue shows other prompts
only as places in the line, the node list hides the names of the person's input files, and the model lists leave
- out `custom_nodes` and `configs`. ComfyUI itself sends the live messages of a prompt queued without a client id to
- every open socket, the studio's too.
+ out `custom_nodes` and `configs`.
When a graph builder starts giving one of those inputs a new value, add its form to `PATH_INPUTS` and ship it with the
next Fuobe Connect release (the pack's `tests/test_graph.py` runs every workflow in `workflows/comfyui` through the
@@ -84,11 +75,9 @@ checks). When a graph starts linking from an untyped output into a new input, or
`node scripts/connect-nodes.mjs` too: until the pack ships the new link, people's ComfyUI refuses that graph.
It cannot reach the Manager's install calls, the person's user files or settings, a file of the person's in the input
-folder, or the person's own results. Its workflows cannot name a file of the person's by its path: path-like text is
-refused, a file input takes only Fuobe's own form, and a value that another node works out can't reach a file input, a
-dropdown or ffmpeg's arguments. Fuobe
-Connect answers the CORS and Private Network Access preflights for the trusted origins only. Every other website still
-meets ComfyUI's own check.
+folder, or the person's own results, and its workflows cannot name a file of the person's by its path. Fuobe Connect
+answers the CORS and Private Network Access preflights for the trusted origins only. Every other website still meets
+ComfyUI's own check.
You do not need a start flag or a guard file. In the studio, **Connect your GPU** finds ComfyUI after one browser
"Allow" prompt, and then connects.
@@ -103,8 +92,7 @@ Connect get a refusal that asks them to update it.
`FUOBE_CONNECT_PAIR=1`. Fuobe Connect asks the studio for a short code: `POST /api/gpu/pair/start`.
2. The person opens `/connect?pair=1`, signs in, types the code that their own ComfyUI shows, checks the computer's
name and GPU, and approves the code: `POST /api/gpu/pair`. A code is valid for 10 minutes and works only once. The
- page never fills in a code from its link, so a link that someone else sends can't pair their ComfyUI with the
- person's account in one click.
+ page never fills in a code from its link: the person types it.
3. Fuobe Connect polls with a secret that only it knows: `POST /api/gpu/pair/poll`. After the approval, its next poll
gets a worker token (`fuobe_wkr_…`). The studio makes the token at that moment and keeps only its SHA-256 hash.
diff --git a/docs/public-signup.md b/docs/public-signup.md
index 8d67303d..c1256d59 100644
--- a/docs/public-signup.md
+++ b/docs/public-signup.md
@@ -223,7 +223,7 @@ its own results, once. The server never calls the person's computer. Runs wait w
- **Fuobe Connect.** A page can read a ComfyUI on the computer only when ComfyUI lets that site in.
Fuobe Connect (`integrations/fuobe-connect`, published as
[ComfyUI-Fuobe-Connect](https://github.com/workingprototype/ComfyUI-Fuobe-Connect); a git clone,
- ComfyUI-Manager's Install via Git URL, or the Manager's search once the Comfy Registry lists it)
+ ComfyUI-Manager's Install via Git URL, or the Manager's search, which installs it from the Comfy Registry)
lets in only the studios that the person trusts (`https://fuobe.com` unless they name others), and
only for what a run needs. Every other website still meets ComfyUI's own check. It is optional.
The card offers it while `FUOBE_CONNECT_PUBLISHED` (`src/lib/fuobe-connect.ts`) is true, as it is
@@ -494,8 +494,8 @@ address, with the box for it in focus.
- **Fuobe Connect.** The steps install it from its repository: a `git clone` into `custom_nodes`,
or its `.zip` or `.tar.gz` download where git is missing, then a restart of ComfyUI (ComfyUI
Desktop, the portable build, Stability Matrix, a terminal, or a service on Linux). They say that
- ComfyUI-Manager's search may not list it yet, and they make sure that ComfyUI answers
- `GET /fuobe/connect`. In Chrome, Edge or Firefox on that computer, the tab connects by itself once
+ ComfyUI-Manager's search may offer no version to install, they count its install (the folder
+ `fuobe-connect`) as installed, and they make sure that ComfyUI answers `GET /fuobe/connect`. In Chrome, Edge or Firefox on that computer, the tab connects by itself once
Fuobe Connect answers. On a phone, in Safari, on a page on plain http or in a browser that blocks
the computer, the panel shows the box for the code that ComfyUI's **Connect to Fuobe** shows, and
the setup is done once the paired ComfyUI is heard from (in the last minute). On a self-hosted
diff --git a/src/lib/ai-setup/guide.ts b/src/lib/ai-setup/guide.ts
index 0f696a44..3079d02a 100644
--- a/src/lib/ai-setup/guide.ts
+++ b/src/lib/ai-setup/guide.ts
@@ -455,7 +455,7 @@ function addressSteps(i: GuideInput): string {
function connectSteps(i: GuideInput): string {
const c = curl(i.os);
const s = sep(i.os);
- const { gitUrl, folder, archive } = FUOBE_CONNECT;
+ const { gitUrl, folder, archive, registryFolder } = FUOBE_CONNECT;
const dir = `<custom_nodes>${s}${folder}`;
const own = !trustedByDefault(i.site);
const download =
@@ -471,8 +471,8 @@ function connectSteps(i: GuideInput): string {
"## Step 2: Install Fuobe Connect",
"",
`Fuobe Connect is a ComfyUI add-on (a custom node pack) from ${gitUrl} . It installs no Python packages.`,
- "ComfyUI-Manager's search may not list Fuobe Connect yet. Install it with git or with the download below. The person can also use Install via Git URL in ComfyUI-Manager with the same address, if their Manager allows it.",
- `1. Look in custom_nodes (Step 1) for a folder named ${folder}. If it is there, Fuobe Connect is installed: go to item 5.`,
+ "Install it with git or with the download below. ComfyUI-Manager's search can show Fuobe Connect too, but it may offer no version to install. The person can also use Install via Git URL in ComfyUI-Manager with the same address, if their Manager allows it.",
+ `1. Look in custom_nodes (Step 1) for a folder named ${folder}, or ${registryFolder} (ComfyUI-Manager's install). If one is there, Fuobe Connect is installed: go to item 5.`,
"2. Look for git:",
" git --version",
" If it answers, clone Fuobe Connect into custom_nodes. Put the real folder in place of <custom_nodes>:",
diff --git a/src/lib/ai-setup/next-step.ts b/src/lib/ai-setup/next-step.ts
index 79a2e660..d79ab6e6 100644
--- a/src/lib/ai-setup/next-step.ts
+++ b/src/lib/ai-setup/next-step.ts
@@ -98,7 +98,7 @@ const ADD_STUDIO = "Fuobe Connect trusts https://fuobe.com by itself, not this s
/** Fuobe Connect isn't in ComfyUI yet: where it comes from. */
const installHow = (site: string): string[] => [
- `ComfyUI-Manager's search may not list Fuobe Connect yet. Clone ${FUOBE_CONNECT.gitUrl} into custom_nodes, or use the download in guide Step 2.`,
+ `Clone ${FUOBE_CONNECT.gitUrl} into custom_nodes, or use the download in guide Step 2. ComfyUI-Manager's search may offer no version of Fuobe Connect to install.`,
...(trustedByDefault(site) ? [] : [ADD_STUDIO]),
];
diff --git a/src/lib/fuobe-connect.ts b/src/lib/fuobe-connect.ts
index fdecf015..96107770 100644
--- a/src/lib/fuobe-connect.ts
+++ b/src/lib/fuobe-connect.ts
@@ -13,12 +13,14 @@ export const FUOBE_CONNECT_PUBLISHED: boolean = true;
export const FUOBE_CONNECT = {
name: "Fuobe Connect",
- /** What to type in ComfyUI-Manager's Custom Nodes Manager (it finds it once the Comfy Registry lists it). */
+ /** What to type in ComfyUI-Manager's Custom Nodes Manager, which installs it from the Comfy Registry. */
search: "Fuobe Connect",
/** Its page, for "Install via Git URL", and for a git clone in ComfyUI's custom_nodes folder. */
gitUrl: "https://github.com/workingprototype/ComfyUI-Fuobe-Connect",
/** Its folder in custom_nodes. */
folder: "ComfyUI-Fuobe-Connect",
+ /** Its folder in custom_nodes when ComfyUI-Manager installed it from the Comfy Registry (the Registry's id). */
+ registryFolder: "fuobe-connect",
/** The main branch as a download, for a computer with no git (.zip or .tar.gz after it). */
archive: "https://github.com/workingprototype/ComfyUI-Fuobe-Connect/archive/refs/heads/main",
/** The studios it trusts when the person names none. */
diff --git a/tests/ai-setup-guide.test.ts b/tests/ai-setup-guide.test.ts
index f11adcdb..23ca2f65 100644
--- a/tests/ai-setup-guide.test.ts
+++ b/tests/ai-setup-guide.test.ts
@@ -159,7 +159,9 @@ describe("the guide", () => {
// Every command of the install, and nothing else: a command line starts with a program, never a dash or a sentence.
expect(commands(step2(g.text)).filter((l) => !/^ {3}(- |[A-Z][a-z]+ )/.test(l)), os).toEqual(expected[os]);
expect(g.text).toContain(`Fuobe Connect is a ComfyUI add-on (a custom node pack) from ${REPO} .`);
- expect(g.text).toContain("ComfyUI-Manager's search may not list Fuobe Connect yet.");
+ expect(g.text).toContain("Install it with git or with the download below. ComfyUI-Manager's search can show Fuobe Connect too, but it may offer no version to install.");
+ // ComfyUI-Manager installs it under the Registry's id.
+ expect(g.text).toContain("a folder named ComfyUI-Fuobe-Connect, or fuobe-connect (ComfyUI-Manager's install).");
expect(g.text).toContain("Install via Git URL");
expect(g.text).toContain(`6. Install only Fuobe Connect, from ${REPO} . Do not install other custom nodes.`);
expect(g.text).toContain("2. This way needs no new ComfyUI setting. Do not add --enable-cors-header. Never use --listen.");
diff --git a/tests/ai-setup-routes.test.ts b/tests/ai-setup-routes.test.ts
index 4b0916e6..c39a2b1a 100644
--- a/tests/ai-setup-routes.test.ts
+++ b/tests/ai-setup-routes.test.ts
@@ -380,7 +380,7 @@ describe("the guide and Fuobe's files", () => {
const text = await g.text();
expect(text).toContain("# Connect ComfyUI to Fuobe with Fuobe Connect");
expect(text).toContain("git clone https://github.com/workingprototype/ComfyUI-Fuobe-Connect");
- expect(text).toContain("ComfyUI-Manager's search may not list Fuobe Connect yet.");
+ expect(text).toContain("ComfyUI-Manager's search can show Fuobe Connect too, but it may offer no version to install.");
expect(text).not.toContain("--enable-cors-header https://");
expect(text).toContain("z_image_turbo_bf16.safetensors");
}
diff --git a/tests/ai-setup-status.test.ts b/tests/ai-setup-status.test.ts
index 96435ed2..1e2909d1 100644
--- a/tests/ai-setup-status.test.ts
+++ b/tests/ai-setup-status.test.ts
@@ -138,7 +138,7 @@ describe("the steps and the next step", () => {
["on the processor, a PyTorch without CUDA", { comfy: "found", cors: "exact", guard: "guard", connected: true, model: "none", cpu: true }, {}, "cpu-only", "run_nvidia_gpu.bat"],
["a GPU too small", { comfy: "found", cors: "exact", guard: "guard", connected: true, model: "none", modelWhy: "small" }, {}, "no-model-fits", "Your keys"],
["a model needs more than a download", { comfy: "found", cors: "exact", guard: "guard", connected: true, model: "none", modelWhy: "setup" }, {}, "model-setup", "Update ComfyUI"],
- ["connect: not installed yet", { way: "connect", comfy: "unreadable", port: 8188 }, {}, "install-connect", "ComfyUI-Manager's search may not list Fuobe Connect yet. Clone https://github.com/workingprototype/ComfyUI-Fuobe-Connect into custom_nodes"],
+ ["connect: not installed yet", { way: "connect", comfy: "unreadable", port: 8188 }, {}, "install-connect", "Clone https://github.com/workingprototype/ComfyUI-Fuobe-Connect into custom_nodes, or use the download in guide Step 2. ComfyUI-Manager's search may offer no version of Fuobe Connect to install."],
["connect: ComfyUI didn't load it", { way: "connect", comfy: "unreadable", port: 8000, restarted: true }, {}, "connect-not-loaded", "curl.exe -s http://127.0.0.1:8000/fuobe/connect"],
["connect: installed, connecting", { way: "connect", comfy: "found", port: 8188, guard: "connect" }, {}, "connecting"],
["connect: --listen", { way: "connect", comfy: "found", port: 8188, guard: "connect", listen: true }, {}, "remove-listen"],