tscomfy: Type-Safe ComfyUI Workflows as Code, Types Generated From Your Server

No_One_9304 · reddit · 2026-10-19

A developer open-sourced tscomfy (MIT, pre-1.0) for building ComfyUI workflows in TypeScript. It reads your server's /objectinfo and generates types for every installed node (custom packs included), so wiring a LATENT into a MODEL input or misspelling a node is an editor error; models and samplers autocomplete. Output matches 'Export (API)' JSON. Includes tscomfy transpile to convert saved workflows back into code, exportable graph files, and @tscomfy/client for queuing with progress/previews.

Original post →

More from coding & agent

coding & agent channel →