Documentation for ComfyUI
Find a file
ComfyUI Wiki 7eddc284eb
Update cosmos predict2 docs (#187)
* Update cosmos predict2 docs

* Fix broken links
2025-06-17 00:05:22 +08:00
.claude/commands [feat] add Playwright MCP integration for visual testing (#143) 2025-06-01 00:22:55 -07:00
.github/workflows Update redirect and zh-sync-check workflow (#171) 2025-06-09 16:23:23 +08:00
.notes list handling and a few other bits (#25) 2024-07-29 22:24:57 -04:00
built-in-nodes Sync docs from the embedded doc. (#185) 2025-06-15 09:59:44 +08:00
comfy-cli Add documentation for comfy-cli. (#4) 2024-05-06 18:23:39 -07:00
community Add community tab + contribution guide. 2024-03-26 16:27:35 -07:00
custom-nodes Update tensors.mdx (#177) 2025-06-10 12:33:29 -07:00
development Update snippets files (#172) 2025-06-09 16:37:28 +08:00
get_started [docs] fix external model paths configuration examples (#169) 2025-06-09 08:37:25 +08:00
images Update cosmos predict2 docs (#187) 2025-06-17 00:05:22 +08:00
installation Update how to update ComfyUI (#158) 2025-06-09 12:35:46 +08:00
interface [docs] clarify user directory structure includes username subdirectory (#168) 2025-06-07 22:55:14 -07:00
logo Update index 2025-05-12 22:40:59 +08:00
public Add installation tutorials for various versions of ComfyUI and a tutorial for generating image for the first time. (#57) 2025-03-01 15:13:05 -08:00
registry Update cicd.mdx (#179) 2025-06-12 14:05:19 -07:00
snippets Update snippets files (#172) 2025-06-09 16:37:28 +08:00
specs Add node definitions. 2025-03-04 15:52:07 -08:00
troubleshooting [docs] add comfy-cli bisect tool to custom node troubleshooting (#145) 2025-06-01 01:57:42 -07:00
tutorials Update cosmos predict2 docs (#187) 2025-06-17 00:05:22 +08:00
zh-CN Update cosmos predict2 docs (#187) 2025-06-17 00:05:22 +08:00
.gitignore update 2025-05-12 22:48:56 +08:00
.mcp.json [feat] add Playwright MCP integration for visual testing (#143) 2025-06-01 00:22:55 -07:00
CONTRIBUTORS Adding christian-byrne. 2024-05-28 17:28:16 -07:00
docs.json Update cosmos predict2 docs (#187) 2025-06-17 00:05:22 +08:00
index.mdx Update the qrcode image url and use github image links instead. (#174) 2025-06-09 17:13:37 +08:00
LICENSE Add GPL License. 2024-04-14 21:35:38 -07:00
logo.ico Update sd tutorial 2025-05-06 20:56:26 +08:00
logo.svg Update logo. 2025-05-06 04:49:36 -07:00
openapi.yml Update docs.json and add OpenAPI specification (#100) 2025-05-17 16:47:47 -07:00
package-lock.json [feat] add Playwright MCP integration for visual testing (#143) 2025-06-01 00:22:55 -07:00
package.json [feat] add Playwright MCP integration for visual testing (#143) 2025-06-01 00:22:55 -07:00
README.md Add a built-in node update guideline to the readme (#186) 2025-06-15 08:57:47 +08:00
README.zh-CN.md Add a built-in node update guideline to the readme (#186) 2025-06-15 08:57:47 +08:00

ComfyUI Documentation

| English | 中文 |

Development

To preview documentation changes locally, first install dependencies and then start the development server:

npm i
npm run dev

Create a PR

Create a PR. Once it is accepted Vercel will deploy the change to https://docs.comfy.org/

Generating API Reference Docs

Can either use an OpenAPI file or URL containing the file:

cd registry/api-reference # Keep API files separated by products.
npx @mintlify/scraping@latest openapi-file <path-to-openapi-file>

This will only generate the MDX files for each endpoint. You need to add a link to these files in docs.json, and the up-to-date API spec will be shown on that doc page.

Special Note on File Save Locations

Due to the necessity of adjusting article paths during documentation, changing these paths might render original links inaccessible, as they are already used in numerous articles and templates.

  • Since the organization of the document directory can be reorganized through the docs.json file, we generally do not change the original document's file location unless absolutely necessary.
  • If adjustments are needed, please modify docs.json to reorganize the files.
  • If changes are essential, please add redirection rules in the docs.json file.

Important: When you move or rename an MDX file, you MUST add a redirect in the docs.json file. A GitHub Action will check for redirects and fail the PR if they are missing. Redirects should follow this format:

"redirects": [
  {
    "source": "/path/to/old-file",
    "destination": "/path/to/new-file"
  }
]

Don't forget to include the corresponding Chinese translation file in the zh-CN directory as well!

About built-in node document

ComfyUI now has a built-in node help menu for both built-in nodes and custom nodes. All built-in node documentation will now be maintained in this repo.

Synchronization frequency

We will regularly sync updated documentation from the corresponding repository to docs.comfy.org weekly to ensure content synchronization and updates. If you would like to contribute to the documentation, please submit PRs and updates to this repo.

Node Documentation File Organization

For node documentation, we will use a single-level directory structure under the built-in-node folder for the following reasons:

  • ComfyUI may adjust node categories and directories during updates, using multi-level directory hierarchies means frequent adjustments to node documentation
  • These frequent adjustments mean we need to frequently add redirects and checks
  • Mintlify supports setting document hierarchy in the docs.json file, so we can make unified changes in that file

Due to historical updates, some existing documents use different folder hierarchies. We will no longer adjust these files, but new files will use a single-level directory

Contributing

Please just create a PR and we will review it within a few days.

Or talk to us on our discord

The documentation is built with Mintlify, please refer to Mintlify documentation to learn how to use it.

i18n Contributions

Mintlify uses versioning to add other languages. To add a translation of a page, follow these instructions:

  1. Create a file under the language code with the same exact filename of the original English filename.

For example: If you are translating introduction.mdx into Chinese, create a file under zh-CN/get_started/introduction.mdx.

Specifications for file editing can be found in the Writing Content section of the Mintlify document

Important: When you modify an existing MDX file in the English documentation, you must also update the corresponding file in the zh-CN directory. A GitHub Action will automatically check for this and fail the PR if the corresponding Chinese translations are not updated.

  1. Update navigation for docs.json

Please refer to Mintlify Localization for configuration details.

If you translated a single page, just add the new translated page path to the corresponding language navigation group, and it will be displayed in that language version.

For introduction.mdx:

  "navigation": {
    "languages": [
      {
        "language": "en",
        "groups": [
              {
                "group": "Get Started",
                "pages": [
                  "get_started/introduction",
                ...
                ]
              },
            ...
        ]
      },
      {
        "language": "cn",
         "groups": [
              {
                "group": "开始行动",
                "pages": [
                  "zh-CN/get_started/introduction",
                  ...
                ]
              }
            ]
      }
    ]
    ...
  }

Mintlify will automatically determine which pages to display in different language versions based on the language configuration.

Currently, Mintlify supports localization for English (en), Chinese (cn), Spanish (es), French (fr), Japanese (jp), Portuguese (pt), Brazilian Portuguese (pt-BR), and German (de).

For more information, please refer to the Mintlify documentation on Mintlify Localization.

Adding a new language

If a language doesn't exist yet, for example, if you want to add a French translation of introduction.mdx, you should create a new fr-FR folder in the root directory, complete the translation, and then add the following content under languages in docs.json:

{
  "languages": [
    ...
    {
        "language": "fr",
        "groups": [
              {
                "group": "Get Started",
                "pages": [
                  "fr-FR/get_started/introduction",
                  ...
                ]
              }
          ]
      }
  ]
}

The locale will translate Mintlify default UI components' text. This is optional. The full list of locales are here.

Contributing Workflow Examples

When adding workflow examples to the documentation, please:

  1. Take your output from ComfyUI (PNG, WebP), and add the models urls to the workflow so a user will have them when they drag in the workflow. You can use this tool to edit the metadata of the PNG or WebP file.

Video Title

  1. Upload your workflow JSON and preview image to the example_workflows repository

  2. Use the raw GitHub content URL in your documentation. To convert a GitHub file URL to a raw content URL:

    • Start with your GitHub file URL:
      https://github.com/Comfy-Org/example_workflows/blob/main/your-workflow.json
      
    • Change it to raw.githubusercontent.com and remove '/blob':
      https://raw.githubusercontent.com/Comfy-Org/example_workflows/main/your-workflow.json
      

    You can also click the "Raw" button on the GitHub file page and copy the URL directly.

This ensures the workflow metadata is preserved in the docs site when dragging it into ComfyUI.