The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Thanks & licences: Built on thanks ComfyUI and the model makers
Adarsh4367eefc965b
diff --git a/src/components/thanks/thanks-view.tsx b/src/components/thanks/thanks-view.tsxindex 77054b7e..5752d051 100644--- a/src/components/thanks/thanks-view.tsx+++ b/src/components/thanks/thanks-view.tsx@@ -94,7 +94,7 @@ function Project({ p }: { p: ThanksProject }) {}/**- * Thanks & licences: Built on (ComfyUI first, the code and services under the app, the model makers, and the names+ * Thanks & licences: Built on (ComfyUI first, Hugging Face where the open model files come from, the model makers, and the names* some licences ask Fuobe to show), then every model, LoRA, node pack and library in groups (ThanksList, which* searches them and filters them by maker).*/@@ -122,7 +122,7 @@ export function ThanksView({ thanks }: { thanks: Thanks }) {)}{projects.length > 0 && (- <ul className="mt-3 grid grid-cols-2 gap-2.5 sm:grid-cols-3 lg:grid-cols-5">+ <ul className="mt-3 grid gap-2.5 sm:grid-cols-2 lg:grid-cols-3">{projects.map((p) => (<Project key={p.id} p={p} />))}diff --git a/src/lib/thanks.ts b/src/lib/thanks.tsindex a6648424..28a3a1c5 100644--- a/src/lib/thanks.ts+++ b/src/lib/thanks.ts@@ -7,8 +7,8 @@* Some licences ask the app to name them ("Built with DINOv3", MiniMax H3's "MiniMax H3"): those rows carry `credits`,* and the page names each one at the top, which is where Fuobe meets that condition.*- * Above the list, "Built on" thanks the projects Fuobe stands on (ComfyUI first) and the labs and people whose open- * models it runs, grouped by maker from the same rows: the files each tool downloads, its name and its vendor.+ * Above the list, "Built on" thanks ComfyUI, Hugging Face (where the open model files come from) and the labs and people+ * whose open models Fuobe runs, grouped by maker from the same rows: the files each tool downloads, its name and its vendor.*/import {ATTRIBUTIONS,@@ -81,7 +81,7 @@ export interface ThanksMaker {}export interface Thanks {- /** ComfyUI first, then the services and code the app is built with. */+ /** ComfyUI first, then where the open model files come from. */builtOn: ThanksProject[];/** The model makers: premium image and video makers first, then by how many rows run their models. */makers: ThanksMaker[];@@ -138,13 +138,6 @@ export const COMFYUI = {licence: { name: "GPL-3.0", url: SPDX("GPL-3.0-only") },} as const;-/** Packages the app ships with that Built on thanks by name (only when package.json lists them), with what each does. */-export const BUILT_ON_PACKAGES: { pkg: string; name: string; maker: string; use: string }[] = [- { pkg: "next", name: "Next.js", maker: "Vercel", use: "The framework the app is built with" },- { pkg: "react", name: "React", maker: "The React team", use: "Draws every screen" },- { pkg: "three", name: "three.js", maker: "mrdoob and contributors", use: "Shows 3D models in your browser" },-];-interface MakerDef {id: string;name: string;@@ -520,6 +513,10 @@ export function buildThanks(input: ThanksInput): Thanks {const code = groups.get("code")!;code.push({ id: "code:fuobe", name: "Fuobe", url: FUOBE_REPO, use: "This app, open source", licences: [{ name: "MIT", url: `${FUOBE_REPO}/blob/main/LICENSE` }] });code.push({ id: "code:comfyui", name: COMFYUI.name, maker: COMFYUI.maker, url: COMFYUI.url, use: "Runs the open models on your GPU", licences: [{ ...COMFYUI.licence }] });+ // FFmpeg: the cloud joins run on fal's FFmpeg API, and VideoHelperSuite reads and writes video with it in ComfyUI.+ if (input.models.some((m) => m.routes.some((r) => /ffmpeg/i.test(r.endpoint))) || input.workflows.some((w) => w.packs?.includes("ComfyUI-VideoHelperSuite"))) {+ code.push({ id: "code:ffmpeg", name: "FFmpeg", maker: "The FFmpeg developers", url: "https://ffmpeg.org", use: "Joins, encodes and reads video", licences: [{ name: "LGPL-2.1+", url: "https://ffmpeg.org/legal.html" }] });+ }// The Character swap's workflow (its models, LoRAs and node packs are listed above).for (const l of CHARACTER_LICENCES.filter((x) => /workflow/i.test(x.item))) {code.push({ id: `code:${l.item}`, name: l.item, maker: ownerOf(l.url), url: l.url, use: "The Character swap's ComfyUI graph", licences: [{ name: l.name, url: l.url }] });@@ -550,21 +547,11 @@ export function buildThanks(input: ThanksInput): Thanks {});}- // Built on: ComfyUI, where the open weights are hosted, the app's frameworks and FFmpeg, each only when Fuobe uses it.+ // Built on: ComfyUI, then Hugging Face when the open weights come from there.const builtOn: ThanksProject[] = [{ id: "comfyui", name: COMFYUI.name, maker: COMFYUI.maker, url: COMFYUI.url, use: "Every open model in Fuobe runs through ComfyUI, on your own GPU.", licence: { ...COMFYUI.licence } }];if (input.workflows.some((w) => w.models?.some((x) => x.url?.startsWith("https://huggingface.co/")))) {builtOn.push({ id: "huggingface", name: "Hugging Face", maker: "Hugging Face", url: "https://huggingface.co", use: "Hosts the open model files Fuobe runs" });}- for (const b of BUILT_ON_PACKAGES) {- const p = input.packages.find((x) => x.name === b.pkg);- if (!p) continue;- const url = spdxLink(p.license);- builtOn.push({ id: `package:${p.name}`, name: b.name, maker: b.maker, url: p.url ?? `https://www.npmjs.com/package/${p.name}`, use: b.use, licence: { name: p.license || "See its page", ...(url && { url }) } });- }- // FFmpeg: the cloud joins run on fal's FFmpeg API, and VideoHelperSuite reads and writes video with it in ComfyUI.- if (input.models.some((m) => m.routes.some((r) => /ffmpeg/i.test(r.endpoint))) || input.workflows.some((w) => w.packs?.includes("ComfyUI-VideoHelperSuite"))) {- builtOn.push({ id: "ffmpeg", name: "FFmpeg", maker: "The FFmpeg developers", url: "https://ffmpeg.org", use: "Joins, encodes and reads video", licence: { name: "LGPL-2.1+", url: "https://ffmpeg.org/legal.html" } });- }const modelRows = GROUP_ORDER.filter((g) => g !== "loras" && g !== "packs" && g !== "code").flatMap((g) => groups.get(g)!);const makers = MAKERS.flatMap((m) => {diff --git a/tests/e2e/thanks-licences.mjs b/tests/e2e/thanks-licences.mjsindex 81a6fb44..044f51ee 100644--- a/tests/e2e/thanks-licences.mjs+++ b/tests/e2e/thanks-licences.mjs@@ -57,7 +57,9 @@ for (const [label, device] of [check(`${tag}: Built on thanks ComfyUI first`, firstName === "ComfyUI", firstName);check(`${tag}: ComfyUI links its code and its GPL-3.0 licence`, (await builtOn.locator('a[href="https://github.com/Comfy-Org/ComfyUI"]').count()) > 0 && (await builtOn.getByRole("link", { name: /GPL-3\.0/ }).count()) > 0);const builtText = await builtOn.innerText();- check(`${tag}: Built on names Hugging Face, Next.js, React, three.js and FFmpeg`, ["Hugging Face", "Next.js", "React", "three.js", "FFmpeg"].every((n) => builtText.includes(n)));+ const cards = (await builtOn.locator("ul").first().locator(":scope > li").allInnerTexts()).map((t) => t.split("\n")[0].trim());+ check(`${tag}: Built on has one card beside ComfyUI, Hugging Face`, cards.length === 1 && cards[0] === "Hugging Face", cards.join(", "));+ check(`${tag}: Built on has no framework or library cards`, !["Next.js", "three.js", "FFmpeg"].some((n) => builtText.includes(n)));check(`${tag}: the model makers name Qwen, Ideogram, Black Forest Labs, Wan and MiniMax`, ["Qwen team", "Ideogram", "Black Forest Labs", "Wan team", "MiniMax"].every((n) => builtText.includes(n)));// The names licences ask for stay on show, each with a count and a Show all list.diff --git a/tests/thanks.test.ts b/tests/thanks.test.tsindex af6ab13b..101af64f 100644--- a/tests/thanks.test.ts+++ b/tests/thanks.test.ts@@ -8,7 +8,7 @@ import { CLOUD_NOTICES } from "@/lib/av/model3d";import { MODELS } from "@/lib/catalog";import { ATTRIBUTIONS, buildLicenceList, licenceInfo, NODE_PACKS, OPENMDW_NOTICE } from "@/lib/licences";import { loraLicenceRows } from "@/lib/lora-licences";-import { BUILT_ON_PACKAGES, baseLabel, buildThanks, COMFYUI, groupOf, MAKERS, makersOf, ownerOf, packageFacts, searchText, shownName } from "@/lib/thanks";+import { baseLabel, buildThanks, COMFYUI, groupOf, MAKERS, makersOf, ownerOf, packageFacts, searchText, shownName } from "@/lib/thanks";import { readThanks } from "@/server/thanks";const ROOT = path.join(__dirname, "..");@@ -131,40 +131,35 @@ describe("Thanks & licences", () => {expect(thanks.groups.find((g) => g.id === "code")!.rows.find((r) => r.id === "code:comfyui")).toMatchObject({ name: "ComfyUI", url: COMFYUI.url });});- it("thanks in Built on only what Fuobe really uses, each with a link and, for code, its licence", () => {+ it("thanks in Built on ComfyUI and Hugging Face only, and keeps FFmpeg's licence under Code and libraries", () => {const raw = JSON.parse(fs.readFileSync(path.join(ROOT, "workflows", "comfyui", "manifest.json"), "utf8")) as {workflows: { models?: { url?: string }[]; customNodes?: { name: string }[] }[];};- const ids = thanks.builtOn.map((b) => b.id);- expect(new Set(ids).size).toBe(ids.length);- expect(ids).toEqual(expect.arrayContaining(["comfyui", "huggingface", "package:next", "package:react", "package:three", "ffmpeg"]));- for (const b of thanks.builtOn) {- expect(b.url, b.id).toMatch(/^https:\/\//);- expect(b.use.trim(), b.id).not.toBe("");- expect(shown(b.name), b.name).toBe(true);- if (b.id === "huggingface") {- // A host, not code: the open weights come from there.- expect(raw.workflows.some((w) => w.models?.some((m) => m.url?.startsWith("https://huggingface.co/")))).toBe(true);- expect(b.licence).toBeUndefined();- continue;- }- expect(b.licence?.name, b.id).toBeTruthy();- expect(b.licence?.url, b.id).toMatch(/^https:\/\//);- if (b.id.startsWith("package:")) {- const name = b.id.slice("package:".length);- expect(Object.keys(pkg.dependencies), name).toContain(name);- const own = JSON.parse(fs.readFileSync(path.join(ROOT, "node_modules", name, "package.json"), "utf8")) as { license?: string };- expect(b.licence?.name).toBe(own.license);- }- if (b.id === "ffmpeg") {- const cloud = MODELS.some((m) => m.routes.some((r) => /ffmpeg/i.test(r.endpoint)));- const comfyPack = raw.workflows.some((w) => w.customNodes?.some((n) => n.name === "ComfyUI-VideoHelperSuite"));- expect(cloud || comfyPack).toBe(true);- }+ // No framework or library cards: those stay in the list below with their licences.+ expect(thanks.builtOn.map((b) => b.id)).toEqual(["comfyui", "huggingface"]);+ for (const name of ["Next.js", "three.js", "FFmpeg"]) expect(text.slice(0, text.indexOf("The model makers")), name).not.toContain(name);+ const hf = thanks.builtOn[1];+ expect(hf.url).toBe("https://huggingface.co");+ expect(hf.use.trim()).not.toBe("");+ expect(shown(hf.name)).toBe(true);+ // A host, not code: the open weights come from there.+ expect(raw.workflows.some((w) => w.models?.some((m) => m.url?.startsWith("https://huggingface.co/")))).toBe(true);+ expect(hf.licence).toBeUndefined();+ // The packages the cards named keep their rows and licences under Code and libraries.+ const code = thanks.groups.find((g) => g.id === "code")!.rows;+ for (const name of ["next", "react", "three"].filter((n) => n in pkg.dependencies)) {+ const own = JSON.parse(fs.readFileSync(path.join(ROOT, "node_modules", name, "package.json"), "utf8")) as { license?: string };+ expect(code.find((r) => r.id === `package:${name}`)?.licences[0].name, name).toBe(own.license);}- expect(BUILT_ON_PACKAGES.every((p) => ids.includes(`package:${p.pkg}`) === p.pkg in pkg.dependencies)).toBe(true);- // With nothing to go on, only ComfyUI is thanked.- expect(buildThanks({ models: [], workflows: [], loras: [], packages: [] }).builtOn.map((b) => b.id)).toEqual(["comfyui"]);+ // FFmpeg's licence moves to its own row there, only when Fuobe uses it.+ const cloud = MODELS.some((m) => m.routes.some((r) => /ffmpeg/i.test(r.endpoint)));+ const comfyPack = raw.workflows.some((w) => w.customNodes?.some((n) => n.name === "ComfyUI-VideoHelperSuite"));+ expect(cloud || comfyPack).toBe(true);+ expect(code.find((r) => r.id === "code:ffmpeg")).toMatchObject({ name: "FFmpeg", url: "https://ffmpeg.org", licences: [{ name: "LGPL-2.1+", url: "https://ffmpeg.org/legal.html" }] });+ // With nothing to go on, only ComfyUI is thanked, and FFmpeg isn't listed.+ const empty = buildThanks({ models: [], workflows: [], loras: [], packages: [] });+ expect(empty.builtOn.map((b) => b.id)).toEqual(["comfyui"]);+ expect(empty.groups.flatMap((g) => g.rows).some((r) => r.id === "code:ffmpeg")).toBe(false);});it("thanks the model makers whose models Fuobe runs, premium image and video makers first, each linking to its rows", () => {