← sources

C++ Desktop Client for ComfyUI

source: reddit (reddit:StableDiffusion)published 2026-11-07 09:30ingested 2026-11-08 02:38

retained text

When I first started with ComfyUI, the first thing I looked for was a native desktop client without browser lag and DOM-based architecture.

I'm a C++ dev with over 20 years of commercial experience, so I eventually just started writing my own client on the side. I used an ultra-fast UI framework that can easily chew through thousands of nodes on a canvas without the slightest stutter, boost for networking, sqlite as a DB, and the fmt library - the fastest formatting framework out there, leaving room for an easy port to Linux/Mac.

The main reason all existing clients are forced into the browser is custom JS nodes, which are themselves bottlenecked by Litegraph's architecture. Bypassing this turned out to be easier than I thought. The internal logic of these nodes is actually quite simple, so I ported most of it to C++. I also built extended versions of frontend-only nodes like reroutes and bookmarks.

For the parts that had to stay in HTML/JavaScript, I isolated them in a completely separate process. This ensures the heavy browser engine never interferes with the lightweight C++ core. 

https://preview.redd.it/6hd5unvqj50i1.png?width=1938&format=png&auto=webp&s=02fe9e319c2fab0f5ab6af726a5c4b233c4ce2d5

I recently finished a stable Beta. Check it out, the link to the source code and prebuilt Windows binary is in the comments. I also added a demo video (making a video was another cool new experience for me).

document fetched 2026-11-08 00:27 · canonical https://reddit.com/r/StableDiffusion/comments/1xq2eei/c_desktop_client_for_comfyui