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
/**
* How many models Fuobe has, as every page quotes it (Home and Settings).
*
* The rule:
* - A model counts when a visitor can pick it: it is listed in a studio's picker, on /models and in the ⌘K palette.
* That includes the tools a picker lists that have no weights of their own (Trim video, Join clips, Pro export),
* so pages say "models and tools".
* - A hidden model is a step a preset or a tool runs for you (the join step behind a preset, a self-test, the
* relight an app runs first): it is part of what it serves and never listed in a picker, so it isn't counted. The
* canvas can still offer one as a step inside a tool node (a frame or a join node); that doesn't make it a pick.
* - `open`: the models that run on the open engine (ComfyUI on your own GPU). A Fuobe Original runs on both engines
* and counts here, once (the /models Cloud list shows it too, and says how many).
* - `cloud`: the models that run only in the cloud (the partner models, through the visitor's own key).
* - `all`: open + cloud, so every pickable model counts exactly once.
*
* The licence list on About & licences is a different count (one row per set of open weights, helper steps and
* library workflows included); the page says so next to it.
*/
import { runsOn } from "./engines";
import type { ModelDef } from "./types";
export interface ModelCounts {
open: number;
cloud: number;
all: number;
}
/** A model a visitor can pick (not a hidden step a preset or a tool runs). */
export const isListed = (m: Pick<ModelDef, "hidden">): boolean => !m.hidden;
export function countModels(models: readonly Pick<ModelDef, "hidden" | "engine" | "engines">[]): ModelCounts {
const listed = models.filter(isListed);
const open = listed.filter((m) => runsOn(m, "open")).length;
return { open, cloud: listed.length - open, all: listed.length };
}